When I open Lovelace from the browser in my Tesla, the times are wrong.
E.g. sunrise shows as 9 pm and graphs with electricity prices also shift heavily. I realize this is a Tesla issue, but perhaps there is a way to work around this?
My hunch is that the browser reports Pacific time, even though the car is in Central European time (and shows the correct time on the clock). Any JavaScript relying on the time reported from the browser is then off by many hours.
Any ideas as to how I could work around this?
Thanks in advance.
P.S. Lovelace works great in the car - allows me to check the locks, etc. when we have left the house. But it is a little painful, that I cannot see what the cheapest time to charge is, when arriving home, as the graphs are off.
Assuming the problem is with energy prices graph in HA Lovelace used in tesla browser, here is a solution to offset the apexcharts-card graph.
In the data_generator of the apexcharts-card you can change the time offset.
I live in Denmark and mine are set to nine “(9 * 60 * 60 * 1000);” to compensate.
Sharing my code below, but be aware that I also added an option to change Tariff prices in the Data_generator section.
Mine are set to ad 0.6 but between 17:00 and 20:00 (9 and 12 in tesla browser) else it is adding 0.9.
Change both to 0 if you already have tariff set in the pricesensor.
NB: Sorry, but have no idea how to post the code without he format breaking. So sorry, please repost if you know how.
Same issue here and reported several times in the Tesla app that the browser internal time is set to US instead of de vehicle local GPS time.
All the data gets shifted in time!
Tesla says the browser time cannot be fixed for now
Solution is to create a new user and use that when logging in via the car browser. Then in user settings change timezone from LA to your own timezone. Fixed the energy dashboard for me.