So I currently want to setup the dimmer controls for the light in my hallway with the STYRBAR remote but the light just ends up flashing. I have tried to restart the HASSIO server to terminate any scripts that might be stuck in a loop, the server also has the Zigbee chip but that didn’t help.
The two scripts that I have is a copy of each other except that they have the different button’s and the light value inverted:
alias: Dim Up
description: ""
trigger:
- device_id: 3ba2b5095fb8931ec6eb08fa0b2e2e63
domain: zha
platform: device
type: remote_button_long_press
subtype: dim_up
id: Pressed
- device_id: 3ba2b5095fb8931ec6eb08fa0b2e2e63
domain: zha
platform: device
type: remote_button_long_release
subtype: dim_up
id: Released
condition: []
action:
- if:
- condition: trigger
id:
- Pressed
then:
- repeat:
until:
- condition: trigger
id:
- Released
sequence:
- service: light.turn_on
data:
transition: 1
brightness_step_pct: 10
target:
device_id:
- a5640c71518f33094c89744d6b73eb35
- 2515c06df61643f9d3664bbd51f7749b
- 974afc0f514f884ebc83df9f53c62d9f
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
else:
- stop: ""
mode: single
The delay was just added to make sure that the loop isn’t stacking up in the background.