My daughter has a Hatch light in her room. HA turns it on and blue color at 9PM tell her it’s time for bed. It stays on until 6am when HA first turns the light to white and 50% brightness then waits 5 seconds and turns it off. That way, when we turn the light on manually it will be white and 50% brightness. This has worked until about 3 days ago (likely after an update to 2024.4.x). Now, I get this error in my logs
Logger: homeassistant.components.automation.kassidy_blue_light_turn_on
Source: helpers/script.py:1918
integration: Automation ([documentation](https://www.home-assistant.io/integrations/automation), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+automation%22))
First occurred: April 16, 2024 at 9:00:00 PM (2 occurrences)
Last logged: 9:00:00 PM
Kassidy blue light - turn on: Already running
Here is my automation yaml
alias: Kassidy blue light - turn off
description: ""
trigger:
- platform: time
at: "06:00:00"
- platform: time
at: "10:00:00"
condition: []
action:
- service: light.turn_on
data:
brightness_pct: 50
color_temp: 153
target:
entity_id: light.kassidy_hatch_light
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: light.turn_off
data: {}
target:
entity_id: light.kassidy_hatch_light
- service: switch.turn_off
data: {}
target:
entity_id: switch.kassidy_toddler_lock
mode: single
I guess I could likely fix this by adding a light.turn_off
command first, then wait 1 seconds, turn the light back on white and 50%, then turn it off again. But, is there a cleaner way to do this?