Home Assistant Automation Not Triggering on Restart

Hey everyone, I’m trying to set up an automation in Home Assistant that triggers a switch every time I restart the system. I’ve tried a few different approaches, but it just doesn’t seem to work consistently. Here’s what I’ve done so far:

I created an automation that’s supposed to turn on a specific switch after a delay following the system restart. The automation works perfectly when I test it manually, but it doesn’t activate when the system restarts. I’m wondering if there’s something I’m missing in the configuration or if there’s a different way to ensure it runs on startup.

Here’s the YAML I’m using:
yaml
alias: Activate Fan Oscillation
trigger:

  • platform: homeassistant
    event: start
    condition:
    action:
  • delay: seconds: 120
  • service: switch.turn_on
    target:
    entity_id: switch.living_room_fan_oscillating

I’ve also tried adjusting the delay and using different services, but nothing seems to make a difference. I’m hoping someone with more experience can shed some light on this. Maybe there’s a setting I need to enable or a different approach altogether.

Thanks in advance for any suggestions! I really appreciate the community’s help with these kinds of issues. :blush: