Necessary changes to support master bedroom air conditioner
This commit is contained in:
@ -113,12 +113,25 @@ automation:
|
||||
data_template:
|
||||
time: >
|
||||
{% set low = state_attr('sensor.current_forecast','overnight_low') | float %}
|
||||
{% if low > 55 and low < 60 %}
|
||||
{% set high = state_attr('sensor.current_forecast','high_temp') | float %}
|
||||
{% if high > 85 and is_state('sensor.school_tomorrow','on') %}
|
||||
20:00
|
||||
{% elif high > 85 and is_state('sensor.school_tomorrow','off') %}
|
||||
21:00
|
||||
{% elif low > 55 and low < 60 %}
|
||||
22:00
|
||||
{% elif low > 60 %}
|
||||
21:00
|
||||
{% elif low > 48 and low < 55 %}
|
||||
00:00
|
||||
21:30
|
||||
{% else %}
|
||||
05:00
|
||||
{% endif %}
|
||||
00:00
|
||||
{% endif %}
|
||||
- service: input_datetime.set_datetime
|
||||
entity_id: input_datetime.master_bedroom_fan
|
||||
data_template:
|
||||
time: >
|
||||
{% set low = state_attr('sensor.current_forecast','overnight_low') | float %}
|
||||
{% if low > 60 %}
|
||||
22:00
|
||||
{% else %}
|
||||
00:00
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user