Update Tesla deadline handling and meal plan
This commit is contained in:
@@ -4,6 +4,12 @@
|
||||
- platform: time
|
||||
at: "13:05:00"
|
||||
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: >
|
||||
{% set deadline = states('input_datetime.tesla_charge_deadline') %}
|
||||
{{ deadline in ['unknown','unavailable',''] or as_timestamp(deadline) <= as_timestamp(now()) }}
|
||||
|
||||
action:
|
||||
- service: input_datetime.set_datetime
|
||||
target:
|
||||
@@ -23,6 +29,12 @@
|
||||
entity_id: binary_sensor.snowywhite_charger
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: >
|
||||
{% set deadline = states('input_datetime.tesla_charge_deadline') %}
|
||||
{{ deadline in ['unknown','unavailable',''] or as_timestamp(deadline) <= as_timestamp(now()) }}
|
||||
|
||||
action:
|
||||
- service: input_datetime.set_datetime
|
||||
target:
|
||||
|
||||
Reference in New Issue
Block a user