Fix Tesla failsafe charge condition
This commit is contained in:
@@ -10,10 +10,12 @@
|
|||||||
false
|
false
|
||||||
{% endif %}
|
{% endif %}
|
||||||
condition:
|
condition:
|
||||||
- condition: numeric_state
|
- condition: template
|
||||||
entity_id: sensor.tesla_kwh_needed
|
value_template: >
|
||||||
above: 0
|
{{
|
||||||
value_template: "{{ states('sensor.tesla_kwh_needed')|float(0) }}"
|
states('sensor.snowywhite_battery') | float(0)
|
||||||
|
< states('number.snowywhite_charge_limit') | float(100)
|
||||||
|
}}
|
||||||
action:
|
action:
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
target:
|
target:
|
||||||
|
|||||||
Reference in New Issue
Block a user