I pull data directly from the Inverter via the RS485 port. I followed this build instruction to make the Modbus board.
Which provides directly from the inverter to MQTT and HA:
- running_state
- grid_voltage
- grid_current
- grid_freq
- battery_power
- battery_voltage
- battery_current
- batterySOC
- battery_temp
- battery_cycles
- grid_power
- consumption
- solarPV
- today_generation
- today_exported
- today_purchase
- today_consumption
- inverter_temp
- inverterHS_temp
- solarPVAmps
With the inverter in Passive Mode, send MQTT messages to:
- sofar2mqtt/set/standby - send value “true”
- sofar2mqtt/set/auto - send value “true” or “battery_save”
- sofar2mqtt/set/charge - send values in the range 0-3000 (or higher if your inverter goes above 3000 watts)
- sofar2mqtt/set/discharge - send values in the range 0-3000 (or higher if your inverter goes above 3000 watts)