I have a Xiaomi Zigbee remote with buttons left/right.
I want each button to toggle a specific light, but I am struggling with getting the “choose” function to work. This looks straight forward, but I am not able to get it to work.
The automation runs when one of the buttons are triggered, but nothing happens.
Log does not say anything.
- id: kjokkenbord_toggle
alias: 'Kjøkken: Lys kjøkken av/på'
trigger:
- entity_id: sensor.kjokken_sw
platform: state
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: sensor.kjokken_sw
state: right
sequence:
- service: light.toggle
entity_id: light.kjokkenbord
- conditions:
- condition: state
entity_id: sensor.kjokken_sw
state: left
sequence:
- service: light.toggle
entity_id: light.kjokken_taklampe
mode: single