Files
N22/include/automations/tesla_stop_when_full.yaml
T

12 lines
358 B
YAML

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