Hello there, I’m new to HA, and gotta problem with humidifier automation.
Actually I’ve made two automations for Xiaomi humidifier depended from humidity from external sensors: one turned on humidifier if humidity level goes below 46% and the second one to turn it off if humidity goes above 50%
It looks like that
Turn on
description: ''
trigger:
- type: humidity
platform: device
device_id: 46418a064e58679abb8033f856df5b5a
entity_id: sensor.ble_humidity_thermometer_living_a4_c1_38_59_bb_68
domain: sensor
below: 47
condition: []
action:
- type: turn_on
device_id: 7d2c977f049f75d4249c92f8290f13a0
entity_id: humidifier.smartmi_evaporative_humidifier
domain: humidifier
mode: single
alias: Turn off
description: ''
trigger:
- type: humidity
platform: device
device_id: 46418a064e58679abb8033f856df5b5a
entity_id: sensor.ble_humidity_thermometer_living_a4_c1_38_59_bb_68
domain: sensor
above: 50
condition: []
action:
- type: turn_off
device_id: 7d2c977f049f75d4249c92f8290f13a0
entity_id: humidifier.smartmi_evaporative_humidifier
domain: humidifier
mode: single
Then I have two automations to turn on/off “night mode” from 20:00 to 7:00
alias: Night mode on
description: ''
trigger:
- platform: time
at: '20:00'
condition: []
action:
- device_id: 7d2c977f049f75d4249c92f8290f13a0
domain: select
entity_id: select.smartmi_evaporative_humidifier_led_brightness
type: select_option
option: dim
- type: turn_off
device_id: 7d2c977f049f75d4249c92f8290f13a0
entity_id: switch.smartmi_evaporative_humidifier_buzzer
domain: switch
- device_id: 7d2c977f049f75d4249c92f8290f13a0
domain: humidifier
entity_id: humidifier.smartmi_evaporative_humidifier
type: set_mode
mode: Silent
mode: single
alias: Night mode off
description: ''
trigger:
- platform: time
at: '07:00'
condition: []
action:
- device_id: 7d2c977f049f75d4249c92f8290f13a0
domain: select
entity_id: select.smartmi_evaporative_humidifier_led_brightness
type: select_option
option: bright
- type: turn_on
device_id: 7d2c977f049f75d4249c92f8290f13a0
entity_id: switch.smartmi_evaporative_humidifier_buzzer
domain: switch
- device_id: 7d2c977f049f75d4249c92f8290f13a0
domain: humidifier
entity_id: humidifier.smartmi_evaporative_humidifier
type: set_mode
mode: High
mode: single
And firstly it seemed to work fine, but now I see that humidifier sometimes doesn’t turn off when reaches needed humidity or for example Night mode doesn’t turned on or continues to be in silent mode all day (e.g. doesn’t turn Night mode off)
Does it happen because of many automations or I wrote smth wrong?
Is it possible to make all of these by one or two automations?
Also I’ll install some open/close window sensors and need to make humidifier turned off when the window is opened even if humidity goes below 46%, and only turn on when window closed