Expose node clocks as sensors (hub `get_time`, repeater `server_timestamp`)
Maintainers usually reply within 11 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by reading companion-integration-api.md and tracing how the CLI-command service exposes hub commands and how repeater login/keep-alive handles LOGIN_SUCCESS. The issue also names AnonReqType.BASIC as an optional query path. Done means exposing each node's clock as a timestamp sensor so consumers can compare it with Home Assistant time; the issue does not identify specific source files or tests.
Written by the indexing model from the issue text.
Description
Taking up the invitation in companion-integration-api.md to request a structured surface: please expose node clocks as entities so dashboards can show clock drift.
- Hub:
commands.get_time()is already reachable via the CLI-command service, but not as a sensor. - Repeaters:
LOGIN_SUCCESScarriesserver_timestamp(firmware companion-v1.10.0+), so the clock could be captured at login/keep-alive without extra traffic. There's alsoAnonReqType.BASIC(0x03, "just remote clock") for an anonymous query where login isn't available.
A device_class: timestamp sensor per node would be enough — consumers can compute drift against HA time. Concretely, I'd like to implement a clock-drift warning in meshcore-card: flag a node whose clock has drifted beyond a threshold, since stale repeater clocks skew sender_timestamp correlation (as your docs note). This sensor is the missing piece.
- Dominant language
- Python
- Stars
- 269
- Forks
- 58
- Avg merge
- 10d 17h
- Merged PRs (30d)
- 12
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from meshcore-dev/meshcore-ha
-
Beta Tagging?Openquestion
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
meshcore-dev/meshcore-ha#365 · 1 comment ·
Maintainers usually reply within 11 days
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
meshcore-dev/meshcore-ha#196 · 3 comments ·
Maintainers usually reply within 11 days
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
meshcore-dev/meshcore-ha#432 ·
Maintainers usually reply within 11 days
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
meshcore-dev/meshcore-ha#426 ·
Maintainers usually reply within 11 days
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
meshcore-dev/meshcore-ha#420 · 1 comment ·
Maintainers usually reply within 11 days
All issues in meshcore-dev/meshcore-ha
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day