šŸ’” 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.

when i try to implement this code it just returns

Message malformed: required key not provided @ data[ā€˜triggerā€™]

i cant seem to figure this out

Hello, what do you mean by ā€œimplement the codeā€? Are you sure you followed the guide correctly? See Using automation blueprints - Home Assistant

If the blueprint / automation requires a trigger, like a button, then just hitting run will not work. There was no actual trigger.

Try pushing the button.

have chosen my push button and my light it still returns the message.
i have followed the instructions on using automations blueprints

Hi @tomasbedrich,

I have been trying to edit this blueprint to be able to control multiple lights. But I canā€™t get this working. Could anyone help me please?