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

20 hours ago, Ronnie1102 said:

Nope, just allows you to have more control of your system as well.

Sweet Just got upgraded and set my intervals to 60s 👍

Will try to update the flows tomorrow because I think I messed something up just now so just reverted to my pre update backup.

I did saw one of the lines in the SS_Consolid where it showed my sn_data come back as " 12345678: false" so not sure what I missed but was rushing it so will try again when I have more time tomorrow.

 

  • Replies 948
  • Views 130.8k
  • 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

@Gary Waterworth I've tried updating my flows to your latest but seem to be getting the following error:

image.png.a489c730ae9ddb7b769fbca7017091c1.png

Reverting to the previous flows is my current solution.

My gateway is set to 60s so not sure what might be causing this.  I've tried with redoing the config and secrets with the latest of V2.2 and with using the previous config and secrets wich works currently and just updating the flows with the same result.  Repasted the Long life Token as well to cover my bases.

Any idea on why my plant will throw out that error when updating to the new flows?

Edited by -cK-

  • Author
6 hours ago, -cK- said:

@Gary Waterworth I've tried updating my flows to your latest but seem to be getting the following error:

image.png.a489c730ae9ddb7b769fbca7017091c1.png

Reverting to the previous flows is my current solution.

My gateway is set to 60s so not sure what might be causing this.  I've tried with redoing the config and secrets with the latest of V2.2 and with using the previous config and secrets wich works currently and just updating the flows with the same result.  Repasted the Long life Token as well to cover my bases.

Any idea on why my plant will throw out that error when updating to the new flows?

Please power cycle your home assistant device to clear out any info that may be old.

Global context can survive a service restart

Check what this portion of the flows is showing

image.thumb.png.c16864e3b2908fb689b2a85d5577ac31.png

Check what this is in the global context 

image.thumb.png.12d05a6beca85b43a13129d8e92ae624.png

 

Edited by Gary Waterworth

  • Author
On 2024/01/19 at 6:17 AM, Ronnie1102 said:

Yep I had to replace some with 0's the other day again as well.

Been looking into this because of another IOT sensor that is being " difficult"

Developed teh following SQL queries so I can try see exactly what went on

Now I just need to wait for it to happen again

Get list of all Sunsynk id's
--------------------------------

SELECT * FROM "statistics_meta" where statistic_id like "sensor.sunsynk_%"

id    statistic_id                source        unit_of_measurement    has_mean    has_sum    name
173    sensor.sunsynk_pv_total            recorder    kWh    0    1    NULL
175    sensor.sunsynk_battery_etotalchg    recorder    kWh    0    1    NULL
176    sensor.sunsynk_battery_etotaldischg    recorder    kWh    0    1    NULL
177    sensor.sunsynk_grid_total        recorder    kWh    0    1    NULL
179    sensor.sunsynk_load_total        recorder    kWh    0    1    NULL
190    sensor.sunsynk_grid_total_cost_2    recorder    ZAR    0    1    NULL
191    sensor.sunsynk_grid_cost        recorder    ZAR    0    1    NULL


select min,max,mean,state,sum, DATETIME(created_ts,'auto')  from "statistics" where metadata_id = 173 and created_ts < unixepoch('2024-01-01 00:00:00') order by created_ts desc
select min,max,mean,state,sum,created_ts,DATETIME(created_ts,'auto') from "statistics_short_term" where metadata_id = 173 and created_ts < unixepoch('2024-01-01 00:00:00') order by created_ts desc

 

14 hours ago, Gary Waterworth said:

Please power cycle your home assistant device to clear out any info that may be old.

Global context can survive a service restart

Check what this portion of the flows is showing

image.thumb.png.c16864e3b2908fb689b2a85d5577ac31.png

Check what this is in the global context 

image.thumb.png.12d05a6beca85b43a13129d8e92ae624.png

 

I've done a shut down and boot up again after importing the new flows.  This is what that section is returning:

image.thumb.png.e30be53d66484f2a0dba34fb924f0061.png

What I'm noticing is where yours shows a total: 1, mine shows 0 and the info is array[0] and no drop down.

Not sure if this could be related to how my account is setup.  In the Equipment section I need to first search my gateway under the plant name which show my plant name then is shows up and then I can edit it.  Nothing is listed in the Equipment section, I only have access to my settings via My Plants.

image.thumb.png.2f09c306fd6ed9a33d5626165841cca6.png

image.thumb.png.b7cd1a6415b7613869cb4072f1f14849.png

image.thumb.png.70875bab18173de5d2b7d22f567d89b3.png

Edited by -cK-

  • Author

That is teh problem... 

You cannot see your gateways. This may be a permission your installer has not given you 

I will have to put a "override" in the config to ignore this 

Edited by Gary Waterworth

1 hour ago, Gary Waterworth said:

That is teh problem... 

You cannot see your gateways. This may be a permission your installer has not given you 

I will have to put a "override" in the config to ignore this 

Thanks, will appreciate it.  Will go chat with the installer before trying this but I see there is an option to add a gateway and I do have both the sn and key which I can see if I search my gateway now that my account is elevated to Advanced User (was hoping my stuff would get listed under the equipment section automatically but alas no such luck). 

image.thumb.png.fac16203200d59c6206a07952af1c51b.png

  • Author

Ok commited a few changes

sysworkmode - Not functional yet, started adding what is required

energy export - Entity templates added

gateways ( gather and updates )

If 0 gateways found

  • enable gather and update ( but with 6 minute global delay )
  • if force_short_delay set to "true" in config entity then global delay reduced to a minute

Have a look for me as I cant test this login on my side , but should be good

Also added some quality of life and displaying number of inverters/plants and gateways found to node status's

  • Author
7 hours ago, -cK- said:

Thanks, will appreciate it.  Will go chat with the installer before trying this but I see there is an option to add a gateway and I do have both the sn and key which I can see if I search my gateway now that my account is elevated to Advanced User (was hoping my stuff would get listed under the equipment section automatically but alas no such luck). 

image.thumb.png.fac16203200d59c6206a07952af1c51b.png

Dont do this. Your gateway is there , you just cant see it 😕

Check permissions under global context SS_Consolid:

I am interested in what gateway.* ones you have

 

image.thumb.png.7c4e70831fd8d704edf94f2cc7cb0692.png

Edited by Gary Waterworth

  • Author
12 hours ago, -cK- said:

I've done a shut down and boot up again after importing the new flows.  This is what that section is returning:

image.thumb.png.e30be53d66484f2a0dba34fb924f0061.png

What I'm noticing is where yours shows a total: 1, mine shows 0 and the info is array[0] and no drop down.

Not sure if this could be related to how my account is setup.  In the Equipment section I need to first search my gateway under the plant name which show my plant name then is shows up and then I can edit it.  Nothing is listed in the Equipment section, I only have access to my settings via My Plants.

image.thumb.png.2f09c306fd6ed9a33d5626165841cca6.png

image.thumb.png.b7cd1a6415b7613869cb4072f1f14849.png

image.thumb.png.70875bab18173de5d2b7d22f567d89b3.png

Will look into this. i may need to do gateways by plant, but then will neeed extra logic

 

1 hour ago, Gary Waterworth said:

Dont do this. Your gateway is there , you just cant see it 😕

Check permissions under global context SS_Consolid:

I am interested in what gateway.* ones you have

 

image.thumb.png.7c4e70831fd8d704edf94f2cc7cb0692.png

On which version you want this info there is now technically 3 I can do for you or will it be the same across them all:

1) 2 updates back, pre the 60s logic

2) 1 update back. pre override logic (believe I still have a copy of this instance)

3) latest update with override logic

On nr 1 the info looks like this:

image.png.508e874ed7386d1862c37b2ac1a5ba1b.png

If you need it on the updated versions I'll need to do that tonight when I'm home for you.  But if it is going to be the same across the board I see inverter.settings.name is array 1 on yours but mine seems to be on array 3.  I'm guessing this is part of the problem that the arrays don't line up with what is in the flows.

On a side note I've noticed that current is returning null under the usable_load

image.thumb.png.f1d534b46bee837b3f58a1433b713646.png

Shouldn't this be returning the load current that the inverter is giving to the home (so if the power is 432w the current should be around 1.8A if my math is correct), not sure if this has been addressed in you updates and or if this is another "me_bug" as I'm still on the older flows.

Edited by -cK-

  • Author
2 hours ago, -cK- said:

On which version you want this info there is now technically 3 I can do for you or will it be the same across them all:

1) 2 updates back, pre the 60s logic

2) 1 update back. pre override logic (believe I still have a copy of this instance)

3) latest update with override logic

On nr 1 the info looks like this:

image.png.508e874ed7386d1862c37b2ac1a5ba1b.png

If you need it on the updated versions I'll need to do that tonight when I'm home for you.  But if it is going to be the same across the board I see inverter.settings.name is array 1 on yours but mine seems to be on array 3.  I'm guessing this is part of the problem that the arrays don't line up with what is in the flows.

On a side note I've noticed that current is returning null under the usable_load

image.thumb.png.f1d534b46bee837b3f58a1433b713646.png

Shouldn't this be returning the load current that the inverter is giving to the home (so if the power is 432w the current should be around 1.8A if my math is correct), not sure if this has been addressed in you updates and or if this is another "me_bug" as I'm still on the older flows.

Ok I found a logic bug in 2 of my functions

I am busy looking at it , but I need to doa whole of of checking to make sure what I am chaanging doesnt break automation


EDIT Ok , while fixing a bug on my side I can see a bug on Sunsynks side :)

Their payload show 0 current on the load :D

Probably going to have to put in a manual calculation for this.

 

image.png.8fbf5146bee1ae11fa8f5bd93361bf73.png

 

Edited by Gary Waterworth

  • Author
2 hours ago, -cK- said:

On nr 1 the info looks like this:

image.png.508e874ed7386d1862c37b2ac1a5ba1b.png

Thanks this is fine. Still the same over all the versions 

 

You have some interesting permissions I dont have. Cannot see why you cannot list all the gateways ~shrug~

Might try to manually give myself some permissions :D

May just play a bit on the account I share to :D

Edited by Gary Waterworth

2 hours ago, Gary Waterworth said:

EDIT Ok , while fixing a bug on my side I can see a bug on Sunsynks side :)

Their payload show 0 current on the load :D

Probably going to have to put in a manual calculation for this.

 

Okay cool, it's not just me 😁

Yea as an interim workaround I just edited the sensor that needs this in my config to do the calculation instead of trying to pull it from the attribute itself until it is sorted 👍.

{{ (state_attr('sensor.sunsynk_usable_flow', 'load_power') | float / state_attr('sensor.sunsynk_usable_load', 'volt') | float) | round(1) }}

 

@Gary Waterworth Just for info sake as I know you still need to look into addressing the gateway issue of my setup, but I've tried your latest updated flows of this morning with the override option just out of curiosity.

Below is the returns I'm getting on it when adding

force_short_delay: "true"

ListInverters: is now returning "true" again but the flows are still not pulling data for me as I believe this relates to the Gateways issue of my setup as that is still returning on array[0] which is not the inverter.settings.name array which I guess needs to be pulled for things to work correctly.

image.png.a833a2e7ce14ed45b7682e52729c224e.png

  • Author

Need more information tbh. Can I see a screenshot of the flows to see how far they run and any debug errors. The array 0 is expected as you can't list gateways. Did you check the sn and plant if are correct in the secrets file. That screenshot looks good

4 hours ago, Gary Waterworth said:

Need more information tbh. Can I see a screenshot of the flows to see how far they run and any debug errors. The array 0 is expected as you can't list gateways. Did you check the sn and plant if are correct in the secrets file. That screenshot looks good

Sure thing I'll update the flows again tonight, see you've merged some of it who knows 🤞

The SN and Plant ID should be correct as I leave those untouched in the secrets file when updating as it is only the description section that gets amended.

Besides the flows anything else in particular you want to see? Particular debugs/SS Consolidated views perhaps or shall we just start with the basics, flows and my entity states, then we can see what is populating and what is not and move on from there.

  • Author
3 hours ago, -cK- said:

Sure thing I'll update the flows again tonight, see you've merged some of it who knows 🤞

The SN and Plant ID should be correct as I leave those untouched in the secrets file when updating as it is only the description section that gets amended.

Besides the flows anything else in particular you want to see? Particular debugs/SS Consolidated views perhaps or shall we just start with the basics, flows and my entity states, then we can see what is populating and what is not and move on from there.

If we can see how far the flows are going , then I know where to start looking 

also if there are any debug messages after the 1st minute

On 2024/01/23 at 12:06 PM, Gary Waterworth said:

If we can see how far the flows are going , then I know where to start looking 

also if there are any debug messages after the 1st minute

v2.3 seemed to have done the trick for me @Gary Waterworth

image.thumb.png.0a87cc6df68e64a21cfeaa40d8ea2e3b.png

No errors I can see and the sensors are populating with this update so my slipx card is working again (previously everything was just 0 or NaN)

image.thumb.png.0952dfbd995ee0b4428ea798eab27788.png

Commands also getting pushed no problem thus far.

Not sure if it was something you changed when you merged the flows or if it was something I messed up on the previous updates.  Long story short it seems I'm sorted now 😎

Edited by -cK-

  • Author

Yeah , merging the 2 flows removed a problem area with the in/out gates where I saw they sometimes "lost" their config 😕

Also I have seen there is no need for a custom export flow as teh system caters for multi inverter/3 phase quite happily now

3 minutes ago, Gary Waterworth said:

Yeah , merging the 2 flows removed a problem area with the in/out gates where I saw they sometimes "lost" their config 😕

Also I have seen there is no need for a custom export flow as teh system caters for multi inverter/3 phase quite happily now

Will load the new flows and try it out (am using 3 phase)

25 minutes ago, Gary Waterworth said:

Perfect thx. I don't have 3 phase so can't test myself

This is what I can see so far,

I can see the grid's values in SS.Consolid.Plant["x"].Inverter["x"].grid
image.png.fed98ccbe92336b95f50702979b80184.png

 

and output

image.png.d8bbb8c482a0b9d522cdda4ab021d5c7.png

 I could not see any sunsynk  entity.states or attributes that have the above.

On the sunsynk-power-flow-card, the only 3 phase setting I can see is inverter.three_phase: true, 

and this is what is produced
image.png.306daa401e6e2d686bb4d4b79ba10f4f.png

  • Author
7 minutes ago, HowserMD said:

This is what I can see so far,

I can see the grid's values in SS.Consolid.Plant["x"].Inverter["x"].grid
image.png.fed98ccbe92336b95f50702979b80184.png

 

and output

image.png.d8bbb8c482a0b9d522cdda4ab021d5c7.png

 I could not see any sunsynk  entity.states or attributes that have the above.

On the sunsynk-power-flow-card, the only 3 phase setting I can see is inverter.three_phase: true, 

and this is what is produced
image.png.306daa401e6e2d686bb4d4b79ba10f4f.png

Can I get a screenshot of the flows. Want to see what has run

 

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.