Tesla: manuel override for start/stop opladning
- input_boolean.tesla_manual_override: deaktiverer smart charging planlægning - script.tesla_force_start_charging: sætter override + starter opladning - script.tesla_force_stop_charging: sætter override + stopper opladning - Smart charging automation springer over når override er aktiv - Override nulstilles automatisk ved frakobling eller fuld opladning - Tesla-view opdateret med nye knapper og override-toggle
This commit is contained in:
@@ -48,23 +48,21 @@ cards:
|
||||
icon: mdi:flash-circle
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: switch.turn_on
|
||||
service_data:
|
||||
entity_id: switch.home_charging
|
||||
service: script.tesla_force_start_charging
|
||||
|
||||
- type: button
|
||||
name: Stop opladning
|
||||
icon: mdi:flash-off
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: switch.turn_off
|
||||
service_data:
|
||||
entity_id: switch.home_charging
|
||||
service: script.tesla_force_stop_charging
|
||||
|
||||
# 🕒 Opladningsplan
|
||||
- type: entities
|
||||
title: Opladningsplan
|
||||
entities:
|
||||
- entity: input_boolean.tesla_manual_override
|
||||
name: Manuel override
|
||||
- entity: binary_sensor.tesla_charge_now
|
||||
name: Skal lade nu
|
||||
- entity: sensor.tesla_charge_plan
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
minutes: "0"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.tesla_manual_override
|
||||
state: "off"
|
||||
|
||||
- condition: template
|
||||
value_template: >
|
||||
{% set deadline = states('input_datetime.tesla_charge_deadline') %}
|
||||
@@ -65,3 +69,14 @@
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.home_charging
|
||||
|
||||
- alias: "Tesla - nulstil manuel override ved frakobling"
|
||||
id: tesla_reset_manual_override
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.snowywhite_charger
|
||||
to: "off"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.tesla_manual_override
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
{{ (states('sensor.snowywhite_battery')|float(0)) >=
|
||||
(states('number.snowywhite_charge_limit')|float(100)) }}
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.tesla_manual_override
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.home_charging
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
tesla_manual_override:
|
||||
name: Tesla manuel opladning
|
||||
icon: mdi:car-electric
|
||||
@@ -0,0 +1,23 @@
|
||||
tesla_force_start_charging:
|
||||
alias: "Tesla - start opladning nu"
|
||||
description: "Starter opladning med det samme og deaktiverer smart charging planlægning"
|
||||
icon: mdi:flash-circle
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.tesla_manual_override
|
||||
- service: switch.turn_on
|
||||
target:
|
||||
entity_id: switch.home_charging
|
||||
|
||||
tesla_force_stop_charging:
|
||||
alias: "Tesla - stop opladning nu"
|
||||
description: "Stopper opladning med det samme og deaktiverer smart charging planlægning"
|
||||
icon: mdi:flash-off
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.tesla_manual_override
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.home_charging
|
||||
Reference in New Issue
Block a user