-
I have a simple question. I want to en-/disable the dynamic power limiter via an HTTP request. I read the wiki about the HTTP API but couldn't figure out a working HTTP request that does the job. Can you tell me if it even can be done via HTTP? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
as the WebUI uses the API, it can be done. however, you need to create a request, that imitates the webui "save" button e.g.
note, that the parameters are not complete. you must add all parameters, you want to set. the 6 paremeters i wrote are the bare minimum. if one is missing, the response will be "Values are missing!". all parameters can be found here in a quick test: if you let parameters out, they will be "0". so keep that in mind for your upper Powerlimit, SoC states etc. edit, just checked and played around. in my case it works with
and
to get your payload easily, you can set it up in webui, query it with
and just change "true" and "false" accordingly |
Beta Was this translation helpful? Give feedback.
as the WebUI uses the API, it can be done. however, you need to create a request, that imitates the webui "save" button
e.g.
note, that the parameters are not complete. you must add all parameters, you want to set. the 6 paremeters i wrote are the bare minimum. if one is missing, the response will be "Values are missing!".
all parameters can be found here
https://github.com/helgeerbe/OpenDTU-OnBattery/blob/4ee49a6ecb90a800e57db7554a88b53cb0bf55af/src/W…