ronajon
(ronajon)
September 15, 2024, 5:47am
1
i noticed that the output of mqtt_statestream is in UTC timezone and not in the local timezone.
Result is that the lastupdated & lastchanged timestamps have an offset from my localtime (in my case Europe/Amsterdam, offset is 2:00 hrs )
i would like to see the timestamps of mqtt_statestream in localtime
tom_l
September 15, 2024, 6:14am
2
The last_updated and last_changed values are always in UTC, even on your local system, e.g. one of mine:
I am in the UTC + 10 time zone and it is actually 16:07 here at the moment but as you can see the last updated value is 06:07 + 00:00.
This is how home assistant works. All time values in the backend are in UTC. The frontend translates these into local time for you to see.
Where exactly are you having issues with this?
If it is in a template you can use the |as_local
filter to compensate for this.
ronajon
(ronajon)
September 15, 2024, 11:52am
3
i use mqtt messages to feed into EVCC ( solar charging app ).
because of the UTC time, EVCC thinks the state value is outdated.
i already create another mqtt publish automation for this which uses the correct time
tom_l
September 15, 2024, 12:01pm
4
That is what I was going to suggest.