Skip to content
Jonas Karlsson edited this page Aug 12, 2024 · 3 revisions

Integration: easee_hass

Automation to start charging

alias: EV Smart Charging - Start
description: ""
mode: single
trigger:
  - platform: state
    entity_id:
      - sensor.ev_smart_charging_charging
    from: "off"
    to: "on"
condition: []
action:
  - service: easee.set_circuit_dynamic_limit
    data:
      charger_id: exxxxxxx (replace with your charger id, which can be found in the Easee app (Charger Settings -> About -> Serial Number))
      currentP1: 16 (replace with your preferred charging current)

Automation to stop charging

alias: EV Smart Charging - Stop
description: ""
mode: single
trigger:
  - platform: state
    entity_id:
      - sensor.ev_smart_charging_charging
    from: "on"
    to: "off"
condition: []
action:
  - service: easee.set_circuit_dynamic_limit
    data:
      charger_id: exxxxxxx (replace with your charger id, which can be found in the Easee app (Charger Settings -> About -> Serial Number))
      currentP1: 0 (something below 6 to make the charging stop)

Automation to inform the integration that the EV is connected to the charger

The status sensor of the Easee integration can have the states disconnected, awaiting_start, charging, ready_to_charge, completed or error. The below automation is triggered every time the status of the sensor changes its state. Any other state than disconnected is being interpreted as a connected EV.

alias: EV Smart Charging - EV connection status
description: ""
trigger:
  - platform: state
    entity_id:
      - sensor.ehXXXXXX_status      (replace with your own charger ID)
condition: []
action:
  - if:
      - condition: state
        entity_id: sensor.ehXXXXXX_status      (replace with your own charger ID)
        state: disconnected
    then:
      - service: switch.turn_off
        data: {}
        target:
          entity_id: switch.ev_smart_charging_ev_connected
    else:
      - service: switch.turn_on
        data: {}
        target:
          entity_id: switch.ev_smart_charging_ev_connected
mode: single