gdwaterworth / Home-Assistant---E-Linter-Logger---Sunsynk

32 stars 9 forks source link

Basic write to Sunsynk for Timer Mode On/Off #11

Closed CraigBoswell closed 8 months ago

CraigBoswell commented 1 year ago

Hi there, I am ultimately wanting to do more sophisticated writes to the Sunsynk schedule, but initially keen to just change System Mode from use Timer to Manual (full batt) in the case of pending load-shedding and low battery. Is it possible with your current integration to do that, or is it part of the dev you are working on? If that component could work it would be a great step forward in the load-shedding vs battery SOC management. Much appreciate your work, the data is flowing very reliably.

gdwaterworth commented 1 year ago

There is a portion under the automation flows that effectively deals with that. BUT I NEED TO REITTERATE THAT THESE ARE NOT NEW GUY FRIENDLY at the moment. The problem is that there is very little information ( As in Zero ) from api documention I have.

Basically I have started documenting in this wiki page all the variables that are available. There are more , just have not had time to document yet. I still need to change some setting in my app then decode the https traffic generated to see what variables are changed:

https://github.com/gdwaterworth/Home-Assistant---E-Linter-Logger---Sunsynk/wiki/E-Linter-Information#variables-available-for-update

Basically to set a settings you need to do a http(s) web PUTT with a crafted json payload

{
sn: xxxxx,
parameter1:data1,
parameter2:data2
etc
}

The corrected headers ( with bearer code ) and url needed are configured allready in global variables

msg.headers = global.get("SS.Header.Bearer");
msg.url = global.get("SS.url.i1.set");

This is very much work in progress atm. I have a rough framework allready running, but it is not user friendly at all and only exists in coding

Heindelange commented 1 year ago

Thank you. This helped me schedule my work mode.

I wanted to set my work mode to to export to home (incl non essentials) when there is sun, but didn't want my geyser to drain my battery every evening, so changed it back to Limit to load in the afternoon.

I used a time picker card which seems to work nicely so I don't need to hard-code my time in node-red.

These were the parameters required: sysWorkMode: 1 - Zero Export - Limit to load sysWorkMode: 2 - Limit to Home (incl non-essentials)

gdwaterworth commented 8 months ago

Some basic settings update included in v2

Kabz777 commented 8 months ago

Some basic settings update included in v2

Noob here, is there a seamless way to change from V1 to V2 that will keep the sensors, history, etc.?

gdwaterworth commented 8 months ago

There are only a few entities that have statistics enabled They reference another entity and because we have not changed those stats sensors they should retain their data. Make a backup of your system before you do the changes.

The rest are only 7 days (?) depending on settings so I don't factor those into my thinking.

Just check you have no others.

Misc Sensors for Energy

From: Kabz777 @.> Sent: Tuesday, December 12, 2023 8:14 PM To: gdwaterworth/Home-Assistant---E-Linter-Logger---Sunsynk @.> Cc: gdwaterworth @.>; State change @.> Subject: Re: [gdwaterworth/Home-Assistant---E-Linter-Logger---Sunsynk] Basic write to Sunsynk for Timer Mode On/Off (Issue #11)

Some basic settings update included in v2

Noob here, is there seamless way to change from. V1 to V2 that will keep the sensors, history, etc.?

- Reply to this email directly, view it on GitHubhttps://github.com/gdwaterworth/Home-Assistant---E-Linter-Logger---Sunsynk/issues/11#issuecomment-1852565480, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUYVNI2R6R2SWOXTTP6NTLLYJCNFRAVCNFSM6AAAAAAWQ5SHTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSGU3DKNBYGA. You are receiving this because you modified the open/close state.Message ID: @.**@.>>

Kabz777 commented 8 months ago

Ah makes sense, thanks! And thanks for all the efforts!