36 lines
960 B
YAML
36 lines
960 B
YAML
- id: humidifier_on
|
|
alias: '[Bedroom] Turn on humidifier'
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: sensor.ble_humidity_bedroom_sensor
|
|
below: '45'
|
|
- platform: state
|
|
entity_id: binary_sensor.bedroom_window_open_close
|
|
to: 'close'
|
|
condition:
|
|
- condition: state
|
|
entity_id: binary_sensor.bedroom_window_open_close
|
|
state: 'close'
|
|
- condition: numeric_state
|
|
entity_id: sensor.ble_humidity_bedroom_sensor
|
|
below: '45'
|
|
action:
|
|
- service: switch.turn_on
|
|
entity_id: switch.humidifier_plug
|
|
mode: single
|
|
|
|
- id: humidifier_off
|
|
alias: '[Bedroom] Turn on humidifier'
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: sensor.ble_humidity_bedroom_sensor
|
|
above: '50'
|
|
- platform: state
|
|
entity_id: binary_sensor.bedroom_window_open_close
|
|
to: 'open'
|
|
condition: []
|
|
action:
|
|
- service: switch.turn_off
|
|
entity_id: switch.humidifier_plug
|
|
mode: single
|