InfernoEmbedded / PowerScraper

A scraper for power devices to feed data to OpenEnergyMonitor
GNU General Public License v3.0
35 stars 17 forks source link

Please Explain the Grid Charge Process #11

Closed wills106 closed 4 years ago

wills106 commented 4 years ago

Hi,

I am having trouble understand the process to allow battery charging from the grid. I would appreciate if you could explain the process required to allow battery charging from the grid.

I thought I read it from SolaxModbus.py & SolaxBatteryControl.py that the following sequence needs to be done.

Input installer password write_register(0x00, 2014)

Enable Remote write_register(0x1F, 2)

Wake Inverter if asleep write_register(0x90, 1)

Enable Grid Service write_register(0x92, 1)

Set charge power ie 2000w write_register(0x51, 2000)

All that does is divert the Solar power into the battery instead of powering the house, as at the time of writing I am only generating 200w so nothing is being exported or put into the battery as the house load is higher than 200w.

I have also tried adding the following after enable remote and I also tried it after charge power (0x51)

Output Power write_register(0x52, 5000)

I have managed to implement the rest of the control in Home Assistant. https://github.com/wills106/homeassistant-config/blob/master/packages/solax.yaml

wills106 commented 4 years ago

It appears that the X1 Hybrid Gen 3 uses a different method to control battery and grid charging. The process is documented https://github.com/wills106/homeassistant-config/blob/master/packages/solax_hybrid_g3.yaml