Skip to content

Commit

Permalink
Added systemIO_power register
Browse files Browse the repository at this point in the history
systemIO_power is the AC side of the inverter. Values in this register (0x0214) will match the power To/From the battery shown on the front LCD panel and in the Solarman app. Note the battery_power register is DC side of the inverter, and values differ by ~5% from the AC side due to conversion losses.
  • Loading branch information
MartinJSa committed Nov 7, 2022
1 parent e62fd59 commit 0bde696
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ Which provides:
running_state
grid_voltage
grid_current
grid_freq
battery_power
grid_freq
systemIO_power (AC side of inverter)
battery_power (DC side of inverter)
battery_voltage
battery_current
batterySOC
Expand Down
12 changes: 8 additions & 4 deletions Sofar2mqtt/Sofar2mqtt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ Which provides:
running_state
grid_voltage
grid_current
grid_freq
battery_power
grid_freq
systemIO_power (AC side of inverter)
battery_power (DC side of inverter)
battery_voltage
battery_current
battery_current
batterySOC
battery_temp
battery_cycles
Expand All @@ -45,7 +46,8 @@ today_purchase
today_consumption
inverter_temp
inverterHS_temp
solarPVAmps
solarPVAmps
With the inverter in Passive Mode, send MQTT messages to:
Expand Down Expand Up @@ -168,6 +170,7 @@ bool BATTERYSAVE = false;
#define SOFAR_REG_BATTTEMP 0x0211
#define SOFAR_REG_GRIDW 0x0212
#define SOFAR_REG_LOADW 0x0213
#define SOFAR_REG_SYSIOW 0x0214
#define SOFAR_REG_PVW 0x0215
#define SOFAR_REG_PVDAY 0x0218
#define SOFAR_REG_EXPDAY 0x0219
Expand Down Expand Up @@ -201,6 +204,7 @@ static struct mqtt_status_register mqtt_status_reads[] =
{ SOFAR_REG_BATTW, "battery_power" },
{ SOFAR_REG_BATTV, "battery_voltage" },
{ SOFAR_REG_BATTA, "battery_current" },
{ SOFAR_REG_SYSIOW, "systemIO_power" },
{ SOFAR_REG_BATTSOC, "batterySOC" },
{ SOFAR_REG_BATTTEMP, "battery_temp" },
{ SOFAR_REG_BATTCYC, "battery_cycles" },
Expand Down

0 comments on commit 0bde696

Please sign in to comment.