Scheduler V1 issue setting ForceCharge / ForceDischarge modes
I am attempting to set schedules on my inverters programatically and have hit an issue which seems to be affecting the OpenAPI endpoint, but also appears to be affecting the 2.0 app (Android - dont have an Apple device to check with)

I am able to retrieve the current schedule, and had one slot in ForceDischarge mode.

I was then able to reset the schdule to SelfUse for the whole day.

Upon attempting to set it back to the original schedule returned by the initial API call I get a 44098 Write Failed response.

I tried all the various WorkMode options as presented in properties.workMode.enumList. SelfUse and Feedin work fine, but ForceCharge and ForceDischarge return the same 44098 error.

I tried to set the value back to ForceCharge in the mobile app and got exactly the same 44098 error!

Feels like something broken on the backend - anyone else seeing this or is it just me?

For reference, i am POST querying /op/v1/device/scheduler/get to get the schedule. When I try to set the schedule, I disable the scheduler with a POST to /op/v1/device/scheduler/set/flag, set the schedule wth a POST to /op/v1/device/scheduler/enable, and then re-enable the scheduler

The POST body isI am sending is:

Code: Select all

{
  "deviceSN": "xxxxxxxx",
  "groups": [
  {
    "startHour": 0,
    "startMinute": 0,
    "endHour": 15,
    "endMinute": 59,
    "enable": 1,
    "workMode": "SelfUse",
    "fdPwr": 0,
    "fdSoc": 10,
    "minSocOnGrid": 10,
  },
  {
    "startHour": 16,
    "startMinute": 0,
    "endHour": 18,
    "endMinute": 59,
    "enable": 1,
    "workMode": "ForceDischarge",
    "fdPwr": 3000,
    "fdSoc": 50,
    "minSocOnGrid": 10,
  },
  {
    "startHour": 19,
    "startMinute": 0,
    "endHour": 23,
    "endMinute": 59,
    "enable": 1,
    "workMode": "SelfUse",
    "fdPwr": 0,
    "fdSoc": 10,
    "minSocOnGrid": 10,
  }
}
Re: Scheduler V1 issue setting ForceCharge / ForceDischarge modes
Interestingly, within minutes of posting the response has changed to:

40257 Parameters do not meet expectations. Please reenter

Potentially some work in the background causing some trouble :lol:
Re: Scheduler V1 issue setting ForceCharge / ForceDischarge modes
Sounds like the problem you get after writing schedules using v0 where the inverter supports max SoC. This corrupts the Fox cloud back end data.

To fix this: wait 3 hours after writing an incorrect schedule. Write a simple schedule with 8 time segments all with different times, just self use.

After this works, only use v1 Mode Scheduler API.
H1-6.0-E hybrid inverter
6 x HV2600 v2 batteries
16 x JA Solar 405w panels
7 x Tigo TS4-A-O optimisers
Re: Scheduler V1 issue setting ForceCharge / ForceDischarge modes
Oh, now thats interesting! i did initially mistakenly use the v0 api so that would definitely explain the problem.

Its been a bit more than 3 hours and even the app still cant update the schedules, but I havent tried the 8x valid self-use schedules - i'll give that a try and see if it helps
Re: Scheduler V1 issue setting ForceCharge / ForceDischarge modes
Just for compelteness I can confirm Tony Mathews is indeed correct!

All working now, Thanks
Post Reply