Skip to content

Show numeric-sensor history in the activity log - #30

Merged
iTerminate merged 4 commits into
mainfrom
improvements
Aug 1, 2026
Merged

Show numeric-sensor history in the activity log#30
iTerminate merged 4 commits into
mainfrom
improvements

Conversation

@iTerminate

Copy link
Copy Markdown
Owner

Summary

  • HA's own logbook silently excludes continuous sensors (any sensor.* with a unit_of_measurement/state_class), so the activity log showed nothing for e.g. a temperature sensor while binary sensors worked fine.
  • client.fetch_state_log synthesizes logbook-shaped entries from /api/history for these entities; HACLI.fetch_log_entries merges them into both the fullscreen graph's and main screen's activity log, rendering the entity's unit (21.5 °C).
  • Mirrored in --demo mode, plus FakeHAClient/DemoHAClient parity.

Fixes #29

Test plan

  • pytest (full suite, 1210 passed)
  • ruff check .
  • pyright
  • Manual DemoHAClient sanity check confirming empty logbook + populated state log for a numeric sensor

@iTerminate
iTerminate merged commit 92fad44 into main Aug 1, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

Activity log shows no history for numeric sensors

1 participant