HomeAssistant integration - softwarecrash/Solar2MQTT GitHub Wiki
Solar2MQTT supports Home Assistant MQTT discovery. In normal use you do not need to add devices manually in Home Assistant.
- Working MQTT broker
- Solar2MQTT connected to Wi-Fi
- MQTT configured in Solar2MQTT
- Valid inverter or sensor data already visible in the Web UI
- Open
MQTT - Enable
Home Assistant discovery - Save settings
- Wait for MQTT reconnect
You can also trigger a rediscovery later from the Debug page with the HA Discovery button.
- Solar inverter values
- Device information values
- DS18B20 temperature sensors
Only values that actually exist on your device are added.
Availability:
<MQTT topic>/Alive
State topics:
<MQTT topic>/DeviceData/<name><MQTT topic>/LiveData/<name><MQTT topic>/LiveData/DS18B20_<n>
JSON mode and Home Assistant discovery can be used together.
When both are enabled:
- the full JSON payload is still published
- the normal MQTT datapoint topics are still published so Home Assistant can create entities
- verify MQTT is connected
- verify the Web UI already shows valid values
- check that the MQTT broker is receiving data from Solar2MQTT
- trigger
HA Discoveryonce from the Debug page