I have an automation that opens the door when any of my device tracker changes my person entity from ‘not_home’ to ‘home’. It’s been working great.
The only issue is that if I ever have to restart Home Assistant, my person entity is set to ‘not_home’ by default. When my first device checks in and lets home assistant know that I’m home, the garage door opens. This makes me hesitate to restart.
It’s not a huge deal because I can just close it again, but it’s annoying. It also isn’t helping home assistant pass the wife test if every time I restart home assistant our garage door opens.
You could add an extra condition to your automation with an uptime sensor so that the automation is only triggered when the uptime ist greater than a few minutes.
Garage door.
I have an automation that starts a script when the bathroom light goes out, to turn the fan off after x minutes (variable, defined in ui) it often starts when I restart HA, no idea why, any way - what I’m going to do about it is set an input booleans (initial: ‘on’) that prevents the automation firing. Then 2 mins after HA starts I’ll get the bit set to off. I’ll use the same bit on any automation that appears to be in the same boat. Do the same for your garage door.