I have a few automations that start when I arrive home. I use OpenWRT to assess if a phone connects to the WiFi router. Thus, an individual moves from “not_home” to “home.” This works well for the most part, however it annoyingly is triggered each time HA is rebooted. How do I write a condition that limits the automation when proximate to a reboot?
Example:
alias: Alerts when Arrive Home - Vacuum, Windows, Dog, Washer, Dryer
description: "Alerts when arrive home"
trigger:
- platform: state
entity_id:
- person.user
from: not_home
to: home
for:
hours: 0
minutes: 1
seconds: 0
condition: []
action:
- ...
Grave digging is sometimes rewarded! I was able to block many automations triggered by a change from the unknown state at reboot using a template binary sensor for startup as a condition for the automation (“Starting Up” must be off). Although I can’t find it, I think it used to be an example on this page of the home assistant documentation years ago.