Hi folks
I’m new here and need some help.
I want to control my Wallbox (Hardy Barth) by Homeassistant through curl / API commands.
Quite a few things are working, but I got stuck with sending numeric value from an input number helper as setting to my Wallbox.
In my configuration.yaml I inserted:
´shell_command:
wallbox_ampere_eco: /scripts/manual_mode_ampere_an_wb´
(indentation somehow not shown here)
In this file “manual_mode_ampere_an_wb” I placed the curl command to be sent to the Wallbox:
´curl -X POST -H ‘Content-Type: application/x-www-form-urlencoded’ -H ‘Accept: application/json’ -d ‘manualmodeamp= 14’ http://192.168.1.4/api/v1/chargecontrols/01/mode/manual/ampere´
The “14” in the data part I want to replace later by a value_template and the shell_command service will be used in an automation.
The service is showing up as “wallbox_ampere_eco” under developement tools / services and can be executed.
In the log I get error 127 and there is no change in the setting of the wallbox.
The curl command is working fine in the terminal.