I have an issue with my automations for my hue dimmer switch. No matter what I do I can’t get the automation to trigger if the state is only updated, not changed.
Here is my code for the first button:
- alias: hue_dimmer_switch_1_click
trigger:
- entity_id: sensor.hue_dimmer_switch
platform: state
to: ‘1_click’
action:
- service: light.turn_on
entity_id: light.hall
I’ve checked both the Hue REST API and the state of the sensor in home assistant and they all get updated properly but for some reason, the automation is only triggered if the previous state is NOT ‘1_click’.
Anyone got a clue what could be wrong?
Not sure if I understand you completely but as long as the previous state is not the state I’m “moving” to everything works as intended. I.e. if the last press was ‘2_click’ and I then press ‘1_click’ the automation is triggered correctly.
Turn on debugging in logger and see if the event is being seen. If it is, then you should be good. If not, then you need to come up with another solution.