-
First off thanks for a great integration. I am new to HA and am trying to port my rule machine over because my hubitat has started running slow. I found the dev-tools full event created by pushing my light switch, { but can't figure out how to convert that hubitat device_id into the HA device_id, or why the below works in an automation for a trigger but looks so different from the event I was able to see produced. device_id: 225062d72ed2c7685913f770e15d73ad Any insight or referral would be greatly appreciated, my current goal is to make a blueprint for use with my light switches as having one automation per button configured seem likely to grow unmanagable (work in progress https://github.com/dahlb/home-assistant/blob/main/blueprints/inovelli-switch.yaml) but I'm stuck on the condition without a HA device_id |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
HA has a couple different ways of handling hardware events. Changes that involve a state change, like a switch changing from off to on, generate entity state changes in HA. In an automation or in Node Red, you’d respond to the state change. Changes that are ephemeral, like a button being pressed, generate events. You would respond to the event in an automation or Node Red.(Internally both actions generate events, but you don’t typically deal with a state change event directly.) |
Beta Was this translation helpful? Give feedback.
-
got the blueprint working using the raw hubitat device_id for now, https://github.com/dahlb/home-assistant/blob/main/blueprints/inovelli-switch.yaml. I'll put in a feature request for the hubitat_event to include the HA device_id in addition to the hubitat device_id because then the blue print could use a selector |
Beta Was this translation helpful? Give feedback.
got the blueprint working using the raw hubitat device_id for now, https://github.com/dahlb/home-assistant/blob/main/blueprints/inovelli-switch.yaml. I'll put in a feature request for the hubitat_event to include the HA device_id in addition to the hubitat device_id because then the blue print could use a selector