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
69.66k stars 28.82k forks source link

Tessie time to arrival gets time wrong #120465

Open ffMathy opened 3 days ago

ffMathy commented 3 days ago

The problem

I live in Denmark, so we use 24 hour clock instead of AM and PM. In addition, we are currently in summertime and we're generally UTC + 1 (so with summertime that gives UTC + 2) right now.

With this, Tessie gives the wrong Time To Arrival. It's very strange.

When I send a push notification with the message: "Estimated time of arrival: {{ states('sensor.teslabobs_time_to_arrival') }}"

Then the time that comes out is off. For instance if it's 8 AM, it'll typically come out as 10 PM or something similar.

I think maybe it's because it's adding some hours due to UTC and then also getting 24 hour clock wrong.

What version of Home Assistant Core has the issue?

core-2024.6.4

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

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 days 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 3 days ago

The time to sensors are relative to the time in your Home Assistant, so if your sure your Home Assistant has the right local time, I'll check if there is some bug making it a different timezone.