Skip to content

fix: keep AC off optimistically while cloud settles - #479

Open
dennismdejong wants to merge 1 commit into
sockless-coding:masterfrom
dennismdejong:fix/474-378-turn-off-then-on
Open

fix: keep AC off optimistically while cloud settles#479
dennismdejong wants to merge 1 commit into
sockless-coding:masterfrom
dennismdejong:fix/474-378-turn-off-then-on

Conversation

@dennismdejong

Copy link
Copy Markdown

Closes #474
Closes #378

Root cause: after a power-off command, the debounced refresh read stale power=On from the cloud before it settled, flipping the UI back to the previous mode.

Fix: optimistic OFF with a 10s grace window — during it, ignore a stale power=On for the hvac mode (other attrs still update). When the cloud confirms Off, the window clears.

Verification: compile-only (no HA test harness in this repo).

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.

AC units turn off per command, but then immediately turn back on After turning off, turns itself back on

1 participant