Which works fine. And now I want a light to flash when the timer is finished. I put this in automations.yaml:
- id: one
alias: Turn on light when tea is ready
trigger:
- platform: state
entity_id: timer.great_hunan_green_tea
to: 'timer.finished'
action:
- service: light.turn_on
data:
entity_id: light.twiggy_c1
brightness: 255
rgb_color: [255, 0, 0]
flash: long
You could use from: 'active'to: 'idle' but yeah there are other ways that could be triggered (e.g. timer cancelled), events would definitely be the best way.
Thanks for the effort, but both timers flash green. I tried replacing color_name with rgb_color but that doesn’t change anything. I added a 3rd, which also flashes green:
It turns out that when the Hue Iris light is off, it flashes the last color it had when it was on, regardless of the command. Which is already better than Hue bulbs, that only flash when they’re already on. Is there a way to switch bulbs on?
Follow-up question: how do I put the lights back in the previous state after flashing? So back to off when they were off and back to the right colour/temperature when they were on.
I also would like to have an actual hard button I can press for the right timer to start (for instance the Hue dimmer switch). Anyone knows how to do that?
For the prev state I would use a helper that stores the state of the bulb and is used to recall the status once the timer has finished.
As for the hardwarebutton the trigger would be the push of the button.
How to do it? No clue, would have to google it myself. Maybe there is a blueprint out there?