-
-
Notifications
You must be signed in to change notification settings - Fork 29
Go‐E Gemini
Jonas Karlsson edited this page Mar 17, 2024
·
2 revisions
Integration: MQTT
- service: mqtt.publish
data:
topic: go-eCharger/your_go-e_serial/frc/set
payload: "2"
retain: true
enabled: true
- 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
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: {}