home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.17k stars 29.85k forks source link

Tessie Device Tracker mistakenly updates last_changed with every location received #125000

Open rando2000 opened 2 weeks ago

rando2000 commented 2 weeks ago

The problem

The Tessie vehicle device tracker should update the last_changed timestamp only when the state (zone) changes. However, it appears to update the timestamp each time a location is received from the Tessie service even when the zone has not changed.

What version of Home Assistant Core has the issue?

core-2024.8.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tessie

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tessie

Diagnostics information

No response

Example YAML snippet

Use the following template to view the last_changed field. With the car parked, the timestamp periodically changes. It should show the time that the car last entered its current zone and stay fixed until the zone changes.

{{ states.sensor.MY_TESLA_location.last_changed}}

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 weeks ago

Hey there @bre77, mind taking a look at this issue as it has been labeled with an integration (tessie) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tessie` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tessie` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tessie documentation tessie source (message by IssueLinks)

Bre77 commented 2 weeks ago

I'm not sure I can actually fix this. All I set is the GPS coordinates and the last changed value gets changed by Home Assistant itself.