evcc: publish state to MQTT for Home Assistant integration #108

Merged
k.renner merged 1 commits from feat/evcc-mqtt-publish into master 2026-07-04 16:56:06 +00:00
Owner

Stage 1 of integrating evcc into Home Assistant (the house-native MQTT path, since the HA config-sync sidecar does not track custom_components so a HACS integration is not git-managed here).

What this does

  • Grants the evcc Mosquitto user readwrite on evcc/# (keeps read open3e/#), and sets an explicit publish topic (topic: evcc) in evcc.yaml.
  • evcc already auto-publishes its site state when the mqtt block is set, but the evcc user was read-only on open3e/# so those publishes were silently dropped by the broker ACL. This unblocks them.
  • HA will read the evcc/# topics via the full-access homeassistant user.

Next (separate PR, homeassistant repo)

A packages/evcc.yaml MQTT sensor package that consumes evcc/# — mirroring the open3e.yaml pattern. I will author it against the ACTUAL published topic names captured live from the broker after this merges (not guessed).

Deploy note

Applying this restarts the Mosquitto pod once (brief MQTT blip for HA/open3e), because the broker command/ACL changes.

Stage 1 of integrating evcc into Home Assistant (the house-native MQTT path, since the HA config-sync sidecar does not track custom_components so a HACS integration is not git-managed here). ## What this does - Grants the evcc Mosquitto user readwrite on evcc/# (keeps read open3e/#), and sets an explicit publish topic (topic: evcc) in evcc.yaml. - evcc already auto-publishes its site state when the mqtt block is set, but the evcc user was read-only on open3e/# so those publishes were silently dropped by the broker ACL. This unblocks them. - HA will read the evcc/# topics via the full-access homeassistant user. ## Next (separate PR, homeassistant repo) A packages/evcc.yaml MQTT sensor package that consumes evcc/# — mirroring the open3e.yaml pattern. I will author it against the ACTUAL published topic names captured live from the broker after this merges (not guessed). ## Deploy note Applying this restarts the Mosquitto pod once (brief MQTT blip for HA/open3e), because the broker command/ACL changes.
k.renner added 1 commit 2026-07-04 12:53:52 +00:00
Grants the evcc Mosquitto user readwrite on evcc/# (keeping read
open3e/#) and sets an explicit publish topic (topic: evcc) so evcc
publishes its site state to MQTT. Previously the evcc user was
read-only on open3e/#, so evcc's state publishes were silently dropped
by the broker ACL.

HA reads these evcc/# topics via the full-access homeassistant user; a
packages/evcc.yaml sensor package (in the homeassistant repo) consumes
them, mirroring the open3e package pattern.

Note: applying this restarts the Mosquitto pod once (brief MQTT blip).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
k.renner merged commit 8463dec39d into master 2026-07-04 16:56:06 +00:00
Sign in to join this conversation.