Not sure what to make of this automation issue. I’ve had my HA setup running since just before the new year and this was one of the first automations I had running which has been doing just fine until this week. I recently tried updating this original code to add an additional condition so that it wouldn’t trigger late at night. After updating the code, which checked out in yamllint and the configuration
validation, HA wouldn’t come back up again following a restart.
No big deal, I removed that entire automation and restarted, HA works just fine. However, when I re-paste in the original code below that has been working just fine for months, it won’t boot up. I did update to .045, but this issue predates it by several days. Is there something incredibly obvious I’m missing here?
- alias: Turn On Lights When Coming Home After Dark
trigger:
platform: state
entity_id: device_tracker.mycell
from: 'not_home'
to: 'home'
condition: sun
after: sunset
after_offset: "-0:30:00"
action:
service: scene.turn_on
entity_id: scene.come_home_lights_on