Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time_to_full_charge showing different results? #195

Open
3 tasks done
adultano opened this issue Feb 12, 2025 · 6 comments
Open
3 tasks done

time_to_full_charge showing different results? #195

adultano opened this issue Feb 12, 2025 · 6 comments

Comments

@adultano
Copy link

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Hi

I noticed that the field "time_to_full_charge" might have changed in the past couple of days. Before, this was showing the expected time by when the charging will be completed in the format of "2025-02-12T20:12:29+00:00". I noticed, that with potentially some recent changes on Teslemetry(?) this is wrong. The API result now is "time_to_full_charge": 9.25 which is probably 9hrs 15 Minutes. I think the integration however treats this as 9mins15 seconds? Do you see the same? Strangely enought, "Time_to_arrival" is still correct. I was trying to find if the API has changed but failed to find an answer.

It's the first time I am raising an issue on Github. Apologies if i missed something.

Reproduction steps

  1. Obtain API key from teslemetry
  2. install Teslemetry HACS integration
  3. Start charging the vehicle
  4. Check if "time_to_full_charge" shows the correct result in HA.

Debug logs


@Bre77
Copy link
Member

Bre77 commented Feb 12, 2025

In the custom integration there are two entities, time at full charge and time to full charge. One shows the time, the other shows the number of hours.

Screenshot_20250213-070646.png

Do you also have both, and which do you think changed?

@adultano
Copy link
Author

Thanks for the quick response - however time AT full charge i dont see. i only have time TO full charge and that's where i think it changed.

@adultano
Copy link
Author

maybe to clarfify: Below you see the result on teslemetry:
"time_to_full_charge": 8.25,
"timestamp": 1739396918069,
"trip_charging": false,
"usable_battery_level": 40,

8.25 which matches the 8hrs15minutes which i see in the official tesla app. however in HA i see:

Image

which is in fact 9minutes from now. Maybe I am just being stupid. But something must have changed

@adultano
Copy link
Author

So my guess is- but I am completely unqualified to confirm this - maybe this field before was sending minutes only, i.e. 495 minutes, and now instead it reports it as hours, i.e. 8.25. mathematically this would match my findings.

Meanwhile - a huge thanks for all your hard work!

Best
Marco

@Bre77
Copy link
Member

Bre77 commented Feb 13, 2025

Yes, I believe you are right about the minutes vs hours thing. I thought I had already fixed that but seemly not.

@adultano
Copy link
Author

Thank you so much - at least I read the information not entirely wrong then. Take your time to fix it, I've done some workaround in the meantime. And thanks again so much. Let me know if I can "buy you a coffee" in some way.

Best
Marco

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

No branches or pull requests

2 participants