Pho3niX90 / solis_modbus

Home Assistant HACS integration for Solis inverters
26 stars 5 forks source link

Add control of the peak-shaving mode #82

Open helestrand opened 6 days ago

helestrand commented 6 days ago

Hi,

First, thank you for your contribution to the Solis Modbus integration in Home Assistant. I really appreciate it.

I have the Solis S6-EH3P15K-H, and I'm missing the ability to change the peak-shaving parameters as well as to enable/disable the peak-shaving mode. Many others besides me would benefit from this feature, and I hope you can implement it.

Below are the inverter control settings as they are implemented in the Solis cloud. peak_shaving_settings

ajan1 commented 2 days ago

Do you have time charge/discharge? And what it looks like?

helestrand commented 2 days ago

Yes, from the set button in my previous post i get this menu: image image And from the view button in my previous post i get this menu: image There are 6 time slots available for the peek-shaving feature and they seem to be different from the slots already in the integration.

ajan1 commented 2 days ago

Ok. then we have same problem. There is new Solis charge&dischage management version 2 on new modbus addresses.

I have tried make own custom version of this repo, but it not yet working 100% and i am not good with gihub.

I found addresses from soliscloud and I can edit these with modbus poll. On/off switch is only multibit? thing in same address. solisv2.json

ajan1 commented 1 day ago

I maybe made fork with support all charge/discharge features https://github.com/ajan1/solis_modbus

But I dont have this "Peak shaving" switch on my Soliscloud. Could you check if you find same style JSON data like me from your browser Network tools when you open this peak shaving tab?

helestrand commented 1 day ago

The result when I go to the peak-shaving tab: peak_shaving_tab.json and when I click the set button from the peak-shaving tab: set_chg and dischg_button.json

ajan1 commented 1 day ago

Thank you. Peak-shaving Switch use address 43110 so it is same switch as any other modes use. Maybe it should check (read address 33132) what is its value when peak shaving is on? Idk, maybe some one else is smarter.

But file have addresses for Peak Shaving, which are not in solis_modbus: 43487: Baseline SOC (%) To set battery SOC level that needs to be maintained when the max usable grid power limit is not reached.

43488: Max.usable Grid Power (W) To set the allowed peak import power limit at the grid connection point for the peaksahving mode

That "chg and dischg" have same addresses as my, so it should works. Weird, you have no SOC% control. Time setting with this is little challenging. It deny any overlapping times.

Pho3niX90 commented 16 hours ago

43110 is already in the current integration. You can have a look at Solis Storage Control Switching Value and the value of your desired settings, to use in integration. The frontend just sets this {240BC91E-19DC-40FB-AC3E-0EEEB3ECD6C9}

Does Solis Overcharge SOC, Solis Overdischarge SOC, Solis Force Charge SOC and Solis Backup SOC not provide what you are looking for?