I thought the sequence - until would save my day in a ‘Dim-Lights’ automation. Not so much.
See below code. Simple automation, zigbee2mqtt switch dim light until released. mqtt logs show the button_1_release, dev_tools show the switch beeing released. But once this automation starts… the until condition is never reached.
Maybe this will help, try to figure out how to implement in your solution.
I have one automation to increment slider.
And the second one to reset the input_number.
Once the automation has been triggered, does it start to correctly increase the brightness and then never stops increasing or does it increase once and then it stops?
I think even if you manage to get this to work, it’ll still not work as intended, because the brightness_step_pct part needs to read the current brightness before it adjusts the brightness and the next increase comes before the first increase has been finished, therefore HA is not able to read the correct current brightness. There’s an appdaemon app called Controller X that has a workaround for this issue.
The automation work fine when it starts. It increases the brightness and keeps going. It just never stops. It does throw of all my other automations, no automation works once this one is triggered.
I’ll have a quick look at the appdaemon app. I tried to stay away from appdaemon but if that’s what it takes… so be it.