zenSDK icon indicating copy to clipboard operation
zenSDK copied to clipboard

http://<solarflow2400AC+>/properties/report response JSON properties.acMode values : 127, 251, 255

Open soselamet opened this issue 6 months ago • 3 comments

Hi, Thank you for making such a flexible management API available.

My custom made home automation sometimes reports exceptions when it is trying to parse JSON message provided by "/properties/report" endpoint.

For properties.acMode parameter valid values are documented as 1: Charge and 2: Discharge.

However, the exceptions caught by the automation point to some other values: 127, 251 and 255.

I would like to learn what these values correspond to and why they occur.

Thanks in advance!

soselamet avatar May 19 '26 13:05 soselamet

Unfortunately, I am back with a horrible update. My Zendure solarflow 2400 AC+ became (almost) totally unresponsive to ac mode change, input and output limit value change requests via REST API. API is up and responsive but not the device in terms of operational aspects.

I doubt even though smartMode flag is set to 1, this API still does write to FLASH. Not sure what is going on there. Only thing I can share is that now the acMode is reported as 127 or 255 and the device does not change ac mode or the limits anymore.

For an example, this is the template my automation uses to request on the fly limit updates (every 3 seconds).

{ "sn": "*****", "properties": { "smartMode":1, "outputLimit":{{payload.outputLimit}}, "inputLimit":{{payload.inputLimit}} } }

Could you provide "clear" information about what might be causing this condition?

soselamet avatar May 31 '26 08:05 soselamet

One aspect that might be worth considering is the update frequency of the control loop in relation to the device’s ability to process and apply configuration changes reliably.

In many consumer energy systems, REST API endpoints are not designed for near-continuous updates every few seconds. Even if the API itself remains responsive, there may be internal constraints such as command queuing, state reconciliation cycles, or protection mechanisms against excessive write operations (including persistent storage writes).

In such cases, rapidly repeated changes to parameters like input/output limits or mode switching could potentially lead to the device prioritizing certain states, ignoring intermediate requests, or entering fallback or undefined reporting states.

This might be reflected in unexpected values such as the reported acMode you observed.

It may therefore be useful to review whether the control strategy aligns with the intended operating model of the device (i.e. expected update rates, state persistence behavior, and transition handling), rather than assuming a hardware malfunction.

This is not meant as a definitive explanation, but simply as a perspective that sometimes helps when dealing with systems that combine real-time behavior with API-driven configuration changes.

Just my 2 cents.

maxclaudi-tech avatar Jun 02 '26 08:06 maxclaudi-tech

Many thanks @maxclaudi-tech for sharing your insights. I was spinning around also with many "might be" options and decided to ask for an official clarification as things exceeded my hobby time budget limits.

As there is no official response I decided to evaluate another option (even though it also comes with some cumbersome design gaps) and so far it is doing great! I am no longer investing my time in this REST API option as MQTT performs more reliable and faster in my use cases.

However, I am still looking for a complete set of value range for acMode attribute. May be @dav1dBoy can help us on this?

soselamet avatar Jun 04 '26 15:06 soselamet