1
0

Add humidifier to modes scene

This commit is contained in:
Przemek Grondek 2022-12-15 00:56:50 +01:00
parent 7451b3adcc
commit 33ce61c50d
3 changed files with 34 additions and 10 deletions

View File

@ -1,5 +1,6 @@
- id: humidifier_on - id: humidifier_on
alias: '[Bedroom] Turn on humidifier' alias: '[Bedroom] Turn on humidifier'
mode: single
trigger: trigger:
- platform: numeric_state - platform: numeric_state
entity_id: sensor.bedroom_air_purifier_humidity entity_id: sensor.bedroom_air_purifier_humidity
@ -15,12 +16,11 @@
entity_id: sensor.bedroom_air_purifier_humidity entity_id: sensor.bedroom_air_purifier_humidity
below: '45' below: '45'
action: action:
- service: switch.turn_on - service: script.humidifier_on
entity_id: switch.humidifier_plug
mode: single
- id: humidifier_off - id: humidifier_off
alias: '[Bedroom] Turn on humidifier' alias: '[Bedroom] Turn on humidifier'
mode: single
trigger: trigger:
- platform: numeric_state - platform: numeric_state
entity_id: sensor.bedroom_air_purifier_humidity entity_id: sensor.bedroom_air_purifier_humidity
@ -29,6 +29,4 @@
entity_id: binary_sensor.bedroom_window_open_close entity_id: binary_sensor.bedroom_window_open_close
to: 'on' to: 'on'
action: action:
- service: switch.turn_off - service: script.humidifier_off
entity_id: switch.humidifier_plug
mode: single

View File

@ -20,6 +20,8 @@ good_night:
- service: switch.turn_off - service: switch.turn_off
entity_id: entity_id:
- switch.printer_switch - switch.printer_switch
- switch.xmas_lights_on_off
- service: script.humidifier_off
- service: cover.close_cover - service: cover.close_cover
entity_id: entity_id:
- cover.bedroom_blinds - cover.bedroom_blinds
@ -32,7 +34,6 @@ good_night:
state: unlocked state: unlocked
sequence: sequence:
- service: lock.lock - service: lock.lock
data: { }
target: target:
entity_id: lock.front_door_lock_doorlock entity_id: lock.front_door_lock_doorlock
- choose: - choose:
@ -61,9 +62,6 @@ good_night:
entity_id: entity_id:
- climate.office_thermostat - climate.office_thermostat
- climate.dining_thermostat - climate.dining_thermostat
- service: switch.turn_off
entity_id:
- switch.xmas_lights_on_off
- service: light.turn_off - service: light.turn_off
entity_id: entity_id:
- light.couch_lights - light.couch_lights
@ -115,6 +113,7 @@ good_morning:
entity_id: entity_id:
- switch.computer_outlet - switch.computer_outlet
- switch.xmas_lights_on_off - switch.xmas_lights_on_off
- service: script.humidifier_on
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.mute_doorbell entity_id: switch.mute_doorbell
- service: switch.turn_on - service: switch.turn_on

View File

@ -0,0 +1,27 @@
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