šŸ’” Single button on/off/dim switch v2

check private messages
T.

Hi @tomasbedrich , I am attempting use/adapt this for lutron RA3 keypads (to control smart lights). I receive pressed and release events from the keypad. How would i modify the blueprint to go off presses and released? (youā€™d mentioned it was possible earlier in the thread). The other thing im attempting to incorporate is to make the LEDs on the keypad light up if the scene is on (either via the button press or from within an HA automation)

Thanks a lot

Iā€™ve just added the delay to each while loop and itā€™s working for me now.

- delay: 
    seconds: !input transition_step_length

@atvecko I donā€™t quite understand the need for a condition for brightness value greater than zero?

Only optimization I can see, is to check if it reached min/max to stop sending requests while the light is min/max.

Hi everyone! Thanks to changes suggested by @atvecko, I released an improved version 2 of this blueprint.

It has been moved to GitHub, please use the link from the first post.

All my button devices are a switch, but this blueprint want a binary.sensor.
Why canā€™t i choose a switch?

Does your button devices restore the switch back to off state when you release them?

Is it possible to add more ā€œsingleā€ buttons to control the same light, if you have a button in the other end of a room?

Yes, simply create multiple automations, one for each of the buttons.