pnbruckner / ha-composite-tracker

Home Assistant Composite Device Tracker
The Unlicense
133 stars 11 forks source link

Accept various formats for last_seen/last_timestamp attribute #67

Closed pnbruckner closed 6 months ago

pnbruckner commented 6 months ago

iCloud3 tracker entities have a last_located attribute. It seems to be a timestamp for the location attributes, and appears to always be a naive time string in HA's local time zone.

iCloud3 has been updated to create a last_timestamp attribute with a POSIX timestamp. So now it is supported.

Also enhance last_seen attribute processing to allow a datetime string format. Basically, these attributes can be one of the following: