Problem: Webasto Unite only has one Modbus input option: Webasto_Unite_Charging_Current
. This is valid for 1-phase and 3-phase operation. The 1/3-phase operation can only be changed from the Wallbox Web UI. This only allows two different power outputs for the Wallbox:
- 1-phase: Power ranging from 1.38 to 7.36 kW
- 3-phase: Power ranging from 4.14 to 22 kW
I want to charge as much solar power as possible into the car, so I need the whole power range from 1.38 up to 22 kW. I want to be able to change 1/3-phase operation from HA without having to visit the Wallbox Web UI.
*I have only tested this on the Webasto Unite Wallbox, not with Vestel/Ampure.
Solution: Reverse engineering how the changes in the Web UI take place, I was able to create shell commands to execute the changes from HA.
First, you need to create these shell commands in configuration.yaml
:
shell_command:
schnellladen_session: curl --silent --cookie "PHPSESSID=295a3717ec16ac5b8bebf3e21ca7f311" --data "username=USERNAME&pass=PASSWORD&button_login=LOG+IN" http://192.168.2.102/
schnellladen_ein: curl --silent --cookie "PHPSESSID=295a3717ec16ac5b8bebf3e21ca7f311" --data "currentLimiterPhaseSelection=1¤tLimiterValue=16&button_current_limiter_settings=Daten+absenden" http://192.168.2.102/index_main.php >/dev/null
schnellladen_aus: curl --silent --cookie "PHPSESSID=295a3717ec16ac5b8bebf3e21ca7f311" --data "currentLimiterPhaseSelection=0¤tLimiterValue=16&button_current_limiter_settings=Daten+absenden" http://192.168.2.102/index_main.php >/dev/null
Replace
USERNAME
with your usernamePASSWORD
with your password192.168.2.102
with the local IP address of your Wallbox.
Both USERNAME
and PASSWORD
need to be URL encoded if they contain special characters, which you can do here: https://www.urlencoder.io/
The PHPSESSID
can be any random string as far as I know, but it has to be the same for all shell commands. You can leave it as it is.
Now you can create your automations from this. For starters, I used a simple switch input_boolean.schnellladen
to change from 1/3-phase operation.
Switch to 1-phase:
alias: Webasto Schnellladen Aus
description: ""
triggers:
- trigger: state
entity_id:
- input_boolean.schnellladen
from: "on"
to: "off"
conditions: []
actions:
- action: shell_command.schnellladen_session
data: {}
- action: shell_command.schnellladen_aus
data: {}
mode: single
Switch to 3-phase:
alias: Webasto Schnellladen Ein
description: ""
triggers:
- trigger: state
entity_id:
- input_boolean.schnellladen
from: "off"
to: "on"
conditions: []
actions:
- action: shell_command.schnellladen_session
data: {}
- action: shell_command.schnellladen_ein
data: {}
mode: single
To check if this works, you can refresh the Wallbox Web UI and see if the 1/3-phase operation has changed.
Have fun with your own automations!