0.87 and sunset based automation not working

Hi,

I have a simple automation that seems to have stopped working since I upgraded to 0.87 this morning. I can’t see any changes that would break this:

- id: turn_off_lr_light_after_sunrise
  alias: Turn off LR light after Sunrise
  trigger:
    - platform: sun
      event: sunrise
  action:
    - service: switch.turn_off
      entity_id: switch.lr_light

- id: turn_on_lr_light_after_sunset
  alias: Turn on LR light after sunset
  trigger:
    - platform: sun
      event: sunset
      offset: '-00:30:00'
  action:
    - service: switch.turn_on
      entity_id: switch.lr_light

Is there anything in the logs? My id’s are in quotes… does that entity still exist - can you see it in dev-tools <> states?

try adding the line

initial_state: true

at the beginning of each automation (like right under the - id: )

Good point… it could be off…

I’m running into the same issue. Guess I’d have to go back to the yaml for automations. I prefer using the UI but can’t add the initial state parameter.

Wonder what charged.

Update: Mine was fixed by adding the initial_state to all automations.

Setting the initial value did not fix the automation. I should have mentioned that I am using yaml files. They automations do show up in the automation list after a restart but you can’t view/change them.
As a test I removed all other automations to see if something else is breaking them (e.g. I renamed them to zzz_oldName.disabled for now)

This seems to have been the solution … one of the other automations (which don’t use any of the same entities) is screwing up this automation. I really wish HA’s debug was easier.