Hi,
I am trying to set up a simple automation but using non-legacy homeassistant automation triggers via zigbee2mqtt. I have a switch that can recognize long-press and emit events like:
zigbee2mqtt/TripleSwitch/action button_1_hold
zigbee2mqtt/TripleSwitch/action button_1_release
and I simply want to increase a brightness for the time the button is being pressed (until it’s released). I am trying something like:
alias: New Automation
description: ''
trigger:
- platform: device
domain: mqtt
device_id: d54bba99c4c741b8bc41118918730630
type: action
subtype: button_1_hold
discovery_id: 0x04cf8cdf3c7d8f7a action_button_1_hold
condition: []
action:
- alias: "repeat until button release"
repeat:
until:
- condition: state
state: button_1_release
attribute: action
entity_id: "WHAT'S HERE?"
sequence:
- service: light.turn_on
data:
brightness_step_pct: -10
transition: 0.5
target: light.testzarovka1
- delay: '0.2'
mode: single
but it doesn’t work as I should have entity_id
in the until loop. But there is no entity_id for this mqtt type of trigger :-/ . Any ideas please?