2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_humidifier_on
|
2021-01-07 00:48:14 +00:00
|
|
|
alias: '[Bedroom] Turn on humidifier'
|
2022-12-14 23:56:50 +00:00
|
|
|
mode: single
|
2020-11-21 03:28:38 +00:00
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
2021-11-06 18:43:05 +00:00
|
|
|
entity_id: sensor.bedroom_air_purifier_humidity
|
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
|
2021-11-06 18:43:05 +00:00
|
|
|
entity_id: sensor.bedroom_air_purifier_humidity
|
2021-01-21 12:20:32 +00:00
|
|
|
below: '45'
|
2020-11-21 03:28:38 +00:00
|
|
|
action:
|
2022-12-14 23:56:50 +00:00
|
|
|
- service: script.humidifier_on
|
2020-12-06 20:46:37 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_humidifier_off
|
|
|
|
alias: '[Bedroom] Turn off humidifier'
|
2022-12-14 23:56:50 +00:00
|
|
|
mode: single
|
2020-12-06 20:46:37 +00:00
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
2021-11-06 18:43:05 +00:00
|
|
|
entity_id: sensor.bedroom_air_purifier_humidity
|
|
|
|
above: '55'
|
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:
|
2022-12-14 23:56:50 +00:00
|
|
|
- service: script.humidifier_off
|