Modbus Force Charge from grid but not PV
I know it's possible to set a Scheduled mode of Force Charge with PV disable but can this be done using Home Assistant and Modbus automation scripts?

Objective is to set the system (H1 hybrid) to do the above whenever the Octopus Agile rate is negative during the day.

i know PV is 'free' but when rates are -ve it means the grid has a surplus of generation so we should take from the grid to help it out.
5kW Solar Panels
H1-3.7-E-G2 Inverter
10.36 kWh Battery
Re: Modbus Force Charge from grid but not PV
Your inverter is only 3.7kW, so not going to make much a difference if you use PV or disable it to your overall house load.

What I find with Agile though, is you struggle to find things to turn on to use a lot of power for a sustained period.
Dishwasher
EV Charger
Washing machine on hot wash
Tumble drier
Oven on with door open

Unless you have an EV charger, it is hard to pull 10kW or more for over an hour, you just run out of things to turn on.
It could just be me though, perhaps other have more luck during Agile's plunge periods.
Re: Modbus Force Charge from grid but not PV
Yes, you're right, it won't make much difference but it all helps and if it can be done with automation then at least I can have my biggest load running only from the grid when I'm away.

My household is multi-generational so there's double of all electrical appliances so I could easily hit 25kW albeit not sustainable for long.

Also programming has been a hobby of mine for 50yrs so building this solar system and controlling it with HA scripts has been an absolute joy (and a bit obsessive probably :D )
5kW Solar Panels
H1-3.7-E-G2 Inverter
10.36 kWh Battery
Re: Modbus Force Charge from grid but not PV
AI suggest register address 11002 for PV power output control so I'll take a look that....
5kW Solar Panels
H1-3.7-E-G2 Inverter
10.36 kWh Battery
Re: Modbus Force Charge from grid but not PV
Well if you have HA, and a lot of smart plugs/devices that can be turned on via this, then sure of course.

Regarding your register: First of all check if you can read in the value, next would be to create in the FoxCloud2.0 App a schedule as shown below with the PV toggle on. Read the register again when the schedule is active. Then enter the schedule, and toggle the PV switch off, and check the register address after saving the schedule.
ExampleWorkMode.png
So hopefully in testing, you will see the register change if AI has got the right one, and then you can create a quick test script to write the 'off' value and see if your PV output drops to zero.

Sorry if teaching you to suck eggs :)
Re: Modbus Force Charge from grid but not PV
Fell as the first hurdle - I can get a schedule to kick in on the cloud app except that it doesn't actually do what the schedule is set for and then when SOC reached target of 100% it didn't revert back to self-use. Instead it started exporting surplus PV to the grid despite Max Export Power being restricted to 100W.
Screenshot_20260909_140838_FoxCloud20.jpg
Screenshot_20260909_141537_FoxCloud20.jpg
Screenshot_20260909_142145_FoxCloud20.jpg
Now I'm not sure if it's the Scheduler or me not configuring it correctly?
5kW Solar Panels
H1-3.7-E-G2 Inverter
10.36 kWh Battery
Re: Modbus Force Charge from grid but not PV
Perhaps it's a firmware bug, the disabled PV charging is ignored?
Re: Modbus Force Charge from grid but not PV
Just found another member who wanted to do the same thing and Will (admin) responded saying PV generation can only be stopped by manually switching off the PV isolators :(

So why is there an option for it in the mode scheduler?
5kW Solar Panels
H1-3.7-E-G2 Inverter
10.36 kWh Battery
Re: Modbus Force Charge from grid but not PV
I don't know why it was added to the App, it could be a feature that does not yet work as intended. So it might need a FW upgrade not yet baked.

The feature we have now, on what to do when the SoC reaches xx% is something that depends on firmware. The red highlighted choice in my image. If you have a FW version too low, that choice doesn't show in the App for you.

A few more months, and it could be a working option?
Post Reply