Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SunSynk Logger Integration into Home Assistant

Featured Replies

Have you followed the setup guides and do you see the data in the developer tools?

Also you should not be adding energy consuming devices to the Electicity Grid consumption unless they are outside of the inverter consumption. There is a section for individual devices in the energy dashboard.

Gary previously indicated that you should be using the Total values for energy dashboard and not daily.

 

  • Replies 948
  • Views 135.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • randomfool
    randomfool

    I am making good progress on converting slip06x excellent dashboard to work with Gary's brilliant work on gathering the data from the latest Sunsynk inverters remotely. Will publish the dashboard

  • @Gary Waterworth   Did a quick YouTube video on how to install your software and to get the data into HASS, no cards or anything so very basic.  Please let me know what you guys think of my first

  • randomfool
    randomfool

    Ok here goes; caveats to begin with - I am no HA expert, in fact I only discovered HA a few weeks ago through Gary's post and his subsequent links to slip06x dashboard, so my ability to provide "suppo

Posted Images

4 hours ago, WazzaCPT said:

Have you followed the setup guides and do you see the data in the developer tools?

Also you should not be adding energy consuming devices to the Electicity Grid consumption unless they are outside of the inverter consumption. There is a section for individual devices in the energy dashboard.

Gary previously indicated that you should be using the Total values for energy dashboard and not daily.

 

I can see the data from the inverter, am trying to find out what should go into the Energy Settings/Configuration. Below is the usage of the data.

image.png.9e8d504492fca70091e7eb6702f7e3f5.png

34 minutes ago, HowserMD said:

I can see the data from the inverter, am trying to find out what should go into the Energy Settings/Configuration. Below is the usage of the data.

image.png.9e8d504492fca70091e7eb6702f7e3f5.png

I believe you have not got the setup of everything for Slipx card loaded correctly. You need to check you essential versus load details. Have a look at the template options for the Slipx card on Gary's repo. He has number coordinated this fairl well to align with Slipx data inputs. But using some common sense also goes a long way.

Here is an example of my one slipx card:

type: custom:sunsynk-power-flow-card
cardstyle: full
show_solar: true
inverter:
  modern: false
  three_phase: true
battery:
  energy: 40960
  shutdown_soc: 20
  show_daily: true
solar:
  show_daily: true
  mppts: 2
  pv1_name: Sunsynk
  pv2_name: SolarEdge
load:
  show_daily: true
grid:
  show_daily_buy: true
  show_daily_sell: true
  show_nonessential: false
entities:
  use_timer_248: none
  priority_load_243: none
  inverter_voltage_154: sensor.sunsynk_output_voltage_154
  load_frequency_192: sensor.sunsynk_output_frequency_192
  inverter_current_164: sensor.sunsynk_output_current_164
  inverter_power_175: sensor.sunsynk_output_total_power_175
  grid_connected_status_194: sensor.sunsynk_grid_online_194
  inverter_status_59: sensor.sunsynk_inverter_status_59
  day_battery_charge_70: sensor.sunsynk_battery_daily_charge_70
  day_battery_discharge_71: sensor.sunsynk_battery_daily_discharge_71
  battery_voltage_183: sensor.sunsynk_battery_voltage_183
  battery_soc_184: sensor.sunsynk_battery_soc_184
  battery_power_190: sensor.sunsynk_battery_power_190
  battery_current_191: sensor.sunsynk_battery_current_191
  grid_power_169: sensor.sunsynk_grid_power_169
  day_grid_import_76: sensor.sunsynk_daily_grid_buy_76
  day_grid_export_77: sensor.sunsynk_daily_grid_sell_77
  grid_ct_power_172: sensor.sunsynk_grid_power_172
  day_load_energy_84: sensor.sunsynk_daily_load_84
  essential_power: sensor.sunsynk_load_power
  nonessential_power: none
  aux_power_166: none
  day_pv_energy_108: sensor.sunsynk_daily_pv_108
  pv1_power_186: sensor.sunsynk_pv1_186
  pv2_power_187: sensor.solaredge_current_power
  pv1_voltage_109: none
  pv1_current_110: none
  pv2_voltage_111: none
  pv2_current_112: none

Considering that your energy values daily grid buy, daily solar and daily load have no units, I would assume that you have made a mistake somewhere as well.

For the Energy Dashboard:

Electricity Grid:

Grid Consumption: sensor.sunsynk_grid_total

You can also add any energy meters of devices installed before the CT clamps of the Sunsynk inverter to the Grid Consumption. Move devices with energy monitoring that are installed after the CT clamps for the inverter to the "Individual Devices" section.

Grid Export: sensor.sunsynk_grid_total_export

Solar Panels:

Solar Production: sensor.sunsynk_pv_total

Home Battery Storage

Battery Charge: sensor.sunsynk_battery_etotalchg
Battery Discharge: sensor.sunsynk_battery_etotaldischg

 

The above is based on whether you are using the templates as Gary has them on his GitHub repo.

10 minutes ago, WazzaCPT said:

I believe you have not got the setup of everything for Slipx card loaded correctly. You need to check you essential versus load details. Have a look at the template options for the Slipx card on Gary's repo. He has number coordinated this fairl well to align with Slipx data inputs. But using some common sense also goes a long way.

Here is an example of my one slipx card:

type: custom:sunsynk-power-flow-card
cardstyle: full
show_solar: true
inverter:
  modern: false
  three_phase: true
battery:
  energy: 40960
  shutdown_soc: 20
  show_daily: true
solar:
  show_daily: true
  mppts: 2
  pv1_name: Sunsynk
  pv2_name: SolarEdge
load:
  show_daily: true
grid:
  show_daily_buy: true
  show_daily_sell: true
  show_nonessential: false
entities:
  use_timer_248: none
  priority_load_243: none
  inverter_voltage_154: sensor.sunsynk_output_voltage_154
  load_frequency_192: sensor.sunsynk_output_frequency_192
  inverter_current_164: sensor.sunsynk_output_current_164
  inverter_power_175: sensor.sunsynk_output_total_power_175
  grid_connected_status_194: sensor.sunsynk_grid_online_194
  inverter_status_59: sensor.sunsynk_inverter_status_59
  day_battery_charge_70: sensor.sunsynk_battery_daily_charge_70
  day_battery_discharge_71: sensor.sunsynk_battery_daily_discharge_71
  battery_voltage_183: sensor.sunsynk_battery_voltage_183
  battery_soc_184: sensor.sunsynk_battery_soc_184
  battery_power_190: sensor.sunsynk_battery_power_190
  battery_current_191: sensor.sunsynk_battery_current_191
  grid_power_169: sensor.sunsynk_grid_power_169
  day_grid_import_76: sensor.sunsynk_daily_grid_buy_76
  day_grid_export_77: sensor.sunsynk_daily_grid_sell_77
  grid_ct_power_172: sensor.sunsynk_grid_power_172
  day_load_energy_84: sensor.sunsynk_daily_load_84
  essential_power: sensor.sunsynk_load_power
  nonessential_power: none
  aux_power_166: none
  day_pv_energy_108: sensor.sunsynk_daily_pv_108
  pv1_power_186: sensor.sunsynk_pv1_186
  pv2_power_187: sensor.solaredge_current_power
  pv1_voltage_109: none
  pv1_current_110: none
  pv2_voltage_111: none
  pv2_current_112: none

Considering that your energy values daily grid buy, daily solar and daily load have no units, I would assume that you have made a mistake somewhere as well.

For the Energy Dashboard:

Electricity Grid:

Grid Consumption: sensor.sunsynk_grid_total

You can also add any energy meters of devices installed before the CT clamps of the Sunsynk inverter to the Grid Consumption. Move devices with energy monitoring that are installed after the CT clamps for the inverter to the "Individual Devices" section.

Grid Export: sensor.sunsynk_grid_total_export

Solar Panels:

Solar Production: sensor.sunsynk_pv_total

Home Battery Storage

Battery Charge: sensor.sunsynk_battery_etotalchg
Battery Discharge: sensor.sunsynk_battery_etotaldischg

 

The above is based on whether you are using the templates as Gary has them on his GitHub repo.

as far as the current repository, grid sell and buy do not have units.
image.png.63d14f00f22126cc853200ca5e9ef78a.png
 

Let me know where I went wrong with the above.

@HowserMD you need to add a unit of measurement or setup your own daily energy meter within HA using the total energy sensors.

  - sensor:
      - name: "Sunsynk Battery Daily Charge 70"
        state: >
          {{state_attr('sensor.sunsynk_battery', 'etodayChg')|float(0)|round(1)}}
        unit_of_measurement: kWh
      - name: "Sunsynk Battery Daily Discharge 71"
        state: >
          {{state_attr('sensor.sunsynk_battery', 'etodayDischg')|float(0)|round(1)}}
        unit_of_measurement: kWh

 

14 hours ago, slipx said:

@HowserMD you need to add a unit of measurement or setup your own daily energy meter within HA using the total energy sensors.

  - sensor:
      - name: "Sunsynk Battery Daily Charge 70"
        state: >
          {{state_attr('sensor.sunsynk_battery', 'etodayChg')|float(0)|round(1)}}
        unit_of_measurement: kWh
      - name: "Sunsynk Battery Daily Discharge 71"
        state: >
          {{state_attr('sensor.sunsynk_battery', 'etodayDischg')|float(0)|round(1)}}
        unit_of_measurement: kWh

 

I have added the units, thanks @slipx

  • 1 month later...

@slipx at one point you had a map-out of the card showing the Modbus Register numbers on the card itself.  Do you still have it or an updated one, can't seem to find it here or on github?

Hello all, 

Marginally off topic but also on topic.

Does anyone here know of a wifi enabled meter that's approved by CoCT? I'm wanting to set up a prompt and be able to load and track units via these home assistant widgets without having to go up to the box because it's in an awkward location and doesn't have a backlight in the dark. I've been tracking usage via home assistant and this sunsynk hass app but it's such a pain to go to the meter and enter in the entire 10digit string hopefully correct when i could just buy and copy paste into hass...

On 2024/06/06 at 3:41 PM, SteveRCT said:

Hello all, 

Marginally off topic but also on topic.

Does anyone here know of a wifi enabled meter that's approved by CoCT? I'm wanting to set up a prompt and be able to load and track units via these home assistant widgets without having to go up to the box because it's in an awkward location and doesn't have a backlight in the dark. I've been tracking usage via home assistant and this sunsynk hass app but it's such a pain to go to the meter and enter in the entire 10digit string hopefully correct when i could just buy and copy paste into hass...

I would also be interested to know this.

From what I know there is nothing currently that provides any type of connected system that works on the CoCT.

The best would to move over to the new affordable post paid meter. Those meters typically have a data output which may be able to link to HA.

  • 4 weeks later...

Hi All

have been plugging away at getting this deployed for a couple of days, and lost as to where I’m going wrong.

followed v2.4 instructions but still getting the entities listing as unavailable in HA.

logger update time is set to 60s, long life token sorted.

any pointers would be welcome!

 

thanks

 

ben

Hi All

have been plugging away at getting this deployed for a couple of days, and lost as to where I’m going wrong.

followed v2.4 instructions but still getting the entities listing as unavailable in HA.

logger update time is set to 60s, long life token sorted.

any pointers would be welcome!

 

thanks

 

ben

  • Author
13 hours ago, Bensalt said:

Hi All

have been plugging away at getting this deployed for a couple of days, and lost as to where I’m going wrong.

followed v2.4 instructions but still getting the entities listing as unavailable in HA.

logger update time is set to 60s, long life token sorted.

any pointers would be welcome!

 

thanks

 

ben

Show screenshots of teh nodered flows please

  • Author
45 minutes ago, Bcsalt said:

 

 

It is moaning about the "total battery charge" figure being returned 

This a VERY new install ? 

if (parseFloat(do_value__consolid(global.get("SS_Consolid.Plant"), "battery.etotalChg")) === 0) { node.status("Invalid battery charge total Value Received"); global.set("SS_Export_Data.inverter.status", 0); return null; }

Edited by Gary Waterworth

Install as of about 5 days ago so yes!

there is no battery connected to the system (yet…), and that is set correctly in the Sunsynk inverter settings

  • Author
11 minutes ago, Bcsalt said:

Install as of about 5 days ago so yes!

there is no battery connected to the system (yet…), and that is set correctly in the Sunsynk inverter settings

That is why it is not working. Assumes you have a Env with Inverter + Battery 

Can make a change at some point to cater for it, just have a heavy workload atm 

This is one of many checks put in to catch when Synsynk updates with "bad" data

Edited by Gary Waterworth

  • 1 month later...

I have 3 parallel sunsynk inverters each with 2 MPPT's

It pulls in the PV1 and PV2 of the master, it also pulls in the total (which includes the other two inverters luckily)

Can I modify the code-red config to somehow poll the other 2 inverters (it can see them in the list) and just pull in the PV1 and PV2 of each of those, so I can monitor them? I can obviously work out totals etc manually.

1 hour ago, Inigo Montoya said:

I have 3 parallel sunsynk inverters each with 2 MPPT's

It pulls in the PV1 and PV2 of the master, it also pulls in the total (which includes the other two inverters luckily)

Can I modify the code-red config to somehow poll the other 2 inverters (it can see them in the list) and just pull in the PV1 and PV2 of each of those, so I can monitor them? I can obviously work out totals etc manually.

Hello Inigo,

The config and node-red already support getting the data of each PV array on each inverter on the system.

If you have a look at the Usable PV entry you should see PV1 through to PV3 based on how many inverters you have data polling from.

 

image.png.e6836c694af466ba9a6182a4fcd2b970.png

So, if you see 1 through to 6 then all three inverters are been read correctly. 1 + 2 would be Inverter1, 3 + 4 would be Inverter2 and 5 + 6 would be inverter3.

From there all you need to do is adjust you template sensors by adding the additional sensors for the rest of the MPPT channels.

  • Author
1 hour ago, WazzaCPT said:

Hello Inigo,

The config and node-red already support getting the data of each PV array on each inverter on the system.

If you have a look at the Usable PV entry you should see PV1 through to PV3 based on how many inverters you have data polling from.

 

image.png.e6836c694af466ba9a6182a4fcd2b970.png

So, if you see 1 through to 6 then all three inverters are been read correctly. 1 + 2 would be Inverter1, 3 + 4 would be Inverter2 and 5 + 6 would be inverter3.

From there all you need to do is adjust you template sensors by adding the additional sensors for the rest of the MPPT channels.

Not completely correct 

The values above depend on how the inverters are seen. 

All data is gathered from all inverters , but the totals above are dictated by the logic in image.png.b529f9f76e2ec61b3e5668a0cbe0ca5c.png

1_? to 4_? are the MPPT strings seen and should be a total of the same number mppt string on each of the inverters

   image.thumb.png.3d1e13b1caf10ea62233fc7b3f4a5c6b.png
 
I am assuming this is a 3phase system 
 
You can happily modify the export function to total anyway you wish and add in extra fields that are exported 
Unfortunately with all teh variations of systems out there I cannot support individual systems 
 
The raw data which should allready be gathered for all inverters is available in the global context data area
 
image.png.3f51cfd9d3c15b2172262ae6642c7496.png
 

 

 

On 2024/08/07 at 9:42 AM, WazzaCPT said:

Hello Inigo,

The config and node-red already support getting the data of each PV array on each inverter on the system.

If you have a look at the Usable PV entry you should see PV1 through to PV3 based on how many inverters you have data polling from.

 

image.png.e6836c694af466ba9a6182a4fcd2b970.png

So, if you see 1 through to 6 then all three inverters are been read correctly. 1 + 2 would be Inverter1, 3 + 4 would be Inverter2 and 5 + 6 would be inverter3.

From there all you need to do is adjust you template sensors by adding the additional sensors for the rest of the MPPT channels.

The usable_pv entry is very simular to yours, 1-4 only.   1 and 2 showing the correct values from master mppt1 and mppt2.

 

 

 

1_power: 498 1_current: 2 1_volt: 258.2 2_power: 625 2_current: 2.1 2_volt: 339.2 3_power: 0 3_current: 0 3_volt: 0 4_power: 0 4_current: 0 4_volt: 0 power: 1123 current: 4.1 etotal: 493.9 etoday: 4

On 2024/08/07 at 10:58 AM, Gary Waterworth said:

Not completely correct 

The values above depend on how the inverters are seen. 

All data is gathered from all inverters , but the totals above are dictated by the logic in image.png.b529f9f76e2ec61b3e5668a0cbe0ca5c.png

1_? to 4_? are the MPPT strings seen and should be a total of the same number mppt string on each of the inverters

   image.thumb.png.3d1e13b1caf10ea62233fc7b3f4a5c6b.png
 
I am assuming this is a 3phase system 
 
You can happily modify the export function to total anyway you wish and add in extra fields that are exported 
Unfortunately with all teh variations of systems out there I cannot support individual systems 
 
The raw data which should allready be gathered for all inverters is available in the global context data area
 
image.png.3f51cfd9d3c15b2172262ae6642c7496.png
 

 

 

I think this is where the issue is coming from.

 

It's not a 3 phase system, its 3 inverters on a single phase.

 

In the SS_Consolid it has the listplant correct and it has the listinverters showing all 3.

 

But I cannot for the life of me find the PV data from the slave inverters. Which in turn is obviously not shown elsewhere.

 

Hi,

Is it possible to connect to the mag-pie dongle directly and get data from (and adjust parameters on) the Sunsynk inverters locally like some do with the Solarman dongles on Deye inverteres?

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.