Skip to content

Add battery temperature, internet connection and available power sensors - #6

Merged
andreasthell merged 2 commits into
mainfrom
claude/fervent-clarke-r01eob
Sep 16, 2026
Merged

andreasthell merged 2 commits into
mainfrom
claude/fervent-clarke-r01eob

Conversation

@andreasthell

Copy link
Copy Markdown
Owner

EnergyInBalance added new panels in 2026-09. This adds support for the data behind them:

New sensors

  • Battery Temperature High / Low (°C) — from the new /diag/{siteId}/connectionStatus endpoint (inverter stats in the diagnostics blob; extremes across inverters, matching the EIB UI)
  • Internet Connection — "Network cable (LAN1)" / "Mobile internet (4G)" / "No internet", derived from hello_eth0 and default_route, with CM10 uptime and default route as attributes
  • Available Charge / Discharge Power (kW) — from RelatedMeters[].PeakAcKw in /site/Statuses (the power the battery can offer CheckWatt, which compensation is based on)

Details

  • Diagnostics fetched on a 5-minute sub-interval; available power rides the existing 60 s status fetch
  • New endpoint and its blob format documented in docs/api.md
  • Swedish translations added
  • 10 new tests for the diagnostics blob parsing (59 total, all green)
  • Version bumped to 1.5.0 → merge triggers the release workflow to tag and publish v1.5.0

🤖 Generated with Claude Code

https://claude.ai/code/session_01PD9bpkt2u8KiXPQVQSgWwk


Generated by Claude Code

EnergyInBalance added new panels in 2026-09 backed by the
/diag/{siteId}/connectionStatus endpoint and the RelatedMeters field
in /site/Statuses:

- Battery temperature highest/lowest (from inverter stats in the
  diagnostics blob, extremes across inverters like the EIB UI)
- Internet connection sensor (LAN1 / 4G backup / no internet), with
  CM10 uptime and default route as attributes
- Available charge/discharge power (the power the battery can offer
  CheckWatt, which compensation is based on)

Diagnostics are fetched on a 5-minute sub-interval. Document the new
endpoint and its blob format in docs/api.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PD9bpkt2u8KiXPQVQSgWwk
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PD9bpkt2u8KiXPQVQSgWwk
@andreasthell
andreasthell merged commit 31bb58a into main Sep 16, 2026
2 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.

2 participants