wills106 / homeassistant-solax-modbus

SolaX Power Modbus custom_component for Home Assistant (Supports some Ginlong Solis, Growatt, Sofar Solar, TIGO TSI & Qcells Q.Volt Hyb)
315 stars 98 forks source link

Feature: Solis Inverter Time of Use Switch. #405

Closed wawyed closed 1 year ago

wawyed commented 1 year ago

Hi, would it be possible to add the Time of Use Switch to enable/disable discharge/charge from the grid?

Seems like a useful feature to use in automations when you have a fixed schedule setup

wills106 commented 1 year ago

Is that different to "Energy Storage Control Switch"

wawyed commented 1 year ago

How does that switch work? This would just be ON/OFF

alienatedsec commented 1 year ago

@wawyed @wills106 Operating the SolaX integration will differ from operating the inverter screen. Changing one thing in the integration is equivalent to pressing many buttons and setting several other "functions" to get the same thing.

@wawyed if you want to charge or discharge from the grid, you need to set the "Energy Storage Control Switch" to "Timed Charged Discharge", to disable it, you have change it to "Auto Mode". If your times are predefined on the inverter, you dont need anything else. If your times will change according to Octopus Agile or Octopus Flex remember to set those before pressing Update button.

wills106 commented 1 year ago

I really need to create a "Solis Modes of Operation" page for the Wiki

wawyed commented 1 year ago

Thanks for the explanation in that case I think I'll close this one as there's already a way to achieve what I wanted.

Cabocab commented 1 year ago

Grid charging is enabled by bit 5 of the energy storage control switch register. By default, the integration sets the grid charging to on. I was able to set grid charging to off by subtracting 32 from the default dictionary (i.e. for timed use with grid charging turned off, write 3 instead of 35 to the register).