Integration - MQTT


MQTT is used by hobbyist and developers to integrate and extend the functionality of SolarAssistant into their projects.

Enable MQTT output

Navigate to the "Configuration" tab and start MQTT:

Enable MQTT output in SolarAssistant

Determine SolarAssistant local network IP

Also on the "Configuration" tab, determine what it's wlan0 (WiFi) or eth0 (LAN) IP is:

Finding your SolarAssistant local IP

Connect to MQTT

There are various utilities available to consume MQTT messages. In the example below, we will use the mosquitto client.

mosquitto_sub -h -p 1883 -v -t '#'

The result will be a continous stream of MQTT messages. To exit, press ctrl-c.

Running log of SolarAssistant MQTT messages