Zigbee2MQTT - Aqara Opple WXCJKG13LM 3 band switch all custom buttons

To make this blueprint work on my HA 2022.12 setup, I had to change some code:

  1. Mode “parallel” instead of “restart”
  2. Delete the leading dash at line “platform:state”
  3. Delete the line “attribute: action”
  4. Additions to line “command:”

My source of inspiration was the blueprint Aqara Buttons All-In-One [Zigbee2MQTT] .

...
mode: parallel
max_exceeded: silent
trigger:
  platform: state
  entity_id: !input 'switch'
action:
- variables:
    command: '{{ trigger.to_state.attributes.action if trigger.to_state.state == ""
      else trigger.to_state.state }}'
...
2 Likes