1
0
Fork 0

Home Assistant Git Exporter

main
31c0fe9c6dbd74bcdde92e1d2aaa03e1d272f75f 2023-06-14 10:25:46 +10:00
parent 08dc7fcf36
commit 3e3aa3f2f6
1 changed files with 63 additions and 7 deletions

View File

@ -20,11 +20,24 @@ automation:
not_to: not_to:
- unavailable - unavailable
- unknown - unknown
- platform: state
attribute: temperature
not_to:
- unavailable
- unknown
entity_id: climate.living_room_a_c
- platform: state
attribute: current_temperature
not_to:
- unavailable
- unknown
entity_id: climate.living_room_a_c
condition: "{{ not is_state('switch.living_room_a_c_ionizer', 'on') }}"
action: action:
- service: switch.turn_on - service: switch.turn_on
entity_id: switch.living_room_a_c_ionizer entity_id: switch.living_room_a_c_ionizer
- alias: "Set Living Room AC fan to auto" - alias: "Set Living Room AC fan speed"
id: b09bd43d-4e5d-4ff3-84cb-3aaa8d878463 id: b09bd43d-4e5d-4ff3-84cb-3aaa8d878463
trigger: trigger:
- platform: state - platform: state
@ -36,19 +49,47 @@ automation:
not_from: not_from:
- unavailable - unavailable
- unknown - unknown
- platform: state
attribute: temperature
not_to:
- unavailable
- unknown
entity_id: climate.living_room_a_c
- platform: state
attribute: current_temperature
not_to:
- unavailable
- unknown
entity_id: climate.living_room_a_c
- platform: state - platform: state
entity_id: switch.living_room_a_c_jet_mode entity_id: switch.living_room_a_c_jet_mode
not_to: not_to:
- unavailable - unavailable
- unknown - unknown
- "on" - "on"
variables:
delta: "{{ (state_attr('climate.living_room_a_c', 'current_temperature') - state_attr('climate.living_room_a_c', 'temperature')) | abs }}"
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:
- service: climate.set_fan_mode - choose:
data: - conditions: "{{ delta > 10 and not (is_state('climate.living_room_a_c', 'unavailable') or is_state('climate.living_room_a_c', 'unknown')) }}"
fan_mode: NATURE sequence:
target: - service: switch.turn_on
entity_id: climate.living_room_a_c target:
entity_id: switch.living_room_a_c_jet_mode
- conditions: "{{ delta > 5 }}"
sequence:
- service: climate.set_fan_mode
data:
fan_mode: HIGH
target:
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
@ -62,21 +103,36 @@ automation:
not_from: not_from:
- unavailable - unavailable
- unknown - unknown
- platform: numeric_state - platform: state
entity_id: climate.living_room_a_c entity_id: climate.living_room_a_c
attribute: temperature attribute: temperature
not_to:
- unavailable
- unknown
- platform: state - platform: state
entity_id: climate.living_room_a_c entity_id: climate.living_room_a_c
attribute: fan_mode attribute: fan_mode
not_to:
- unavailable
- unknown
- platform: state - platform: state
entity_id: climate.living_room_a_c entity_id: climate.living_room_a_c
attribute: swing_mode attribute: swing_mode
not_to:
- unavailable
- unknown
- platform: state - platform: state
entity_id: climate.living_room_a_c entity_id: climate.living_room_a_c
attribute: swing_mode_horizontal attribute: swing_mode_horizontal
not_to:
- unavailable
- unknown
- platform: state - platform: state
entity_id: climate.living_room_a_c entity_id: climate.living_room_a_c
attribute: swing_mode_vertical attribute: swing_mode_vertical
not_to:
- unavailable
- unknown
- platform: state - platform: state
entity_id: switch.living_room_a_c_jet_mode entity_id: switch.living_room_a_c_jet_mode
not_to: not_to: