feat: add MQTT sensor publishing for Home Assistant

Adds a new s6 service (svc-foldingathome-mqtt) that polls the FAH 8 API
on port 7396 every 30 seconds and publishes 4 sensors to HA via MQTT
autodiscovery: Status, PPD, Work Unit Progress, and Credit estimate.

Requires the Mosquitto broker add-on; declared as mqtt:want so the
add-on remains functional without it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-07 19:50:49 +02:00
parent f63d13a8dc
commit b48c3868e0
6 changed files with 103 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ RUN \
curl \
jq \
libexpat1 \
mosquitto-clients \
netcat-openbsd && \
echo "**** install foldingathome ****" && \
if [ "${BUILD_ARCH}" = "aarch64" ]; then \