1
0
ansible-home-assistant/scripts/12.humidifier.yaml
2022-12-15 00:56:50 +01:00

27 lines
768 B
YAML

humidifier_on:
alias: Humidifier On
sequence:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.bedroom_air_purifier_humidity
below: '45'
- condition: state
entity_id: binary_sensor.bedroom_window_open_close
state: 'off'
- condition: not
conditions:
- condition: state
entity_id: input_select.home_mode
state: 'Night'
sequence:
- service: switch.turn_on
entity_id:
- switch.humidifier_plug
humidifier_off:
alias: Humidifier Off
sequence:
- service: switch.turn_off
entity_id:
- switch.humidifier_plug