Skip to content

Resubscribe HA command topics on reconnect, add NOAH temperature/SoH sensors - #242

Open
bastiglaser wants to merge 1 commit into
robertzaage:mainfrom
bastiglaser:noah-resubscribe-extra-sensors
Open

bastiglaser wants to merge 1 commit into
robertzaage:mainfrom
bastiglaser:noah-resubscribe-extra-sensors

Conversation

@bastiglaser

Copy link
Copy Markdown
  • HA client: move command topic subscriptions into on_connect so they survive broker restarts/reconnects (clean session drops them). Before, all HA controls silently stopped working after a Mosquitto restart while sensor data kept flowing.
  • NOAH: map input registers 94/97/98 (PV1/PV2/system temperature, 0.1 K) and 102 (battery SoH). Verified on a NOAH 2000 (FW 19.20.x) against the values reported by the Growatt cloud API.
  • Tests for resubscription and the new NOAH sensors.

Claude-Session: https://claude.ai/code/session_01GZDuFAVX8uAQWcnJhcwoCY

…SoH sensors

- HA client: move command topic subscriptions into on_connect so they
  survive broker restarts/reconnects (clean session drops them). Before,
  all HA controls silently stopped working after a Mosquitto restart
  while sensor data kept flowing.
- NOAH: map input registers 94/97/98 (PV1/PV2/system temperature, 0.1 K)
  and 102 (battery SoH). Verified on a NOAH 2000 (FW 19.20.x) against the
  values reported by the Growatt cloud API.
- Tests for resubscription and the new NOAH sensors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GZDuFAVX8uAQWcnJhcwoCY
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