gcobb321 / icloud3_v3

iCloud3 v3, Development Version - This Repo/Version is used for development and testing of new and updated features. It is not the official release of iCloud3 v3, .
MIT License
169 stars 13 forks source link

Zone Names during HA restarts #299

Closed chupacabra71 closed 6 months ago

chupacabra71 commented 6 months ago

Not sure if this is an icloud or HA issue, but thought i'd start here. I have an automation that notifies me of zone changes whenever someone enters or leaves a zone. lately, I have been getting notifications of my wife leaving and then entering her work every time i restart Home Assistant. Here is a capture of the history of person (ida) and icloud device tracker (ida's fancy phone)

Status

it seems that during a reboot, there is a period of time that the sensor goes from the zone name to away and then in the next poll it updates it to the zone name. Not a huge deal, but thought it was strange that it started happening recently and not something i had noticed in the past.

gcobb321 commented 6 months ago

The sensor is normally refreshed with the last known value when iCloud3 starts. One thing you could do is delay triggering the automation that sends the notification until 30-secs or so after a restart is complete. I have an sensor template that goes to True 30-secs after HA starts and check that is several automations.

chupacabra71 commented 6 months ago

tried this for a couple of days and seems to have solved the issue. thanks for the suggestion!