I am trying to mimic the behaviour of a TRÅDFRI dimmer where you need to hold ON or OFF to increase or decrease the brightness.
When you hold ON zigbe2mqtt will publish one brightness_up action and when released, released (or something like that…
What I want is to gradually increase the brightness until the released action is triggered.
Has anyone done that?
I am quite new to Home Assistant and I am struggling a little bit what’s the best way to do this…
Thanks, that shows the action of the button now and I can add the event of brightness_stop but it actually doesn’t stop iterating when that event is receveived…
This is how my automation looks like. Do you something wrong? Thanks!
Edit: After restarting the server, now I also see “action” as an Attribute, which I guess is what I am looking for… But still doesn’t beahve as I expect.
This “brightness_stop” only lasts some milliseconds, is it possible that the automation is missing it?
look in the deveopers tools-> states list for your sensor (sensor.0xccccccfffeeeba5b_action). then see if the state changes to “brightness_stop” when you release the button.
it’s possible but I kind of doubt it. Is there any way to lengthen that signal?
That was it @MacJawa! Thanks, it was exactly what I needed…
I had to change the triggers (I don’t have a zwave dimmer and I don’t know if that “Scene” thing is something from zwave, but still I managed to make it work with the triggers I already knew from my dimmer.
Agree, I am looking for something similar but the link in the solution doesn’t work. I want to increase brightness of my bulb until brightness_up_release even comes.
Hi Kotrfa, I’m trying to do the same thing but decrease off a button. for some reason the traces seems to indicate that my automation appears to run two instances of the thing automation, 1 for the long press and then a second for the release, which means my light just keeps turning down.
Can you see anything in this YAML that jumps out as incorrect?
Just found out that is was the mode, I thought triggers could pass a message to a running automation, my bad.
Needed to change the mode to restart. (thanks 123)