This project provides an integration between Sofar inverters over RS485 and MQTT using Python It allows you to read and write data to Sofar inverters using a prebuilt Docker image or Python script
3
stars
0
forks
source link
Introduce MQTT auto discovery for Home Assistant #11
Implemented MQTT auto discovery for home assistant - no more manual config!
Added a new refresh option for each register allowing some registers to be read more regularly (fresher) than other that are less important (i.e serial number)
Added registers for serial number, software version, hardware version.
The script now retains a local dict of data which is updated after reading registers for this iteration (based on refresh)
After an iteration the entire dict (JSON) is sent to a new topic sofar/state_all'
Added a new option for LEGACY_PUBLISH to continue to send messages individually in addition to sofar/state_all.