I’d like to create an automation that, each time when triggered, gradually increases the brightness of a lamp to the maximum (e.g., in 20% increments) and then decreases it by the same amount back to the minimum, and so on.
It should be possible, but it’s highly dependent on your hardware (switch or button) sending both a hold & a release event. Most devices support hold, but very few support release.
thank you for your tip, but following your link leads to blueprints actually using 2 (!) automations using 2 (!) buttons
One (button-up) triggering a button-up-loop-dimmer -action and another button (button-down) as button-down-loop-dimmer-action.
But as described I would need 1 (!) automation using only 1 (!) button dimming down and back up after reaching a defined minimum and then down again and so on…
Or in other words: „toggle through all brightness-levels up-and-down all time.“
Pretty sure this would need complex templating involving maybe a number helper entity. But this is far beyond my capabilities.
And that’s why I‘m asking as I couldn’t find anything comparable anywhere …
Well, it is no standard button using an integration or so. When it’s pushed, It just triggers a HA webhook I could use as a trigger. There’s nothing else.