Hi, I have a zigbee round ikea 5 buttons module connected with zigbee2mqtt to HA, that I like to use it in an automation.
I made some automation and I like to use the up_hold and down_hold button to automatic dim-up/down a dimmer. But if I push the button up_hold or down_hold, it doesn’t stop the dim-up script if I release the button. This is the code I use :
alias: Zitplaats ikea 5 buttons
description: ""
trigger:
- platform: device
domain: mqtt
device_id: f472a367f47312e08c067fcc6997f853
type: action
subtype: brightness_up_hold
id: up_hold
- platform: device
domain: mqtt
device_id: f472a367f47312e08c067fcc6997f853
type: action
subtype: brightness_up_release
id: up_release
- platform: device
domain: mqtt
device_id: f472a367f47312e08c067fcc6997f853
type: action
subtype: brightness_down_hold
id: down_hold
- platform: device
domain: mqtt
device_id: f472a367f47312e08c067fcc6997f853
type: action
subtype: brightness_down_release
id: down_release
- platform: device
domain: mqtt
device_id: f472a367f47312e08c067fcc6997f853
type: action
subtype: brightness_down_click
id: down
- platform: device
domain: mqtt
device_id: f472a367f47312e08c067fcc6997f853
type: action
subtype: brightness_up_click
id: up
- platform: device
domain: mqtt
device_id: f472a367f47312e08c067fcc6997f853
type: action
subtype: arrow_right_hold
id: right_hold
- platform: device
domain: mqtt
device_id: f472a367f47312e08c067fcc6997f853
type: action
subtype: arrow_left_hold
id: left_hold
- platform: device
domain: mqtt
device_id: f472a367f47312e08c067fcc6997f853
type: action
subtype: arrow_right_click
id: right
- platform: device
domain: mqtt
device_id: f472a367f47312e08c067fcc6997f853
type: action
subtype: arrow_left_click
id: left
- platform: device
domain: mqtt
device_id: f472a367f47312e08c067fcc6997f853
type: action
subtype: toggle
id: midden
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- midden
sequence:
- type: toggle
device_id: 3b51b18a29d47fa0cb8f81e9e468ce7d
entity_id: a7261647a63d2151e96562696781a077
domain: switch
- conditions:
- condition: trigger
id:
- up
- down
sequence:
- service: script.toggle_zitplaats_luster_50
data: {}
- conditions:
- condition: trigger
id:
- left
sequence:
- type: toggle
device_id: a9c33c7c7255ef0c960a23e69bc6958d
entity_id: 2268924f23d8487e5003c4d1b40fd834
domain: light
- type: toggle
device_id: a9c33c7c7255ef0c960a23e69bc6958d
entity_id: df9bbfd6f5e297a078e88e2b59979d77
domain: light
- conditions:
- condition: trigger
id:
- right_hold
- left_hold
sequence:
- service: script.alles_uit_woonkamer
data: {}
- conditions:
- condition: trigger
id:
- up_hold
sequence:
- repeat:
sequence:
- service: script.zitplaats_luster_dum_up
data: {}
while:
- condition: trigger
id:
- up_hold
- conditions:
- condition: trigger
id:
- down_hold
sequence:
- repeat:
sequence:
- service: script.zitplaats_luster_dim_down
data: {}
while:
- condition: trigger
id:
- down_hold
mode: single
I tried it also with the ‘until’ up_release, that comes if I release the up button, that give also not the right result.
What did I wrong?