Skip to content

CTEK Chargestorm Connected 2 using OCPP integration

Jonas Karlsson edited this page Jan 8, 2024 · 3 revisions

Integration: OCPP

How to configure the CTEK charger. (This description is a bit outdated. With the latest version of the CTEK software, configuration can be done with a web browers, without connecting to the charger with a USB cable. And 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

The below example has been tested with firmware version R3.11.20

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: 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