Files
N22/include/automations/tesla_stop_when_full.yaml
T
claus 4a155ad545 feat: implement Tesla smart charging v3 for Zaptec
- Beregner manglende kWh baseret på SOC og charge limit
- Finder de billigste 15-min elspot-timer før deadline
- Starter/stopper opladning via switch.home_charging
- Tilføjer failsafe 1 time før deadline
- Håndterer connected_finished session reset automatisk
- Stopper opladning når charge limit er nået
- Fuld modulopdeling: input_datetime, templates, binary_sensors, automations
2026-03-16 16:51:30 +01:00

12 lines
314 B
YAML

- alias: Tesla stop when charged
trigger:
- platform: template
value_template: >
{{ states('sensor.snowywhite_battery')|float >=
states('number.snowywhite_charge_limit')|float }}
action:
- service: switch.turn_off
target:
entity_id: switch.home_charging