diff --git a/zigbee2mqtt/z2m-hue-dimmer-switch-configurable.yaml b/zigbee2mqtt/z2m-hue-dimmer-switch-configurable.yaml index b24cff7..fcd0c4f 100644 --- a/zigbee2mqtt/z2m-hue-dimmer-switch-configurable.yaml +++ b/zigbee2mqtt/z2m-hue-dimmer-switch-configurable.yaml @@ -69,7 +69,7 @@ trigger: attribute: action action: - variables: - command: "{{ trigger.to_state.state }}" + command: '{{ trigger.to_state.attributes.action }}' - choose: - conditions: - "{{ command == 'on-press' }}" diff --git a/zigbee2mqtt/z2m-hue-dimmer-switch-light.yaml b/zigbee2mqtt/z2m-hue-dimmer-switch-light.yaml index 631ce78..b38a4c5 100644 --- a/zigbee2mqtt/z2m-hue-dimmer-switch-light.yaml +++ b/zigbee2mqtt/z2m-hue-dimmer-switch-light.yaml @@ -49,7 +49,7 @@ trigger: attribute: action action: - variables: - command: "{{ trigger.to_state.state }}" + command: '{{ trigger.to_state.attributes.action }}' - choose: - conditions: - "{{ command == 'on-press' }}" diff --git a/zigbee2mqtt/z2m-ikea-onoff-switch.yaml b/zigbee2mqtt/z2m-ikea-onoff-switch.yaml index f207188..b25ea0b 100644 --- a/zigbee2mqtt/z2m-ikea-onoff-switch.yaml +++ b/zigbee2mqtt/z2m-ikea-onoff-switch.yaml @@ -46,7 +46,7 @@ trigger: attribute: action action: - variables: - command: "{{ trigger.to_state.state }}" + command: '{{ trigger.to_state.attributes.action }}' - choose: - conditions: - "{{ command == 'on' }}"