alpriest/EnergyStats-Android

Scheduled operations in Fox cloud

Opened this issue · 1 comments

I've done a first pass of adding the API calls to configure scheduled changes of work mode, min soc and force charging into my API library today.

The basics are there and working to get_schedule() and set_schedule() - but the calls depend on the inverter firmware - there are flags for whether schedules are supported / enabled. By the look of it, you can add as many schedule periods as you want, in the form of a list of settings. Note that Content-Type in the header is required or set_schedule() will fail with a server exception.

Work modes include SelfUse, Feedin, Backup and ForceCharge.

You might want to check for schedules in EnergyStats as the ability to change min soc, change work modes and set charge times are locked out when schedules are enabled and calls to change settings return errno 44096.

https://github.com/TonyM1958/FoxESS-Cloud