Home Assistant Git Exporter
parent
3e3aa3f2f6
commit
e5a1b670c7
|
@ -72,24 +72,35 @@ automation:
|
||||||
condition: "{{ not is_state('switch.living_room_a_c_jet_mode', 'on') }}"
|
condition: "{{ not is_state('switch.living_room_a_c_jet_mode', 'on') }}"
|
||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions: "{{ delta > 10 and not (is_state('climate.living_room_a_c', 'unavailable') or is_state('climate.living_room_a_c', 'unknown')) }}"
|
- conditions: |
|
||||||
|
{{ delta > 10 and not (
|
||||||
|
is_state('switch.living_room_a_c_jet_mode', 'unavailable') or
|
||||||
|
is_state('switch.living_room_a_c_jet_mode', 'unknown')
|
||||||
|
)
|
||||||
|
}}
|
||||||
sequence:
|
sequence:
|
||||||
- service: switch.turn_on
|
- if: "{{ not is_state('switch.living_room_a_c_jet_mode', 'on') }}"
|
||||||
target:
|
then:
|
||||||
entity_id: switch.living_room_a_c_jet_mode
|
- service: switch.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: switch.living_room_a_c_jet_mode
|
||||||
- conditions: "{{ delta > 5 }}"
|
- conditions: "{{ delta > 5 }}"
|
||||||
sequence:
|
sequence:
|
||||||
|
- if: "{{ not is_state_attr('climate.living_room_a_c', 'fan_mode', 'HIGH') }}"
|
||||||
|
then:
|
||||||
|
- service: climate.set_fan_mode
|
||||||
|
data:
|
||||||
|
fan_mode: HIGH
|
||||||
|
target:
|
||||||
|
entity_id: climate.living_room_a_c
|
||||||
|
default:
|
||||||
|
- if: "{{ not is_state_attr('climate.living_room_a_c', 'fan_mode', 'NATURE') }}"
|
||||||
|
then:
|
||||||
- service: climate.set_fan_mode
|
- service: climate.set_fan_mode
|
||||||
data:
|
data:
|
||||||
fan_mode: HIGH
|
fan_mode: NATURE
|
||||||
target:
|
target:
|
||||||
entity_id: climate.living_room_a_c
|
entity_id: climate.living_room_a_c
|
||||||
default:
|
|
||||||
- service: climate.set_fan_mode
|
|
||||||
data:
|
|
||||||
fan_mode: NATURE
|
|
||||||
target:
|
|
||||||
entity_id: climate.living_room_a_c
|
|
||||||
|
|
||||||
- alias: "Capture Living Room AC state"
|
- alias: "Capture Living Room AC state"
|
||||||
id: 15a75d0a-bc08-45c7-95d1-b16d02f6927a
|
id: 15a75d0a-bc08-45c7-95d1-b16d02f6927a
|
||||||
|
|
|
@ -236,7 +236,6 @@ homekit:
|
||||||
- light.fairy_lights
|
- light.fairy_lights
|
||||||
|
|
||||||
include_entity_globs:
|
include_entity_globs:
|
||||||
- climate.living_room*
|
|
||||||
- binary_sensor.*_is_occupied
|
- binary_sensor.*_is_occupied
|
||||||
- binary_sensor.*_motion
|
- binary_sensor.*_motion
|
||||||
- binary_sensor.*_presence
|
- binary_sensor.*_presence
|
||||||
|
|
Loading…
Reference in New Issue