Skip to content

Go‐E Gemini

Jonas Karlsson edited this page Mar 17, 2024 · 2 revisions

Integration: MQTT

Action to start charging

  - service: mqtt.publish
    data:
      topic: go-eCharger/your_go-e_serial/frc/set
      payload: "2"
      retain: true
    enabled: true

Action to stop charging

  - service: mqtt.publish
    data:
      topic: go-eCharger/your_go-e_serial/frc/set
      payload: "1"
  - delay:
      hours: 0
      minutes: 0
      seconds: 5
      milliseconds: 0
  - service: mqtt.publish
    data:
      topic: go-eCharger/your_go-e_serial/frc/set
      payload: "0"
      retain: true

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

alias: Set connected state
trigger:
  - platform: mqtt
    topic: go-eCharger/your_go-e_serial/car
action:
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ trigger.payload in ['2', '3', '4'] }}"
          - condition: template
            value_template: "{{ is_state('switch.ev_smart_charging_ev_connected', 'off') }}"
        sequence:
          - service: switch.turn_on
            target:
              entity_id: switch.ev_smart_charging_ev_connected
            data: {}
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ trigger.payload in ['0', '1', '5'] }}"
          - condition: template
            value_template: "{{ is_state('switch.ev_smart_charging_ev_connected', 'on') }}"
        sequence:
          - service: switch.turn_off
            target:
              entity_id: switch.ev_smart_charging_ev_connected
            data: {}