Sunsynk + Home Assistant

My card config for sunsynk 8kw for version 2.1.2, most likely stuff missing but its adapted for my needs.

Code:
type: custom:sunsynk-power-flow-card
cardstyle: lite
show_solar: true
battery:
  energy: 15960
  shutdown_soc: 5
  show_daily: true
  invert_power: 'yes'
  max_power: 9000
solar:
  show_daily: true
  mppts: 2
  max_power: 10000
load:
  show_daily: true
grid:
  show_daily_buy: true
  show_daily_sell: false
  show_nonessential: false
entities:
  use_timer_248: switch.use_timer
  priority_load_243: none
  inverter_voltage_154: sensor.solarman_load_voltage
  load_frequency_192: none
  inverter_current_164: sensor.solarman_current_l1
  inverter_power_175: none
  grid_connected_status_194: null
  inverter_status_59: sensor.solarman_status_connection
  day_battery_charge_70: none
  day_battery_discharge_71: none
  battery_voltage_183: sensor.solarman_battery_voltage
  battery_soc_184: sensor.solarman_battery_soc
  battery_power_190: sensor.solarman_battery_power
  battery_current_191: sensor.solarman_battery_current
  grid_power_169: sensor.solarman_total_grid_power
  day_grid_import_76: sensor.solarman_daily_energy_bought
  day_grid_export_77: sensor.solarman_daily_energy_sold
  grid_ct_power_172: sensor.solarman_internal_ct_l1_power
  day_load_energy_84: sensor.solarman_daily_load_consumption
  essential_power: sensor.solarman_total_load_power
  nonessential_power: sensor.load_power_non_essential
  aux_power_166: none
  day_pv_energy_108: sensor.solarman_daily_production
  pv1_power_186: sensor.solarman_pv1_power
  pv2_power_187: sensor.solarman_pv2_power
  pv1_voltage_109: sensor.solarman_pv1_voltage
  pv1_current_110: sensor.solarman_pv1_current
  pv2_voltage_111: sensor.solarman_pv2_voltage
  pv2_current_112: sensor.solarman_pv2_current
  pv_total: null
 
battery: energy: 15960 shutdown_soc: 5 show_daily: true invert_power: 'yes' max_power: 9000
Thanks. You need to change invert_power: 'yes' to invert_power: true . By default it is set to false
 
Thanks. You need to change invert_power: 'yes' to invert_power: true . By default it is set to false
Will just remove it, if i set it to true it shows the battery is charging when its actually discharging.
 
It doesn't come with Solar Assistant (connected to SunSynk 8KVA)

While my MQTT broker shows this below, I built those via 'threshold' helper in HA which is very easy to do via the GUI.

1692862447584.png

Here's is the config for my threshold helper called 'Grid Power Available'

1692862681395.png
 
@Slip I got a wierd bug. I updated but now its showing four mppts even though I still have it set to two? Also the autarky flag is still respecting 'no' vs false.

1692865163545.png

YAML:
type: custom:sunsynk-power-flow-card
cardstyle: full
panel_mode: false
show_solar: true
inverter:
  modern: true
  colour: '#959595'
  autarky: 'no'
battery:
  energy: 11000
  shutdown_soc: 20
  invert_power: false
  colour: pink
  show_daily: true
solar:
  colour: orange
  show_daily: true
  mppts: two
load:
  colour: '#5fb6ad'
  show_daily: true
  show_aux: false
  invert_aux: false
grid:
  colour: '#5490c2'
  show_daily: true
  show_daily_buy: true
  show_daily_sell: false
  show_nonessential: true
  nonessential_name: Geyser/Stove
  no_grid_colour: red
entities:
  use_timer_248: false
  priority_load_243: false
  day_battery_charge_70: sensor.solarman_daily_battery_charge
  day_battery_discharge_71: sensor.solarman_daily_battery_discharge
  day_load_energy_84: sensor.solarman_daily_load_consumption
  day_grid_import_76: sensor.solarman_daily_energy_bought
  day_grid_export_77: sensor.solarman_daily_energy_sold
  day_pv_energy_108: sensor.solarman_daily_production
  remaining_solar: sensor.forecast_remaining_today
  inverter_voltage_154: sensor.solarman_grid_voltage_l1
  load_frequency_192: sensor.solarman_load_frequency
  inverter_current_164: sensor.solarman_current_l1
  inverter_power_175: sensor.solarman_total_power
  grid_power_169: sensor.solarman_internal_ct_l1_power
  radiator_temp_91: sensor.solarman_ac_temperature
  dc_transformer_temp_90: sensor.solarman_dc_temperature
  pv2_power_187: sensor.solarman_pv2_power
  pv1_power_186: sensor.solarman_pv1_power
  pv3_power_188: sensor.solarman_pv3_power
  pv4_power_189: sensor.solarman_pv4_power
  battery_voltage_183: sensor.solarman_battery_voltage
  battery_current_191: sensor.solarman_battery_current
  battery_soc_184: sensor.solarman_battery_soc
  battery_power_190: sensor.solarman_battery_power
  essential_power: none
  nonessential_power: none
  grid_ct_power_172: sensor.solarman_external_ct_l1_power
  pv1_voltage_109: sensor.solarman_pv1_voltage
  pv1_current_110: sensor.solarman_pv1_current
  pv2_voltage_111: sensor.solarman_pv2_voltage
  pv2_current_112: sensor.solarman_pv2_current
  pv3_voltage_113: sensor.solarman_pv3_voltage
  pv3_current_114: sensor.solarman_pv3_current
  pv4_voltage_115: sensor.solarman_pv4_voltage
  pv4_current_116: sensor.solarman_pv4_current
  grid_connected_status_194: sensor.sunsynkcard_gridstatus
  inverter_status_59: sensor.sunsynkcard_inverterstatus
  aux_power_166: false
 
@Slip I got a wierd bug. I updated but now its showing four mppts even though I still have it set to two? Also the autarky flag is still respecting 'no' vs false.

View attachment 1576136

YAML:
type: custom:sunsynk-power-flow-card
cardstyle: full
panel_mode: false
show_solar: true
inverter:
  modern: true
  colour: '#959595'
  autarky: 'no'
battery:
  energy: 11000
  shutdown_soc: 20
  invert_power: false
  colour: pink
  show_daily: true
solar:
  colour: orange
  show_daily: true
  mppts: two
load:
  colour: '#5fb6ad'
  show_daily: true
  show_aux: false
  invert_aux: false
grid:
  colour: '#5490c2'
  show_daily: true
  show_daily_buy: true
  show_daily_sell: false
  show_nonessential: true
  nonessential_name: Geyser/Stove
  no_grid_colour: red
entities:
  use_timer_248: false
  priority_load_243: false
  day_battery_charge_70: sensor.solarman_daily_battery_charge
  day_battery_discharge_71: sensor.solarman_daily_battery_discharge
  day_load_energy_84: sensor.solarman_daily_load_consumption
  day_grid_import_76: sensor.solarman_daily_energy_bought
  day_grid_export_77: sensor.solarman_daily_energy_sold
  day_pv_energy_108: sensor.solarman_daily_production
  remaining_solar: sensor.forecast_remaining_today
  inverter_voltage_154: sensor.solarman_grid_voltage_l1
  load_frequency_192: sensor.solarman_load_frequency
  inverter_current_164: sensor.solarman_current_l1
  inverter_power_175: sensor.solarman_total_power
  grid_power_169: sensor.solarman_internal_ct_l1_power
  radiator_temp_91: sensor.solarman_ac_temperature
  dc_transformer_temp_90: sensor.solarman_dc_temperature
  pv2_power_187: sensor.solarman_pv2_power
  pv1_power_186: sensor.solarman_pv1_power
  pv3_power_188: sensor.solarman_pv3_power
  pv4_power_189: sensor.solarman_pv4_power
  battery_voltage_183: sensor.solarman_battery_voltage
  battery_current_191: sensor.solarman_battery_current
  battery_soc_184: sensor.solarman_battery_soc
  battery_power_190: sensor.solarman_battery_power
  essential_power: none
  nonessential_power: none
  grid_ct_power_172: sensor.solarman_external_ct_l1_power
  pv1_voltage_109: sensor.solarman_pv1_voltage
  pv1_current_110: sensor.solarman_pv1_current
  pv2_voltage_111: sensor.solarman_pv2_voltage
  pv2_current_112: sensor.solarman_pv2_current
  pv3_voltage_113: sensor.solarman_pv3_voltage
  pv3_current_114: sensor.solarman_pv3_current
  pv4_voltage_115: sensor.solarman_pv4_voltage
  pv4_current_116: sensor.solarman_pv4_current
  grid_connected_status_194: sensor.sunsynkcard_gridstatus
  inverter_status_59: sensor.sunsynkcard_inverterstatus
  aux_power_166: false
Hi

one/two/three/four changed to 1/2/3/4.
autarky is slightly different because the accepted options have strings in it. i.e power/energy/no and because of the type using no is fine.
 
Hi

one/two/three/four changed to 1/2/3/4.
autarky is slightly different because the accepted options have strings in it. i.e power/energy/no and because of the type using no is fine.
Just a thought @Slip if a person choses 2 vs 3/4 for solar, can the panel be moved down a bit, so its not such a big space and ads padding to the top figures?

Not as drastic as this, just a decent seperation between the daily/forecast and the top mppts if < 3 .

1692872030091.png
 
Hi. That will require a bit of coding effort but I will keep in mind for future improvements.
 
For those of you using solarman, I've updated the card to support the native grid connected sensor and the Off-Grid and On-Grid values. If you'd like to test you can download v2.3.0
 
Why would my autarky go haywire at night? During the day it's fine. This started happening after the last updated earlier this week.

1693595364792.png
 
Have you guys discussed Solar Assistant and the latest 2023.8 Home Assistant update?

Specifically the naming of the MQTT entities.

It's now coming through with the device name prefixed to the entity name.

1693596416108.png

I emailed the Solar Assistant developer.

I think they need to remove the device name from the HA discovery topic.

1693596463348.png
 
Why would my autarky go haywire at night? During the day it's fine. This started happening after the last updated earlier this week.

View attachment 1581008
Strange. Please open an issue on Github. Also check that you are using the updated card config. A few things changes from version 2.0.0

You should also check you essential and non-essential sensors. Are you providing these or allowing the card to calculate them?
 
Last edited:
] suddenly I have PV3 and PV4 showing up blank in my card, even though they aren't in my configuration at all.

Any way to purposely hide them again?


SOLUTION

Code:
solar:
  colour: orange
  show_daily: 'yes'
  mppts: 2
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X