2020-12-06 20:46:37 +00:00
|
|
|
- id: humidifier_on
|
2021-01-07 00:48:14 +00:00
|
|
|
alias: '[Bedroom] Turn on humidifier'
|
2020-11-21 03:28:38 +00:00
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.ble_humidity_bedroom_sensor
|
2020-12-06 20:46:37 +00:00
|
|
|
below: '45'
|
2021-01-21 12:20:32 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.bedroom_window_open_close
|
2021-01-23 14:24:41 +00:00
|
|
|
to: 'off'
|
|
|
|
condition:
|
2021-01-21 12:20:32 +00:00
|
|
|
- condition: state
|
|
|
|
entity_id: binary_sensor.bedroom_window_open_close
|
2021-01-23 14:24:41 +00:00
|
|
|
state: 'off'
|
2021-01-21 12:20:32 +00:00
|
|
|
- condition: numeric_state
|
|
|
|
entity_id: sensor.ble_humidity_bedroom_sensor
|
|
|
|
below: '45'
|
2020-11-21 03:28:38 +00:00
|
|
|
action:
|
2020-12-06 20:46:37 +00:00
|
|
|
- service: switch.turn_on
|
|
|
|
entity_id: switch.humidifier_plug
|
|
|
|
mode: single
|
|
|
|
|
|
|
|
- id: humidifier_off
|
2021-01-07 00:48:14 +00:00
|
|
|
alias: '[Bedroom] Turn on humidifier'
|
2020-12-06 20:46:37 +00:00
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.ble_humidity_bedroom_sensor
|
|
|
|
above: '50'
|
2021-01-21 12:20:32 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.bedroom_window_open_close
|
2021-01-23 14:24:41 +00:00
|
|
|
to: 'on'
|
2020-12-06 20:46:37 +00:00
|
|
|
action:
|
|
|
|
- service: switch.turn_off
|
|
|
|
entity_id: switch.humidifier_plug
|
2020-11-21 03:28:38 +00:00
|
|
|
mode: single
|