This integration regularly polls the LSW-3 and sends inverter data on a MQTT topic.
It supports MQTT discovery.
It is implemented by a binary executable sofar-arm
(on arm) or sofar-x86
(on x86), which is kicked off when the integration starts and runs forever.
- First get the go program
sofar_g3_lsw3_logger_reader
working on your dev machine, so that you have a workingconfig.yaml
andsofar-x86
(x86) andsofar-arm
(arm) binary executables. - Copy this directory
custom_components/sofar_g3_lsw3_logger_reader
to homeassistant's/config/custom_components
(creating/config/custom_components/sofar_g3_lsw3_logger_reader
). You can use theSamba share
orAdvanced SSH & Web Terminal
add-ons to do this. - Copy the working
config.yaml
(from step 1) to the same directory. - Copy the executables
sofar
(x86) andsofar-arm
(arm) (from step 1) to this same directory. - Enable the custom component by adding a line
sofar_g3_lsw3_logger_reader:
to homeassistant's/config/configuration.yaml
. - Do a full restart of homeassistant:
Developer Tools
>YAML
>CHECK CONFIGURATION
thenRESTART
>Restart Home Assistant
- Check the content of
err.log
in this same directory. - Add the
Inverter
device to your dashhboard:Settings
>Devices & Services
>Integration
>MQTT
>1 device
>ADD TO DASHBOARD
- Install using HACS
- In directory
/config/custom_components/sofar_g3_lsw3_logger_reader
copyconfig-example.yaml
toconfig.yaml
and edit to match your requirements. - Restart Home Assistant to run the integration.
- Get logging going to homeassistant's log.
- Add support for "config flow"