MQTT Messages

Topics

When Sputter publishes drive measurements to MQTT, it will publish measurements to a separate topic per-drive. The topic format will be in the format sputter/drv-<SERIAL-NUMBER> with a JSON payload. For example:

TopicMessage
sputter/drv-Z52CBFRL{"sensors":{"temperature":39},"states":{"healthy":"False","source":"scrutiny"}}

Home Assistant Integration

As outlined in the HA Integration docs, Sputter can automatically create sensor entitiies in Home Assistant for measured drives. It does this using Home Assistant’s MQTT Discovery capabilities.

This consists of publishing messages to the homeassistant/sensor/<drive-id>/drive-temperature/config topic (for any discovered drives) where the exact message body will be controlled by the Home Assistant configuration.