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

Basic write to Sunsynk for Timer Mode On/Off

Closed this issue · 6 comments

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.

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

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)

Some basic settings update included in v2

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.?

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