Archived: We have moved to https://www.home-assistant.io/integrations/spaceapi/
A simple Go implementation of spaceapi that watches all MQTT topics and caches the last values.
Simply run go build
.
Edit the status-template.json
(go-template syntax) to your needs and run the tool. Configuration options can be set via environment variables.
MQTT_URL
: URL of the MQTT server (default:tcp://mqtt.core.bckspc.de:1883
)MQTT_CLIENT_ID
: set MQTT client id - must be unique! (default:go-mqtt-spacestatus-dev
)DEBUG
: print MQTT topic changes, enabled when set, regardless of value
Currently it's not possible to limit the MQTT topics cached.