Activate sml2mqtt bridge (privileged USB access, stdout logging, replicas 1) #84

Merged
k.renner merged 1 commits from worktree-ha-meter-mqtt-bridge into master 2026-06-27 20:59:41 +00:00
1 Commits
Author SHA1 Message Date
k.rennerandClaude Opus 4.8 0ad25fbe1a feat(home-assistant): activate sml2mqtt bridge (privileged, stdout, replicas 1)
edl21 has been disabled in HA, freeing the meter's serial port, so the
bridge is activated for the cutover.

Three fixes from bring-up testing:
- logging.file: stdout (was ''). Empty string made sml2mqtt try to open
  the /sml2mqtt config dir as a log file (IsADirectoryError crash loop).
  'stdout' routes logs to the container console for kubectl/Loki.
- securityContext.privileged: true (with runAsUser 0). The meter device
  is root:root 0600, AND the device cgroup blocks a hostPath-mounted char
  device for non-privileged containers even as root. There is no
  device-plugin in the cluster; the existing USB pods (zwave-js, HA) use
  the same privileged pattern. User-approved.
- replicas: 0 -> 1 (port is now free; no edl21 contention).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-27 22:58:36 +02:00