You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{ "sch_week": "sch_week: httpd_query_key_value() failed with ESP_ERR_HTTPD_RESULT_TRUNC" }
The solution is to remove the second values from the ranges arrays begin & end objects in order to be able to update the schedule object on the Wallbox...
So your request must look like this: /api/set?sch_week={"control":0,"ranges":[{"begin":{"hour":0,"minute":0},"end":{"hour":0,"minute":0}},{"begin":{"hour":0,"minute":0},"end":{"hour":0,"minute":0}}]}
I wasted couple of hours with this - so hopefully the next dev who have issues with this, will find this useful.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When you request a schedule object from the API
/api/status?filter=sch_weekyou get something like:{ "sch_week":{ "control":0, "ranges":[ { "begin":{ "hour":0, "minute":0, "second":0 }, "end":{ "hour":0, "minute":0, "second":0 } }, { "begin":{ "hour":0, "minute":0, "second":0 }, "end":{ "hour":0, "minute":0, "second":0 } } ] } }normally I would expect, that I would be able to send this object back to the API via
/api/set?sch_week={"control":0,"ranges":[{"begin":{"hour":0,"minute":0,"second":0},"end":{"hour":0,"minute":0,"second":0}},{"begin":{"hour":0,"minute":0,"second":0},"end":{"hour":0,"minute":0,"second":0}}]}But surprise! This will cause an error:
The solution is to remove the
secondvalues from therangesarraysbegin&endobjects in order to be able to update the schedule object on the Wallbox...So your request must look like this:
/api/set?sch_week={"control":0,"ranges":[{"begin":{"hour":0,"minute":0},"end":{"hour":0,"minute":0}},{"begin":{"hour":0,"minute":0},"end":{"hour":0,"minute":0}}]}I wasted couple of hours with this - so hopefully the next dev who have issues with this, will find this useful.
Beta Was this translation helpful? Give feedback.
All reactions