Skip to content

fix: filter implausible extrapolated power readings - #483

Open
dennismdejong wants to merge 1 commit into
sockless-coding:masterfrom
dennismdejong:fix/391-392-power-spike-mitigation
Open

fix: filter implausible extrapolated power readings#483
dennismdejong wants to merge 1 commit into
sockless-coding:masterfrom
dennismdejong:fix/391-392-power-spike-mitigation

Conversation

@dennismdejong

Copy link
Copy Markdown

Closes #391
Closes #392

Root cause: extrapolated power (current/cooling/heating) is computed upstream in aio-panasonic-comfort-cloud and occasionally spikes on energy-reset boundaries.

Fix (repo-side mitigation): discard NaN/negative and implausibly large positive jumps (>10x previous and >5000W) for power entities, keeping the last good value so the energy dashboard isn't polluted. The definitive fix for the underlying calculation is tracked upstream.

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.

Random power spikes with AC Random power spikes with AC

1 participant