Hue remotes and switches
Hue remotes such as the Dimmer Switch are stateless devices, meaning that they do not have a on/off state like regular entities in Home Assistant. Instead, such devices emit the event hue_event
when a button is pressed. You can test what events come in using the event developer tools in Home Assistant and subscribe to the hue_event
. Once you know what the event data looks like, you can use this to create automations.
It’s an event so you would use the following.
[{"id":"c44262b5a4abc706","type":"server-events","z":"f80b6c338afd5483","name":"","server":"","version":1,"event_type":"hue_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"$outputData(\"eventData\").event_type","valueType":"jsonata"}],"x":470,"y":320,"wires":[["213c93611976038b"]]},{"id":"213c93611976038b","type":"debug","z":"f80b6c338afd5483","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":810,"y":320,"wires":[]}]
Press the hue switch… look at the debug… look for the id …use a switch node to filter which switch, it will look something like this
and which button was pressed.