CTEK Chargestorm Connected 2 using OCPP integration - jonasbkarlsson/ev_smart_charging GitHub Wiki
Integration: OCPP
How to configure the CTEK charger. (This description is a bit outdated. The latest version of the OCPP integration can automatically detect which measurement the charger supports.)
NOTE 1: Don't configure the Charger control switch
for the EV Smart Charging integration.
NOTE 2: Replace XXXXXX
with your OCPP charger name.
Automation to start charging
alias: EV Smart Charging - Start
description: ""
trigger:
- platform: state
entity_id:
- sensor.ev_smart_charging_charging
from: "off"
to: "on"
condition: []
action:
- service: number.set_value
data:
value: "16"
target:
entity_id: number.XXXXXX_maximum_current
mode: single
Automation to stop charging
alias: EV Smart Charging - Stop
description: ""
trigger:
- platform: state
entity_id:
- sensor.ev_smart_charging_charging
from: "on"
to: "off"
condition: []
action:
- service: number.set_value
data:
value: "0"
target:
entity_id: number.XXXXXX_maximum_current
mode: single
Automation to inform the integration that the EV is connected to the charger
alias: EV Smart Charging - EV connected
description: ""
trigger:
- platform: state
entity_id:
- sensor.XXXXXX_status_connector
condition: []
action:
- if:
- condition: state
entity_id: sensor.XXXXXX_status_connector
state: Preparing
then:
- service: switch.turn_on
data: {}
target:
entity_id: switch.ev_smart_charging_ev_connected
- service: number.set_value
data:
value: "0"
target:
entity_id: number.XXXXXX_maximum_current
- service: switch.turn_on
data: {}
target:
entity_id: switch.XXXXXX_charge_control
else:
- if:
- condition: state
entity_id: sensor.XXXXXX_status_connector
state: Available
then:
- service: switch.turn_off
data: {}
target:
entity_id: switch.ev_smart_charging_ev_connected
mode: single