Skip to content

Conversation

@pnbruckner
Copy link
Owner

@pnbruckner pnbruckner commented Mar 14, 2024

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:

  • a naive Python datetime object which is assumed to be in HA's configured time zone
  • an aware Python datetime object in any time zone
  • anything homeassistant.util.dt.utc_from_timestamp will accept
  • anything homeassistant.util.dt.parse_datetime will accept

@pnbruckner pnbruckner changed the title Add support for iCloud3's last_located attribute Add support for last_seen in datetime string format Mar 17, 2024
@pnbruckner pnbruckner changed the title Add support for last_seen in datetime string format Accept various formats of last_seen/last_timestamp attribute Apr 3, 2024
@pnbruckner pnbruckner changed the title Accept various formats of last_seen/last_timestamp attribute Accept various formats for last_seen/last_timestamp attribute Apr 3, 2024
@pnbruckner pnbruckner merged commit 915aeb6 into master Apr 3, 2024
@pnbruckner pnbruckner deleted the last_located branch April 3, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant