27 lines
768 B
YAML
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
|