Skip to content

Poll less: skip the stale drain on fresh connections, poll optional paths only when used - #10

Merged
Varitras merged 8 commits into
mainfrom
feature/poll-efficiency
Nov 1, 2026
Merged

Varitras merged 8 commits into
mainfrom
feature/poll-efficiency

Conversation

@Varitras

@Varitras Varitras commented Nov 1, 2026

Copy link
Copy Markdown
Owner
  • A connection opened for a request no longer waits out the stale-line drain.
  • Fast paths that only entities disabled by default read (outputs 1 and 2, output meter and clip, standby countdown) are polled only while such an entity is enabled; the first refresh still reads everything. On a KH 750 that is 9 of 21 requests per cycle.
  • Entities register their path as coordinator context; tests keep the optional list in step with the entity descriptions.
  • README polling section updated.

The drain waits out its 10 ms window whenever it finds nothing; on a
socket opened for this very request nothing can be stale.
Entities register their SSC path as coordinator context. On a KH 750,
9 of 21 fast paths served only entities disabled by default.
The coordinator's _listeners is Home Assistant internals, and a listener
added before the first refresh made it skip the optional paths.
@Varitras
Varitras merged commit f8541ef into main Nov 1, 2026
9 checks passed
@Varitras
Varitras deleted the feature/poll-efficiency branch November 1, 2026 15:05
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.

1 participant