Simple ... flashing light's via on off and delay. Restore previous light states

This is a great blueprint! This is exactly what I have been looking for and my first attempt at using a blueprint. I edited the blueprint a little to use a binary_sensor (doorbell button) and I think that is what is causing my issue. In the original blueprint, the scene created is set to repeat as long as the input_boolean is set to “on”, am correct in how I’m reading this? If so, how can I define the repeat length to be selectable between 1-30 seconds or even just a set amount of time to repeat and then go to previous state?

I updated the blueprint. Now you are able the use any activated sensor and any individuel state. Additional you can set a max timeout. If this timeout is timeouted the blueprint stops also if the activated sensor is true. And last new feature you can now use a alternative light scene. For example if you want to flash your lights for max. 30 seconds than set ‘activated_timeout’ to 30. Hope that helps.

I’m fairly new to Blueprints. I have added it in, but in the options for the automation, I don’t see any field or drop down for RGB color choice or brightness. Was this removed in subsequent updates?

Has anyone updated their automation to include conditions for ‘which light’ you’re updating, based on condition? I’ve set up a crying sensor that kicks off from Alexa on IFTTT, and based on time of day, may want different lights to flash to alert me. I’ve taken the approach of creating two automations of of this blueprint, then having a conditional script change an input boolean to determine which one to trigger. This is cumbersome though and not the cleanest solution I’m sure.

@markus78
Would it be possible to update the blueprint with the changes that @avviano had suggested to include the brightness and RGB color options? I have tried to tweak my own blueprint and it seems to work, although I’m having some difficulty with it returning to the previous state (on/off, color, brightness level).

I believe that the scene.create does not capture the color or brightness settings when the light is off, so it seems possible to briefly turn the light on to grab these attributes before making changes, as suggested in this thread. (Return light to previous state after automation - #6 by Speezle)
Any chance you’d be able to incorporate this into the blueprint? Thanks!

This blueprint runs once then doesn’t run again

hey man, first of all thanks alot for this brilliant code! Everything seems to be working, until the moment where all (yes literally, all) lights are enabled, instead of the ones that i’ve selected. Have you come across this already?

code

edit: so i’ve been delving in this automation and it looks to be the case that this automation snapshots every light in my house. Would it be possible to add the option where i can choose/select the entity that i want snapshotted?

I’m experiencing this behaviour.

Thank you Markus. This could save my marriage! Not really but could help reduce stress and improve WAF. I have a media room (soon to be) that is where I spend a lot of time on my computer and doing electronics ‘stuff’. The room is well soundproofed and one floor away from wife’s main turf. You get the idea.
I had something mocked up in seconds!

Q

thank you @markus78 i really enjoy your blueprint. I just met an unwanted behaviour, the automation in my use case may run for a long time, and i noticed that the log is flooded by a lot of INFO from automation. this goes for days until my HA stops responding and i have to reboot it.

here some [INFO] example from my log, anyone knows how to reduce the log writing ?

2023-08-01 21:46:21.735 INFO (MainThread) [homeassistant.components.automation.app_bp_flash_lavatrice] APP - BP - Flash Lavatrice: Choose at step 2: choice 2: Repeat at step 1: Executing step call service

2023-08-01 21:46:21.743 INFO (MainThread) [homeassistant.components.automation.app_bp_flash_lavatrice] APP - BP - Flash Lavatrice: Choose at step 2: choice 2: Repeat at step 1: Executing step delay 0:00:01.500000

2023-08-01 21:46:23.247 INFO (MainThread) [homeassistant.components.automation.app_bp_flash_lavatrice] APP - BP - Flash Lavatrice: Choose at step 2: choice 2: Repeating sequence: Iteration 1671

2023-08-01 21:46:23.248 INFO (MainThread) [homeassistant.components.automation.app_bp_flash_lavatrice] APP - BP - Flash Lavatrice: Choose at step 2: choice 2: Repeat at step 1: Running automation actions

2023-08-01 21:46:23.249 INFO (MainThread) [homeassistant.components.automation.app_bp_flash_lavatrice] APP - BP - Flash Lavatrice: Choose at step 2: choice 2: Repeat at step 1: Executing step call service

2023-08-01 21:46:23.250 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities scene.lavatrice or it is/they are currently not available

2023-08-01 21:46:23.255 INFO (MainThread) [homeassistant.components.automation.app_bp_flash_lavatrice] APP - BP - Flash Lavatrice: Choose at step 2: choice 2: Repeat at step 1: Executing step delay 0:00:01.500000