Hi All,
I’ve got a number of hue remotes connected via Zigbee2Mqtt - which are floorless, when I only ask them to do something on a single press - for example - ‘remote1 -> on-press -> turn switch on’ - that works fine.
I am trying to see if I can get the remote to turn on a secondary device on a secondary press - I have the following automation - but its not firing for some reason - even though the counter attribute in dev-tools clearly shows the counter changing from 1 to 2 etc…
alias: Turn Something on after second press
description: ''
trigger:
- platform: device
domain: mqtt
device_id: xxxxxxxxxxxxxxxxxxxxxx
type: action
subtype: on-press
discovery_id: xxxxxxxxxxxxxxxxxxx action_on-press
condition:
- condition: state
entity_id: sensor.my_hue_switch_action
state: '2'
attribute: counter
action:
- service: switch.turn_on
data: {}
entity_id: switch.the_one_I_want_to_turn_on
mode: single
The automation show’s as never triggered so just wondering what I am missing, or if this has been done elsewhere?
Thanks
Leacho