Fix E's A/C getting shut off when we leave on hot days
This commit is contained in:
@ -704,15 +704,16 @@ script:
|
|||||||
- input_boolean.white_noise_kallen_bedroom
|
- input_boolean.white_noise_kallen_bedroom
|
||||||
- input_boolean.white_noise_emma_bedroom
|
- input_boolean.white_noise_emma_bedroom
|
||||||
- if:
|
- if:
|
||||||
- condition: not
|
- condition: template
|
||||||
conditions:
|
value_template: >
|
||||||
- condition: state
|
{% set heat = [
|
||||||
entity_id:
|
states.input_boolean.hot_day,
|
||||||
- input_boolean.hot_day
|
states.binary_sensor.heat_warning,
|
||||||
- binary_sensor.heat_warning
|
states.binary_sensor.heat_threshold,
|
||||||
- binary_sensor.heat_threshold
|
states.binary_sensor.heat_index_threshold
|
||||||
- binary_sensor.heat_index_threshold
|
] %}
|
||||||
state: 'on'
|
{% set number = heat | selectattr('state','eq','on') | list | count | int %}
|
||||||
|
{{ number == 0 }}
|
||||||
then:
|
then:
|
||||||
- service: fan.turn_off
|
- service: fan.turn_off
|
||||||
target:
|
target:
|
||||||
|
Reference in New Issue
Block a user