-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Last Heard time is a bit.... odd.... #35
Comments
OK so looking back through the logbook, it's not just a simple ampm issue, it's consistently 12 hours BEHIND as you can see from the logbook, when it was actually AM in GMT/UTC which should render a simple 24 hour clock issue temporarily fixed, it is in fact as you can see still claiming the last heard time was 12 hours before the recorded time. At 11:56:11am on the 18th January, the integration claims last heard was 23:56 on 17th January |
Not really surprising unfortunately. Do you remember if it was working previously with another version (both this integration as well as other meshtastic firmware version)? In my own installation (currently UTC+1) I don't have such problems anymore. I've made some changes in this area in version 0.2.0, but the code should now be correct. Timezones and time is hard to get right and there are some quirks on meshtastic firmware side. This integration currently tries to extract the POSIX TZ string from the local timezone, sends it to the meshtastic firmware and then sets the UTC timestamp as clock. This is only done on the beginning of the connection. In my test it was necessary to reboot the meshtastic device for the TZ string to be applied. There are different things that could influence proper working:
In order to get some more insight, I would need serial log of the device, including the beginning of the log when the device boots where time zone information is printed, as well as extract of the serial log at the time when last heard is being updated (ideally together with debug logs of home assistant / this integration at the same time) |
System Health details
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Checklist
Describe the issue
My last heard time, is 12 hours ago for remote nodes, but looking at the logbook.....
We can see that actually it was heard 12 hours AFTER the time the integration claims.
Eg:
Actually heard at 20:29:38 but the integration claims 08:29
The web interface also claims 12 hours ago too. The Meshtastic app says 5 minutes ago.
Reproduction steps
Observe the last heard time. Looks like it's just an issue with 24 hour time.
Debug logs
Diagnostics dump
No response
The text was updated successfully, but these errors were encountered: