Skip to content

fix(live): one Home use; the page follows load_quality alone - #1773

Merged
frahlg merged 1 commit into
masterfrom
fix/live-load-quality-flag
Oct 21, 2026
Merged

frahlg merged 1 commit into
masterfrom
fix/live-load-quality-flag

Conversation

@frahlg

@frahlg frahlg commented Oct 21, 2026

Copy link
Copy Markdown
Member

Problem

Since 18 October every box shows Home use on the energy flow as an estimate ("≈ 614 W") and never shows "% self-powered now", even when every device is read. /api/status always carries load_estimate, an energy-averaged Home use object, and web/components/energy-flow-readings.js:211 treated its presence as "estimated".

Seen on the home box (v0.154.1-beta.1): history_quality: complete, every flow read, page shows "≈ 614 W" and no self-powered line.

Change

+28 / −1,240.

Evidence

  • Rendered the page from this branch against the home box's live API (read-only proxy): "655 W" and "100% SELF-POWERED NOW". Master's page against the same box: "≈ 614 W", no self-powered line.
  • make verify: 77 Go packages pass, build and vet clean. npm test: 868/868.
  • Tests: status sends one Home use (measured / unknown quality, no load_estimate); the page marks estimated only on load_quality: "estimated"; HA publishes "Load Power" and no energy-average sensor.

🤖 Generated with Claude Code

/api/status always sent load_estimate, an energy-averaged Home use, and
the energy flow treated its presence as "estimated". Every box therefore
showed "≈" on Home use and never showed "% self-powered now", even with
every device read. The page now reads Core's load_quality only.

HomeUseEstimate came in on 18 October as the live Home use and was left
behind when #1768 made Home use the plain balance. It fed only
load_estimate and a second Home Assistant sensor that has not shipped.
Remove it, its observation buffers in the telemetry store and the HA
sensor, so Core has one Home use value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T09:14:00.274840Z 0a6aa2f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@frahlg
frahlg merged commit 18f75ac into master Oct 21, 2026
22 checks 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.

1 participant