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
|
icon: mdi:flash-circle
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: switch.turn_on
|
service: script.tesla_force_start_charging
|
||||||
service_data:
|
|
||||||
entity_id: switch.home_charging
|
|
||||||
|
|
||||||
- type: button
|
- type: button
|
||||||
name: Stop opladning
|
name: Stop opladning
|
||||||
icon: mdi:flash-off
|
icon: mdi:flash-off
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: switch.turn_off
|
service: script.tesla_force_stop_charging
|
||||||
service_data:
|
|
||||||
entity_id: switch.home_charging
|
|
||||||
|
|
||||||
# 🕒 Opladningsplan
|
# 🕒 Opladningsplan
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Opladningsplan
|
title: Opladningsplan
|
||||||
entities:
|
entities:
|
||||||
|
- entity: input_boolean.tesla_manual_override
|
||||||
|
name: Manuel override
|
||||||
- entity: binary_sensor.tesla_charge_now
|
- entity: binary_sensor.tesla_charge_now
|
||||||
name: Skal lade nu
|
name: Skal lade nu
|
||||||
- entity: sensor.tesla_charge_plan
|
- entity: sensor.tesla_charge_plan
|
||||||
|
|||||||
@@ -10,6 +10,10 @@
|
|||||||
minutes: "0"
|
minutes: "0"
|
||||||
|
|
||||||
condition:
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.tesla_manual_override
|
||||||
|
state: "off"
|
||||||
|
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{% set deadline = states('input_datetime.tesla_charge_deadline') %}
|
{% set deadline = states('input_datetime.tesla_charge_deadline') %}
|
||||||
@@ -65,3 +69,14 @@
|
|||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: switch.home_charging
|
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('sensor.snowywhite_battery')|float(0)) >=
|
||||||
(states('number.snowywhite_charge_limit')|float(100)) }}
|
(states('number.snowywhite_charge_limit')|float(100)) }}
|
||||||
action:
|
action:
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.tesla_manual_override
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: switch.home_charging
|
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