Ich habe die Box in meinen Home Assistant eingebunden, funktioniert soweit ganz gut. Hier meine Konfiguration:
config/configuration.yaml:
binary_sensor:
- platform: mqtt
name: "Wallbox Ladekabel verbunden"
state_topic: "warp/SLq/evse/state"
device_class: plug
json_attributes_template: '{{ value_json }}'
value_template: '{{ value_json.vehicle_state in [1, 2, 3] }}'
payload_on: 'True'
payload_off: 'False'
- platform: mqtt
name: "Wallbox Fehler"
state_topic: "warp/SLq/evse/state"
device_class: problem
json_attributes_template: '{{ value_json }}'
value_template: '{{ value_json.vehicle_state in [3] }}'
payload_on: 'True'
payload_off: 'False'
- platform: mqtt
name: "Wallbox verfügbar"
state_topic: "warp/SLq/evse/state"
device_class: connectivity
json_attributes_template: '{{ value_json }}'
value_template: '{{ value_json.uptime > 0 }}'
expire_after: 30
payload_on: 'True'
payload_off: 'False'
- platform: mqtt
name: "Wallbox Ladevorgang"
state_topic: "warp/SLq/evse/state"
device_class: battery_charging
json_attributes_template: '{{ value_json }}'
value_template: '{{ value_json.vehicle_state in [2] }}'
payload_on: 'True'
payload_off: 'False'
sensor:
- platform: mqtt
name: "Wallbox Leistung"
state_topic: "warp/SLq/meter/state"
value_template: "{{ value_json.power }}"
device_class: power
unit_of_measurement: "W"
- platform: mqtt
name: "Wallbox Zählerstand"
state_topic: "warp/SLq/meter/state"
value_template: "{{ value_json.energy_abs }}"
device_class: energy
unit_of_measurement: "kWh"
switch:
- platform: mqtt
name: "Wallbox Maximaler Ladestrom"
command_topic: "warp/SLq/evse/current_limit"
payload_on: '{"current": 16000}'
payload_off: '{"current": 6000}'
state_topic: "warp/SLq/evse/max_charging_current"
value_template: '{{ value_json.max_current_configured >= 16000 }}'
state_on: "True"
state_off: "False"
json_attributes_template: "{{ value_json }}"
- platform: mqtt
name: "Wallbox Automatisches Laden"
icon: mdi:ev-plug-type2
command_topic: "warp/SLq/evse/auto_start_charging_update"
payload_on: '{"auto_start_charging": true}'
payload_off: '{"auto_start_charging": false}'
state_topic: "warp/SLq/evse/auto_start_charging"
value_template: '{{ value_json.auto_start_charging }}'
state_on: "True"
state_off: "False"
- platform: mqtt
name: "Wallbox Ladevorgang"
icon: mdi:battery-charging
command_topic: "warp/SLq/evse/charging_command"
state_topic: "warp/SLq/evse/state"
value_template: '{{ value_json.vehicle_state in [2] }}'
state_on: "True"
state_off: "False"
- platform: template
switches:
wallbox_ladevorgang:
friendly_name: "Wallbox Ladevorgang"
icon_template: mdi:battery-charging
value_template: '{{ is_state("binary_sensor.wallbox_ladevorgang", "on") }}'
turn_on:
service: mqtt.publish
data:
topic: warp/SLq/evse/start_charging
payload: 'null'
turn_off:
service: mqtt.publish
data:
topic: warp/SLq/evse/stop_charging
payload: 'null'
config/automations.yaml:
Die Automation ist leider notwendig, um das MQTT-Kommando der Wallbox richtig zu senden. Die Box hat zwei Topics zum Starten und Stoppen des Ladevorgangs, und Home Assistant unterstützt leider nur einen Topic für den Schalter. Funktioniert aber gut soweit.
Edit: Ich habe doch eine Variante ohne Automation gefunden, mit Hilfe eines Template-Switches.