Replies: 7 comments
-
The challenge with the Tradfri shortcut is that they directly send signal/info to the tied device and do not go through the hub thus doesnt generate events. Since events are not generated at the hub they cannot be tied and raised as triggers/actions into Homeassistant. The SOMRIG shortcut for example when tied to a scene generate events at the hub. |
Beta Was this translation helpful? Give feedback.
-
So I have good news! You're correct in saying that the device doesn't generate anything at the hub, but it does in HA. Whilst the shortcut button doesn't register anything in its log, it registers as an event in the dev console. I decided to just listen for everything that HA was receiving and it returned 3 types of presses (all of which, I think are standard device actions) The event_type is "dirigera_platform_event" and it will return your type of press (as above) and device_id and entity_id, both of which are are the same values for the device you're looking for. In terms of automations, the trigger you'd use is the Manual Event trigger with event type of "dirigera_platform_event" and the event data is your type, device/entity_id's. Below are the examples of returned data which you can have a look at but this is fantastic move in the right direction for this integration! event_type: dirigera_platform_event event_type: dirigera_platform_event event_type: dirigera_platform_event |
Beta Was this translation helpful? Give feedback.
-
This is cool, can you paste the messages from the debug log then I can make it work |
Beta Was this translation helpful? Give feedback.
-
Hopefully this helps 2024-10-28 19:38:16.120 DEBUG (Thread-13) [custom_components.dirigera_platform] rcvd message : {"id":"2bfac61c-de87-4856-ae7c-4f0de4396e06","time":"2024-10-28T09:08:15.771Z","specversion":"3.163.0","source":"urn:com:ikea:homesmart:iotc:rulesengine","type":"sceneUpdated","data":{"id":"e9ead637-7c36-4cfd-9daf-3bdab79cd2e5","info":{"name":"dirigera_integration_empty_scene_2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1_singlePress","icon":"scenes_cake"},"type":"customScene","triggers":[{"id":"5235b1b7-a899-4cc3-b9f8-2116958bc2e3","type":"controller","triggeredAt":"2024-10-28T09:08:15.771Z","disabled":false,"trigger":{"days":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"controllerType":"shortcutController","clickPattern":"singlePress","buttonIndex":0,"deviceId":"2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1"}},{"id":"3e4006f0-40e7-40d6-b862-68849a462d1a","type":"app","disabled":false}],"actions":[],"commands":[],"createdAt":"2024-10-27T22:27:15.890Z","lastCompleted":"2024-10-28T09:08:15.778Z","lastTriggered":"2024-10-28T09:08:15.778Z","undoAllowedDuration":30}} |
Beta Was this translation helpful? Give feedback.
-
Well the message is coming from the integration itself. What the line is
showing is that event already is been fired. YOu should be able to use it
the automation :-)
What short cut is this? SOMRIG?
…On Mon, Oct 28, 2024 at 10:52 AM Sheepish2 ***@***.***> wrote:
Hopefully this helps
2024-10-28 19:38:16.120 DEBUG (Thread-13)
[custom_components.dirigera_platform] rcvd message :
{"id":"2bfac61c-de87-4856-ae7c-4f0de4396e06","time":"2024-10-28T09:08:15.771Z","specversion":"3.163.0","source":"urn:com:ikea:homesmart:iotc:rulesengine","type":"sceneUpdated","data":{"id":"e9ead637-7c36-4cfd-9daf-3bdab79cd2e5","info":{"name":"dirigera_integration_empty_scene_2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1_singlePress","icon":"scenes_cake"},"type":"customScene","triggers":[{"id":"5235b1b7-a899-4cc3-b9f8-2116958bc2e3","type":"controller","triggeredAt":"2024-10-28T09:08:15.771Z","disabled":false,"trigger":{"days":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"controllerType":"shortcutController","clickPattern":"singlePress","buttonIndex":0,"deviceId":"2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1"}},{"id":"3e4006f0-40e7-40d6-b862-68849a462d1a","type":"app","disabled":false}],"actions":[],"commands":[],"createdAt":"2024-10-27T22:27:15.890Z","lastCompleted":"2024-10-28T09:08:15.778Z","lastTriggered":"2024-10-28T09:08:15.778Z","undoAllowedDuration":30}}
2024-10-28 19:38:16.120 DEBUG (Thread-13)
[custom_components.dirigera_platform] Found sceneUpdated message...
2024-10-28 19:38:16.120 DEBUG (Thread-13)
[custom_components.dirigera_platform] Multi button controller, device_id
effective : 2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1 with buttons : 1
2024-10-28 19:38:16.120 DEBUG (Thread-13)
[custom_components.dirigera_platform] Found date/time in map for controller
: 2024-10-28 09:08:04.253000
2024-10-28 19:38:16.120 DEBUG (Thread-13)
[custom_components.dirigera_platform] Updated date/time in map for
controller with : 2024-10-28 09:08:15.778000
2024-10-28 19:38:16.121 DEBUG (Thread-13)
[custom_components.dirigera_platform] Event fired.. {'type':
'button1_single_click', 'device_id': '5995f1e9c98682a31381ea6e61766af5',
'entity_id': 'sensor.shortcut_button_2_2'}
2024-10-28 19:38:16.121 DEBUG (Thread-13)
[custom_components.dirigera_platform] Trigger type : app not controller
ignoring...
2024-10-28 19:38:16.127 DEBUG (Thread-13)
[custom_components.dirigera_platform] rcvd message :
{"id":"2bf3b38b-a563-4e0e-9751-b54e102555fe","time":"2024-10-28T09:08:15.791Z","specversion":"3.163.0","source":"urn:com:ikea:homesmart:iotc:rulesengine","type":"sceneUpdated","data":{"id":"e9ead637-7c36-4cfd-9daf-3bdab79cd2e5","info":{"name":"dirigera_integration_empty_scene_2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1_singlePress","icon":"scenes_cake"},"type":"customScene","triggers":[{"id":"5235b1b7-a899-4cc3-b9f8-2116958bc2e3","type":"controller","triggeredAt":"2024-10-28T09:08:15.771Z","disabled":false,"trigger":{"days":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"controllerType":"shortcutController","clickPattern":"singlePress","buttonIndex":0,"deviceId":"2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1"}},{"id":"3e4006f0-40e7-40d6-b862-68849a462d1a","type":"app","disabled":false}],"actions":[],"commands":[],"createdAt":"2024-10-27T22:27:15.890Z","lastCompleted":"2024-10-28T09:08:15.778Z","lastTriggered":"2024-10-28T09:08:15.778Z","undoAllowedDuration":30}}
2024-10-28 19:38:16.127 DEBUG (Thread-13)
[custom_components.dirigera_platform] Found sceneUpdated message...
2024-10-28 19:38:16.127 DEBUG (Thread-13)
[custom_components.dirigera_platform] Multi button controller, device_id
effective : 2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1 with buttons : 1
2024-10-28 19:38:16.128 DEBUG (Thread-13)
[custom_components.dirigera_platform] Found date/time in map for controller
: 2024-10-28 09:08:15.778000
2024-10-28 19:38:16.128 DEBUG (Thread-13)
[custom_components.dirigera_platform] Updated date/time in map for
controller with : 2024-10-28 09:08:15.778000
2024-10-28 19:38:16.128 DEBUG (Thread-13)
[custom_components.dirigera_platform] Will not let this event be fired,
this is to get over bug IKEA bug of firing event twice for controller
2024-10-28 19:38:26.758 DEBUG (Thread-13)
[custom_components.dirigera_platform] rcvd message :
{"id":"7c5d7c03-e05b-4ee9-a8e3-86bb1e27f9ab","time":"2024-10-28T09:08:26.735Z","specversion":"3.163.0","source":"urn:com:ikea:homesmart:iotc:rulesengine","type":"sceneUpdated","data":{"id":"e9ead637-7c36-4cfd-9daf-3bdab79cd2e5","info":{"name":"dirigera_integration_empty_scene_2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1_singlePress","icon":"scenes_cake"},"type":"customScene","triggers":[{"id":"5235b1b7-a899-4cc3-b9f8-2116958bc2e3","type":"controller","triggeredAt":"2024-10-28T09:08:26.735Z","disabled":false,"trigger":{"days":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"controllerType":"shortcutController","clickPattern":"singlePress","buttonIndex":0,"deviceId":"2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1"}},{"id":"3e4006f0-40e7-40d6-b862-68849a462d1a","type":"app","disabled":false}],"actions":[],"commands":[],"createdAt":"2024-10-27T22:27:15.890Z","lastCompleted":"2024-10-28T09:08:15.778Z","lastTriggered":"2024-10-28T09:08:15.778Z","undoAllowedDuration":30}}
2024-10-28 19:38:26.759 DEBUG (Thread-13)
[custom_components.dirigera_platform] Found sceneUpdated message...
2024-10-28 19:38:26.759 DEBUG (Thread-13)
[custom_components.dirigera_platform] Multi button controller, device_id
effective : 2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1 with buttons : 1
2024-10-28 19:38:26.760 DEBUG (Thread-13)
[custom_components.dirigera_platform] Found date/time in map for controller
: 2024-10-28 09:08:15.778000
2024-10-28 19:38:26.760 DEBUG (Thread-13)
[custom_components.dirigera_platform] Updated date/time in map for
controller with : 2024-10-28 09:08:15.778000
2024-10-28 19:38:26.761 DEBUG (Thread-13)
[custom_components.dirigera_platform] Will not let this event be fired,
this is to get over bug IKEA bug of firing event twice for controller
2024-10-28 19:38:26.778 DEBUG (Thread-13)
[custom_components.dirigera_platform] rcvd message :
{"id":"a2159146-6c3f-4ccd-842d-f9c280e19e55","time":"2024-10-28T09:08:26.755Z","specversion":"3.163.0","source":"urn:com:ikea:homesmart:iotc:rulesengine","type":"sceneUpdated","data":{"id":"e9ead637-7c36-4cfd-9daf-3bdab79cd2e5","info":{"name":"dirigera_integration_empty_scene_2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1_singlePress","icon":"scenes_cake"},"type":"customScene","triggers":[{"id":"5235b1b7-a899-4cc3-b9f8-2116958bc2e3","type":"controller","triggeredAt":"2024-10-28T09:08:26.735Z","disabled":false,"trigger":{"days":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"controllerType":"shortcutController","clickPattern":"singlePress","buttonIndex":0,"deviceId":"2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1"}},{"id":"3e4006f0-40e7-40d6-b862-68849a462d1a","type":"app","disabled":false}],"actions":[],"commands":[],"createdAt":"2024-10-27T22:27:15.890Z","lastCompleted":"2024-10-28T09:08:26.742Z","lastTriggered":"2024-10-28T09:08:26.742Z","undoAllowedDuration":30}}
2024-10-28 19:38:26.778 DEBUG (Thread-13)
[custom_components.dirigera_platform] Found sceneUpdated message...
2024-10-28 19:38:26.778 DEBUG (Thread-13)
[custom_components.dirigera_platform] Multi button controller, device_id
effective : 2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1 with buttons : 1
2024-10-28 19:38:26.778 DEBUG (Thread-13)
[custom_components.dirigera_platform] Found date/time in map for controller
: 2024-10-28 09:08:15.778000
2024-10-28 19:38:26.779 DEBUG (Thread-13)
[custom_components.dirigera_platform] Updated date/time in map for
controller with : 2024-10-28 09:08:26.742000
2024-10-28 19:38:26.784 DEBUG (Thread-13)
[custom_components.dirigera_platform] Event fired.. {'type':
'button1_single_click', 'device_id': '5995f1e9c98682a31381ea6e61766af5',
'entity_id': 'sensor.shortcut_button_2_2'}
2024-10-28 19:38:26.784 DEBUG (Thread-13)
[custom_components.dirigera_platform] Trigger type : app not controller
ignoring...
2024-10-28 19:43:22.976 DEBUG (Thread-13)
[custom_components.dirigera_platform] rcvd message :
{"id":"33079fe2-85f7-4584-b3c8-63e7cc6fa513","time":"2024-10-28T09:13:22.952Z","specversion":"3.163.0","source":"urn:com:ikea:homesmart:iotc:rulesengine","type":"sceneUpdated","data":{"id":"72eed55c-ba79-4eed-b113-46866dc0c217","info":{"name":"dirigera_integration_empty_scene_2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1_longPress","icon":"scenes_cake"},"type":"customScene","triggers":[{"id":"c63f189e-f0e8-4ff5-a9ad-b30dbeb70e87","type":"controller","triggeredAt":"2024-10-28T09:13:22.952Z","disabled":false,"trigger":{"days":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"controllerType":"shortcutController","clickPattern":"longPress","buttonIndex":0,"deviceId":"2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1"}},{"id":"d704cbe9-6b1b-4ef8-b906-e5eb2a352cd5","type":"app","disabled":false}],"actions":[],"commands":[],"createdAt":"2024-10-27T22:27:16.582Z","lastCompleted":"2024-10-28T09:13:14.363Z","lastTriggered":"2024-10-28T09:13:14.363Z","undoAllowedDuration":30}}
2024-10-28 19:43:22.977 DEBUG (Thread-13)
[custom_components.dirigera_platform] Found sceneUpdated message...
2024-10-28 19:43:22.977 DEBUG (Thread-13)
[custom_components.dirigera_platform] Multi button controller, device_id
effective : 2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1 with buttons : 1
2024-10-28 19:43:22.977 DEBUG (Thread-13)
[custom_components.dirigera_platform] Found date/time in map for controller
: 2024-10-28 09:13:14.363000
2024-10-28 19:43:22.977 DEBUG (Thread-13)
[custom_components.dirigera_platform] Updated date/time in map for
controller with : 2024-10-28 09:13:14.363000
2024-10-28 19:43:22.978 DEBUG (Thread-13)
[custom_components.dirigera_platform] Will not let this event be fired,
this is to get over bug IKEA bug of firing event twice for controller
2024-10-28 19:43:22.995 DEBUG (Thread-13)
[custom_components.dirigera_platform] rcvd message :
{"id":"a5102699-8c9d-4733-af93-57a957f05087","time":"2024-10-28T09:13:22.973Z","specversion":"3.163.0","source":"urn:com:ikea:homesmart:iotc:rulesengine","type":"sceneUpdated","data":{"id":"72eed55c-ba79-4eed-b113-46866dc0c217","info":{"name":"dirigera_integration_empty_scene_2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1_longPress","icon":"scenes_cake"},"type":"customScene","triggers":[{"id":"c63f189e-f0e8-4ff5-a9ad-b30dbeb70e87","type":"controller","triggeredAt":"2024-10-28T09:13:22.952Z","disabled":false,"trigger":{"days":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"controllerType":"shortcutController","clickPattern":"longPress","buttonIndex":0,"deviceId":"2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1"}},{"id":"d704cbe9-6b1b-4ef8-b906-e5eb2a352cd5","type":"app","disabled":false}],"actions":[],"commands":[],"createdAt":"2024-10-27T22:27:16.582Z","lastCompleted":"2024-10-28T09:13:22.963Z","lastTriggered":"2024-10-28T09:13:22.963Z","undoAllowedDuration":30}}
2024-10-28 19:43:22.995 DEBUG (Thread-13)
[custom_components.dirigera_platform] Found sceneUpdated message...
2024-10-28 19:43:22.995 DEBUG (Thread-13)
[custom_components.dirigera_platform] Multi button controller, device_id
effective : 2f0f2cec-e509-4546-8473-a7eec3f7cc5a_1 with buttons : 1
2024-10-28 19:43:22.996 DEBUG (Thread-13)
[custom_components.dirigera_platform] Found date/time in map for controller
: 2024-10-28 09:13:14.363000
2024-10-28 19:43:22.996 DEBUG (Thread-13)
[custom_components.dirigera_platform] Updated date/time in map for
controller with : 2024-10-28 09:13:22.963000
2024-10-28 19:43:22.996 DEBUG (Thread-13)
[custom_components.dirigera_platform] Event fired.. {'type':
'button1_long_press', 'device_id': '5995f1e9c98682a31381ea6e61766af5',
'entity_id': 'sensor.shortcut_button_2_2'}
2024-10-28 19:43:22.996 DEBUG (Thread-13)
[custom_components.dirigera_platform] Trigger type : app not controller
ignoring...
—
Reply to this email directly, view it on GitHub
<#98 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2X3CV4RZ4NYA4I2UDMRJLZ5YCM7AVCNFSM6AAAAABQOJAEC6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBXGI4TINA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
This is the tradfri shortcut button. |
Beta Was this translation helpful? Give feedback.
-
In that case just try in HA automation, the platform is already creating
the events for u to use in your automation
…On Mon, Oct 28, 2024 at 12:09 PM Sheepish2 ***@***.***> wrote:
This is the tradfri shortcut button.
—
Reply to this email directly, view it on GitHub
<#98 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2X3CQVIX5GSUWY34FZPPDZ5YLO5AVCNFSM6AAAAABQOJAEC6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBXGM3DAOI>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Hello!
I was wondering if there was any plans to have the Tradfri shortcut buttons integrate to HA?
They only supply battery sensor of the device so far..
Beta Was this translation helpful? Give feedback.
All reactions