However I’m not able to set the charging current. According to the API documentation, setting the charging current should be done using a PATCH request. I don’t see how to do a PATCH request in Homey logic, only GET, POST, PUT and DELETE requests seems to be possible.
I tried the MODBUS option as well, but I didn’t get that working.
is an example of output after the GET request. So I can read that information and get the CurrentPhase1. That’s no problem.
My question was more: how can I change the charging current. According to the API documentation, that should be done with a PATCH request, and that is what I don’t know how to do
I did google but didn’t find an answer, that’s why I started this new topic…
As indicated in my first post, in Homey logic, there is no such thing as PATCH request
So PATCH is another method. I don’t think you can use the Card GET, as it will send a request using the text GET which you cannot replace by the text PATCH. So you will need some card to send a “raw request” allowing this. For example sending an request in a Telnet session allows you this.
Adjust in the above script your local IP address and authorization code (which you obtain from the Peblar local web interface)
(Please note that this defines the maximum current at which the Peblar can charge. If there are other limits that apply, the actual current used might be lower, eg if you use solar charging or if there is a household limit set)
Next to changing the max current, you can also write a script to change number of phases to 1 phase. Those are indeed limited changes you can make to the charger via the API. But you can also read some data from the charger. See the API documentation https://developer.peblar.com/
My understanding is that home assistant is using the same API, so normally whatever is possible with home assistant you should be able to do with homey as well, but you would need to spend some time in creating flows and scripts…