Richard,
Not a problem at all, you have sowed the foundation for a useful blueprint.
Take your time and donāt put down your skills. You have done well to get it this far.
You will crack it
Thanks
Richard,
Not a problem at all, you have sowed the foundation for a useful blueprint.
Take your time and donāt put down your skills. You have done well to get it this far.
You will crack it
Thanks
Hi Szalony-West,
Iāve added the transition_length
option to the blueprint as requested. It allows you to set a custom transition time for the lights, overriding the deviceās default transition setting. Everything is working fine on my end, but I wanted to check if itās working as expected for you as well.
If it works for you, Iāll update the main blueprint to include this feature!
Let me know if you encounter any issues or if thereās anything else youād like to tweak.
blueprint:
name: Blinking Lights with Restore and Transition
description: Blink selected lights in a specific color and restore their original state, with custom transition support.
domain: automation
input:
lights:
name: Lights
description: Select the lights to blink.
selector:
target:
entity:
- domain:
- light
color:
name: Blink Color
description: Choose a color for blinking.
selector:
color_rgb: {}
blink_count:
name: Blink Count
description: How many times should the lights blink?
default: 3
selector:
number:
min: 1.0
max: 10.0
step: 1.0
mode: slider
blink_duration:
name: Blink Duration (seconds)
description: How long should each blink last?
default: 1
selector:
number:
min: 0.1
max: 5.0
step: 0.1
mode: slider
trigger_entity:
name: Trigger Entity
description: Select the entity that triggers this automation.
selector:
entity:
multiple: false
from_state:
name: From State (optional)
description: Enter the state to trigger from (leave empty for any state).
default: ''
selector:
text:
multiline: false
multiple: false
to_state:
name: To State (optional)
description: Enter the state to trigger to (leave empty for any state).
default: ''
selector:
text:
multiline: false
multiple: false
flash_with_off:
name: Flash with Off
description: Turn off lights between blinks? If unchecked, the lights will return
to their original color between blinks.
default: true
selector:
boolean: {}
transition_length:
name: Transition Length (seconds)
description: Set a custom transition time for the lights (overrides device default).
default: 0.5
selector:
number:
min: 0
max: 5
step: 0.1
source_url: https://community.home-assistant.io/t/custom-blinking-lights-blueprint/796494
mode: restart
variables:
lights: !input lights
blink_count: !input blink_count
blink_duration: !input blink_duration
color: !input color
trigger_entity: !input trigger_entity
from_state: !input from_state
to_state: !input to_state
flash_with_off: !input flash_with_off
transition_length: !input transition_length
trigger:
- platform: state
entity_id: !input trigger_entity
action:
- service: scene.create
data:
scene_id: light_restore_scene
snapshot_entities: '{{ lights.entity_id }}'
- repeat:
count: '{{ blink_count }}'
sequence:
- service: light.turn_on
target: '{{ lights }}'
data:
rgb_color: '{{ color }}'
brightness: 255
transition: '{{ transition_length }}'
- delay: '{{ blink_duration | float }}'
- choose:
- conditions:
- condition: template
value_template: '{{ flash_with_off }}'
sequence:
- service: light.turn_off
target: '{{ lights }}'
data:
transition: '{{ transition_length }}'
- conditions:
- condition: template
value_template: '{{ not flash_with_off }}'
sequence:
- service: scene.turn_on
data:
entity_id: scene.light_restore_scene
- delay: '{{ blink_duration | float }}'
- service: scene.turn_on
data:
entity_id: scene.light_restore_scene
Cheers!
Hi everyone,
Iām excited to share an update to the Blinking Lights Blueprint that introduces custom transition time support!
transition_length
option allows you to specify a transition time (in seconds) for light on/off actions.blink_duration
is shorter than the deviceās default transition time.This update is particularly useful for setups where the default transition length of your lights is too long, making blinking effects less noticeable. For example, if you have ESPHome lights with a default_transition_length
setting, this blueprint now works seamlessly without overriding global settings.
You can find the updated blueprint here.
As always, Iād love to hear your feedback! Let me know if the transition time works for your setup or if you encounter any issues.
hello. I see the updated blueprint in the first post at the top. I checked it, it works as it should, it does what it was designed for! Great job, Iām impressed with the quick solution! thank you and good luck with your next projects.
Pozdrawiam -West
Hi! great simple blueprint! would be great if we could add conditions for it to trigger the blinking. Any chance that this could be updated to include that? Thanks for the awesome blueprint!
Hi
My Ikea Bulbs and Parasol Door Sensor. Lights are on and whont off. No idea whats wrong.
alias: Otwarte drzwi wejsciowe
description: ""
use_blueprint:
path: rschutte/custom-blinking-lights-blueprint.yaml
input:
blink_duration: 2.1
li entity_id: light.sufit_dzienny_srodek
area_id: pokoj_dzienny
color:
- 255
- 255
- 255
trigger_entity: binary_sensor.drzwi_wejsciowe
flash_with_off: true
blink_count: 4
transition_length: 2ghts:
Solved. I just understood what it was about āhelpersā. I created bulb entities in helpers. Everything works. Bulbs blinking and reacts properly.
help me with this
my current from_state is armed_night but it still triggered with armed_away also, how do i fix this
id: '1732305688223'
alias: Blinking Lights with Restore and Transition
description: ''
use_blueprint:
path: rschutte/custom-blinking-lights-blueprint.yaml
input:
lights:
entity_id: light.bardi_rgb_wifi
color:
- 255
- 0
- 0
blink_count: 5
trigger_entity: alarm_control_panel.alarmo
to_state: triggered
from_state: armed_night
Iāll have a look at adding more features or updates as soon as I find the time. Thanks for the feedback and for using this blueprint!
Iāll look into the reported from_state
triggering issue as soon as I have the time. Thanks for your patience and feedback!
Anybody gotten this working with Wyze bulbs via the HACS Wyze integration? I seem to be having some trouble with that, specifically getting the error below
Executed: November 28, 2024 at 12:31:20 PM
Error: Entity ID is an invalid entity ID for dictionary value @ data['snapshot_entities']
Result:
params:
domain: scene
service: create
service_data:
scene_id: light_restore_scene
snapshot_entities: ''
target: {}
running_script: false
I havenāt dove into the YAML yet, all this is being done via GUI from my phone (all I can do while the kids are up).
When ligt are on and sensor opened, ligts blinks and the lights return to their previous state, but when closed sensor, they do not return to their previous state and shine as brightly as possible I have to manuale dim the lights. (IKEA BULBS)
Secondly, it would be useful to have the option to repeat blinking every 30 minutes when, for example, the garage door is open longer time. Sometime I forget about close doors
Iām getting exactly the same error also with a Wiz bulbā¦ā¦ weird
Hello,
I have a weird problem. It works perfectly if I only enter one light. But multiple is not working or only really bad.
I get this error:
Fehler: Entity ID is an invalid entity ID for dictionary value @ data[āsnapshot_entitiesā]
I want to put all my lights I have into this because my wife does not hear the doorbell when we are getting a package delivered.
So when the doorbell rings all lights are flashing.
Greetings!
Interesting, thatās the same error @chocker and I are getting with our Wiz and Wyze bulbsā¦ I wonder if itās caused by something weird about trying to snapshot multiple entities in a field that only has room for one. My Wyze bulbs were picked up by multiple integrations, let me disable them until Iāve only got the one entity.
Ok, that doesnāt seem to be itā¦ but I found the cause for me. I hadnāt selected the lightbulb entity, I had selected the lightbulb device. I just fixed that, and itās working perfectly for a single bulb. Let me try adding a second now.
Edit to Add:
I can get up to 4 bulbs working perfectly as long as I select them as Entities. Selecting as a device doesnāt work, nor does selecting an Area, and I presume a abel is right out.
Sadly thatās does not work for me, I can add two max. And then it is only working sometimes.
I want to add 9 hue lamps in there.
I think thatās a bug
It dosent working, no matter if I added one, two or three bulbs. When I do TEST works fine.
alias: Drzwi do WiatroÅapu
description: Drzwi WiatroÅapu
use_blueprint:
path: rschutte/custom-blinking-lights-blueprint.yaml
input:
color:
- 255
- 255
- 255
lights:
entity_id: light.swiatlo_1
device_id: d0d5a35bd51795018d74f224c36abd77
trigger_entity: binary_sensor.0xa4c1388d8da60017_contact