Automation for humidifier
I suggest that those who are not indifferent share their options for automating the humidifier, sensors, and also share cards. Each of us can do something interesting and your idea may be useful.
Smartmi Evaporative Humidifier 2 CJXJSQ04ZM EU added through this integration xiaomi airpurifier
My automation option is like this. I am using a humidity sensor and have created an auxiliary number element for the target humidity. I made a difference between them so that the fan speed was adaptive and depended on the difference between the humidity sensor and the auxiliary number element. Thus, if the room humidity and the target humidity will have more than the specified, then the fan speed will be high, but as the difference between the humidity sensor and the auxiliary number element decreases, the fan speed will decrease, and when the specified humidity reaches, the speed will be minimal.
Sensor
sensor:
- platform: template
sensors:
livingroom_airhumidifier_auto_speed:
friendly_name: "Living Room: Humidifier. Auto speed"
value_template: >
{% set tiv_humidity = states("sensor.livingroom_tiv_humidity") %}
{% set target_humidity = states("input_number.livingroom_humidifier_target_humidity") %}
{% set sum = target_humidity|int - tiv_humidity |int %}
{% if sum < 0 %} Silent
{% elif sum >= 0 and sum < 4.8 %} Silent
{% elif sum > 4.9 and sum < 9.8 %} Medium
{% elif sum > 9.9 %} High
{% endif %}
Automation
Automation No. 1: Living Room: Humidifier. Automatic ventilation speed
alias: 'Living Room: Humidifier. Automatic ventilation speed'
description: >-
The fan speed is determined by the difference between the target and room
humidity
trigger:
- platform: state
entity_id: sensor.livingroom_airhumidifier_auto_speed
id: 'Humidifier: Auto speed'
- platform: state
entity_id: input_boolean.livingroom_humidifier_auto_power_on_off
from: 'off'
to: 'on'
id: 'Humidifier: Auto speed enabled'
- platform: state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
from: 'off'
to: 'on'
id: Humidifier included
condition:
- condition: state
entity_id: input_boolean.livingroom_humidifier_auto_power_on_off
state: 'on'
- condition: state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
state: 'on'
action:
- service: fan.set_preset_mode
target:
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
data:
preset_mode: '{{states("sensor.livingroom_airhumidifier_auto_speed")}}'
mode: single
Automation No. 2: Living Room: Humidifier. Switching on and off. Auto
alias: 'Living Room: Humidifier. Switching on and off. Auto'
description: >-
The humidifier will automatically turn on and off. If the water level
is below 20%, the humidifier will be turned off and there will be a notification in the telegram
and Alice
trigger:
- platform: numeric_state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
attribute: water_level
above: '0'
id: 'Humidifier: Water level below 20'
below: '20'
- platform: numeric_state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
attribute: water_level
id: 'Humidifier: Water level below 40'
below: '40'
above: '20'
- platform: numeric_state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
attribute: water_level
id: 'Humidifier: Water level above 50'
above: '50'
below: '100'
condition:
- condition: state
entity_id: input_boolean.livingroom_humidifier_auto_power_on_off
state: 'on'
action:
- choose:
- conditions:
- condition: trigger
id: 'Humidifier: Water level below 40'
- condition: state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
state: 'on'
sequence:
- choose:
- conditions:
- condition: time
after: '10:00'
before: '23:59'
- condition: state
entity_id: input_select.divan_aktivnost
state: Home
sequence:
- service: script.tts_yandex_station_say
data:
device: media_player.yandex_station_xxxxxxxxxxxxx
volume: 7
message: >-
Host, the humidifier is running out of water, you need to top up
water
- service: notify.divan
data:
title: '*Living Room: Humidifier*'
message: >-
Host, the humidifier is running out of water, you need to top up
water
- conditions:
- condition: time
after: '00:00'
before: '09:59'
sequence:
- service: notify.divan
data:
title: '*Living Room: Humidifier*'
message: >-
Host, the humidifier is running out of water, you need to top up
water
default: []
- conditions:
- condition: trigger
id: 'Humidifier: Water level below 20'
- condition: state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
state: 'on'
sequence:
- choose:
- conditions:
- condition: time
after: '10:00'
before: '23:59'
- condition: state
entity_id: input_select.divan_aktivnost
state: Home
sequence:
- service: script.tts_yandex_station_say
data:
device: media_player.yandex_station_xxxxxxxxxxxxx
volume: 7
message: >-
Host, the water level in the humidifier is below 20 percent,
the humidifier will be turned off
- service: notify.divan
data:
title: '*Living Room: Humidifier*'
message: >-
Host, the water level in the humidifier is below 20 percent,
the humidifier will be turned off
- service: fan.turn_off
target:
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
- conditions:
- condition: time
after: '00:00'
before: '09:59'
sequence:
- service: notify.divan
data:
title: '*Living Room: Humidifier*'
message: >-
Host, the water level in the humidifier is below 20 percent,
the humidifier will be turned off
- service: fan.turn_off
target:
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
- conditions:
- condition: state
entity_id: input_select.divan_aktivnost
state: Not at home
sequence:
- service: notify.divan
data:
title: '*Living Room: Humidifier*'
message: >-
Host, the water level in the humidifier is below 20 percent,
the humidifier will be turned off
- service: fan.turn_off
target:
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
default: []
- conditions:
- condition: trigger
id: 'Humidifier: Water level above 50'
- condition: state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
state: 'off'
sequence:
- service: fan.turn_on
target:
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
- service: notify.divan
data:
title: '*Living Room: Humidifier*'
message: Host, thank you for pouring water, the humidifier will be on
default: []
mode: single
Automation No. 3: Living Room: Humidifier. Switching on and off. Windows
alias: 'Living Room: Humidifier. Switching on and off. Windows'
description: >-
If we open the window and the humidifier is running at this time, then the condition of the humidifier
it will be saved to history and the humidifier will be turned off. When we close the windows, the
humidifier will be turned on or not, it all depends on the history
trigger:
- platform: state
entity_id: group.livingroom_all_windows
from: 'off'
to: 'on'
id: 'Living room: windows are open'
for:
hours: 0
minutes: 5
seconds: 0
- platform: state
entity_id: group.livingroom_all_windows
from: 'on'
to: 'off'
id: 'Living room: windows are closed'
for:
hours: 0
minutes: 0
seconds: 30
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: 'Living room: windows are open'
sequence:
- service: scene.create
data:
snapshot_entities:
- fan.gostinaia_uvlazhnitel_xiaomi_evaporative
scene_id: humidifier_livingroom_all_windows_history
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: fan.turn_off
target:
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
- conditions:
- condition: trigger
id: 'Living room: windows are closed'
- condition: state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
state: 'off'
sequence:
- scene: scene.humidifier_livingroom_all_windows_history
default: []
mode: single
Lovelace
ΠΠ»Ρ ΡΠΎΠ·Π΄Π°Π½ΠΈΡ Π΄Π°Π½Π½ΠΎΠΉ ΠΊΠ°ΡΡΠΎΡΠΊΠΈ, Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π» ΠΈΠ½ΡΠ΅Π³ΡΠ°ΡΠΈΡ multiple entity row ΠΈ Π³ΡΡΠΏΠΏΡ
type: entities
entities:
- entity: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
type: custom:multiple-entity-row
name: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ
toggle: false
state_color: true
show_state: false
secondary_info:
attribute: water_level
name: Π£ΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ
unit: '%'
entities:
- entity: group.livingroom_airhumidifier_info_and_menu
name: ΠΠ΅Π½Ρ
state_color: true
icon: mdi:information-outline
styles:
width: 40px
- entity: sensor.gostinaia_tiv_humidity
name: ΠΠ»Π°ΠΆΠ½ΠΎΡΡΡ
unit: '%'
styles:
width: 55px
- entity: sensor.livingroom_airhumidifier_speed
secondary_info: false
name: Π‘ΠΊΠΎΡΠΎΡΡΡ
styles:
width: 55px
- entity: input_boolean.livingroom_humidifier_auto_power_on_off
name: ΠΠ²ΡΠΎ
toggle: true
state_color: true
styles:
width: 55px
- type: section
title: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ
Π’Π΅ΠΊΡΡ Π½Π° ΡΡΡΡΠΊΠΎΠΌ (Text in Russian)
ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·Π°ΡΠΈΡ Π΄Π»Ρ ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ
ΠΡΠ΅Π΄Π»Π°Π³Π°Ρ Π½Π΅ ΡΠ°Π²Π½ΠΎΠ΄ΡΡΠ½ΡΠΌ Π΄Π΅Π»ΠΈΡΡΡΡ ΡΠ²ΠΎΠΈΠΌΠΈ Π²Π°ΡΠΈΠ°Π½ΡΠ°ΠΌΠΈ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΠ·Π°ΡΠΈΠΈ ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ, ΡΠ΅Π½ΡΠΎΡΠ°ΠΌΠΈ, Π° ΡΠ°ΠΊΠΆΠ΅ Π΄Π΅Π»ΠΈΡΡΡΡ ΠΊΠ°ΡΡΠΎΡΠΊΠ°ΠΌΠΈ. ΠΠ°ΠΆΠ΄ΡΠΉ ΠΈΠ· Π½Π°Ρ ΠΌΠΎΠΆΠ΅Ρ ΡΠ΄Π΅Π»Π°ΡΡ ΡΡΠΎ-ΡΠΎ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΠΎΠ΅ ΠΈ Π²Π°ΡΠ° ΠΈΠ΄Π΅Ρ ΠΌΠΎΠΆΠ΅Ρ ΠΎΠΊΠ°Π·Π°ΡΡΡΡ ΠΏΠΎΠ»Π΅Π·Π½ΡΠΌ.
Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ Smartmi Evaporative Humidifier 2 CJXJSQ04ZM EU Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ ΡΠ΅ΡΠ΅Π· ΡΡΡ ΠΈΠ½ΡΠ΅Π³ΡΠ°ΡΠΈΡ xiaomi airpurifier
ΠΠΎΠΉ Π²Π°ΡΠΈΠ°Π½Ρ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΠ·Π°ΡΠΈΠΈ ΡΠ°ΠΊΠΎΠΉ. Π― ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡ Π΄Π°ΡΡΠΈΠΊ Π²Π»Π°ΠΆΠ½ΠΎΡΡΠΈ ΠΈ ΡΠΎΠ·Π΄Π°Π» Π²ΡΠΏΠΎΠΌΠΎΠ³Π°ΡΠ΅Π»ΡΠ½ΡΠΉ ΡΠ»Π΅ΠΌΠ΅Π½Ρ ΡΠΈΡΠ»ΠΎ Π΄Π»Ρ ΡΠ΅Π»Π΅Π²ΠΎΠΉ Π²Π»Π°ΠΆΠ½ΠΎΡΡΠΈ. Π‘Π΄Π΅Π»Π°Π» ΡΠ°Π·Π½ΠΈΡΡ ΠΌΠ΅ΠΆΠ΄Ρ Π½ΠΈΠΌΠΈ, ΡΡΠΎΠ±Ρ ΡΠΊΠΎΡΠΎΡΡΡ Π²Π΅Π½ΡΠΈΠ»ΡΡΠΎΡΠ° Π±ΡΠ»Π° Π°Π΄Π°ΠΏΡΠΈΠ²Π½ΠΎΠΉ ΠΈ Π·Π°Π²ΠΈΡΠ΅Π»Π° ΠΎΡ ΡΠ°Π·Π½ΠΈΡΡ ΠΌΠ΅ΠΆΠ΄Ρ Π΄Π°ΡΡΠΈΠΊΠΎΠΌ Π²Π»Π°ΠΆΠ½ΠΎΡΡΠΈ ΠΈ Π²ΡΠΏΠΎΠΌΠΎΠ³Π°ΡΠ΅Π»ΡΠ½ΡΠΌ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠΎΠΌ ΡΠΈΡΠ»ΠΎ. Π’Π°ΠΊΠΈΠΌ ΠΎΠ±ΡΠ°Π·ΠΎΠΌ, Π΅ΡΠ»ΠΈ ΠΊΠΎΠΌΠ½Π°ΡΠ½Π°Ρ Π²Π»Π°ΠΆΠ½ΠΎΡΡΡ ΠΈ ΡΠ΅Π»Π΅Π²Π°Ρ Π²Π»Π°ΠΆΠ½ΠΎΡΡΡ Π±ΡΠ΄Π΅Ρ ΠΈΠΌΠ΅ΡΡ Π±ΠΎΠ»ΡΡΠ΅ ΡΠΊΠ°Π·Π°Π½Π½ΠΎΠ³ΠΎ, ΡΠΎ ΡΠΊΠΎΡΠΎΡΡΡ Π²Π΅Π½ΡΠΈΠ»ΡΡΠΎΡΠ° Π±ΡΠ΄Π΅Ρ Π²ΡΡΠΎΠΊΠΎΠΉ, Π½ΠΎ ΠΏΠΎ ΠΌΠ΅ΡΠ΅ ΡΠΎΠΊΡΠ°ΡΠ΅Π½ΠΈΡ ΡΠ°Π·Π½ΠΈΡΡ ΠΌΠ΅ΠΆΠ΄Ρ Π΄Π°ΡΡΠΈΠΊΠΎΠΌ Π²Π»Π°ΠΆΠ½ΠΎΡΡΠΈ ΠΈ Π²ΡΠΏΠΎΠΌΠΎΠ³Π°ΡΠ΅Π»ΡΠ½ΡΠΌ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠΎΠΌ ΡΠΈΡΠ»ΠΎ, ΡΠΊΠΎΡΠΎΡΡΡ Π²Π΅Π½ΡΠΈΠ»ΡΡΠΎΡΠ° Π±ΡΠ΄Π΅Ρ ΡΠ½ΠΈΠΆΠ°ΡΡΡΡ, Π° ΠΊΠΎΠ³Π΄Π° Π΄ΠΎΡΡΠΈΠ³Π½Π΅Ρ ΡΠΊΠ°Π·Π°Π½Π½ΡΡ Π²Π»Π°ΠΆΠ½ΠΎΡΡΡ, ΡΠΎ ΡΠΊΠΎΡΠΎΡΡΡ Π±ΡΠ΄Π΅Ρ ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΡΠ½ΠΎΠΉ.
Π‘Π΅Π½ΡΠΎΡ
sensor:
- platform: template
sensors:
livingroom_airhumidifier_auto_speed:
friendly_name: "ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ. ΠΠ²ΡΠΎ ΡΠΊΠΎΡΠΎΡΡΡ"
value_template: >
{% set tiv_humidity = states("sensor.livingroom_tiv_humidity") %}
{% set target_humidity = states("input_number.livingroom_humidifier_target_humidity") %}
{% set sum = target_humidity|int - tiv_humidity |int %}
{% if sum < 0 %} Silent
{% elif sum >= 0 and sum < 4.8 %} Silent
{% elif sum > 4.9 and sum < 9.8 %} Medium
{% elif sum > 9.9 %} High
{% endif %}
ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·Π°ΡΠΈΡ
ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·Π°ΡΠΈΡ β1: ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ. ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠ°Ρ ΡΠΊΠΎΡΠΎΡΡΡ Π²Π΅Π½ΡΠΈΠ»ΡΡΠΈΠΈ
alias: 'ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ. ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠ°Ρ ΡΠΊΠΎΡΠΎΡΡΡ Π²Π΅Π½ΡΠΈΠ»ΡΡΠΈΠΈ'
description: >-
Π‘ΠΊΠΎΡΠΎΡΡΡ Π²Π΅Π½ΡΠΈΠ»ΡΡΠΎΡΠ° ΠΎΠΏΡΠ΅Π΄Π΅Π»ΡΠ΅ΡΡΡ ΡΠ°Π·Π½ΠΈΡΠ΅ΠΉ ΠΌΠ΅ΠΆΠ΄Ρ ΡΠ΅Π»Π΅Π²ΠΎΠΉ ΠΈ ΠΊΠΎΠΌΠ½Π°ΡΠ½ΠΎΠΉ
Π²Π»Π°ΠΆΠ½ΠΎΡΡΡΡ
trigger:
- platform: state
entity_id: sensor.livingroom_airhumidifier_auto_speed
id: 'Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ: Π°Π²ΡΠΎ ΡΠΊΠΎΡΠΎΡΡΡ'
- platform: state
entity_id: input_boolean.livingroom_humidifier_auto_power_on_off
from: 'off'
to: 'on'
id: 'Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ: Π°Π²ΡΠΎ ΡΠΊΠΎΡΠΎΡΡΡ Π²ΠΊΠ»ΡΡΠ΅Π½Π°'
- platform: state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
from: 'off'
to: 'on'
id: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ Π²ΠΊΠ»ΡΡΠ΅Π½
condition:
- condition: state
entity_id: input_boolean.livingroom_humidifier_auto_power_on_off
state: 'on'
- condition: state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
state: 'on'
action:
- service: fan.set_preset_mode
target:
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
data:
preset_mode: '{{states("sensor.livingroom_airhumidifier_auto_speed")}}'
mode: single
ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·Π°ΡΠΈΡ β2: ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ. ΠΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΠΈ Π²ΡΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅. ΠΠ²ΡΠΎ
alias: 'ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ. ΠΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΠΈ Π²ΡΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅. ΠΠ²ΡΠΎ'
description: >-
Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ Π±ΡΠ΄Π΅Ρ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈ Π²ΠΊΠ»ΡΡΠ°ΡΡΡΡ ΠΈ Π²ΡΠΊΠ»ΡΡΠ°ΡΡΡΡ. ΠΡΠ»ΠΈ ΡΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ
Π±ΡΠ΄Π΅Ρ Π½ΠΈΠΆΠ΅ 20%, ΡΠΎ ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ Π±ΡΠ΄Π΅Ρ Π²ΡΠΊΠ»ΡΡΠ΅Π½ ΠΈ Π±ΡΠ΄Π΅Ρ ΡΠ²Π΅Π΄ΠΎΠΌΠ»Π΅Π½ΠΈΠ΅ Π² ΡΠ΅Π»Π΅Π³ΡΠ°ΠΌΠΌ
ΠΈ Π² ΠΠ»ΠΈΡΡ
trigger:
- platform: numeric_state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
attribute: water_level
above: '0'
id: 'Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ: Π£ΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ Π½ΠΈΠΆΠ΅ 20'
below: '20'
- platform: numeric_state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
attribute: water_level
id: 'Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ: Π£ΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ Π½ΠΈΠΆΠ΅ 40'
below: '40'
above: '20'
- platform: numeric_state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
attribute: water_level
id: 'Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ: Π£ΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ Π²ΡΡΠ΅ 50'
above: '50'
below: '100'
condition:
- condition: state
entity_id: input_boolean.livingroom_humidifier_auto_power_on_off
state: 'on'
action:
- choose:
- conditions:
- condition: trigger
id: 'Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ: Π£ΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ Π½ΠΈΠΆΠ΅ 40'
- condition: state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
state: 'on'
sequence:
- choose:
- conditions:
- condition: time
after: '10:00'
before: '23:59'
- condition: state
entity_id: input_select.divan_aktivnost
state: ΠΠΎΠΌΠ°
sequence:
- service: script.tts_yandex_station_say
data:
device: media_player.yandex_station_xxxxxxxxxxxxx
volume: 7
message: >-
Π₯ΠΎΠ·ΡΠΈΠ½, Π² ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Π΅ Π·Π°ΠΊΠ°Π½ΡΠΈΠ²Π°Π΅ΡΡΡ Π²ΠΎΠ΄Π°, Π½ΡΠΆΠ½ΠΎ Π΄ΠΎΠ»ΠΈΡΡ
Π²ΠΎΠ΄Ρ
- service: notify.divan
data:
title: '*ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ*'
message: >-
Π₯ΠΎΠ·ΡΠΈΠ½, Π² ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Π΅ Π·Π°ΠΊΠ°Π½ΡΠΈΠ²Π°Π΅ΡΡΡ Π²ΠΎΠ΄Π°, Π½ΡΠΆΠ½ΠΎ Π΄ΠΎΠ»ΠΈΡΡ
Π²ΠΎΠ΄Ρ
- conditions:
- condition: time
after: '00:00'
before: '09:59'
sequence:
- service: notify.divan
data:
title: '*ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ*'
message: >-
Π₯ΠΎΠ·ΡΠΈΠ½, Π² ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Π΅ Π·Π°ΠΊΠ°Π½ΡΠΈΠ²Π°Π΅ΡΡΡ Π²ΠΎΠ΄Π°, Π½ΡΠΆΠ½ΠΎ Π΄ΠΎΠ»ΠΈΡΡ
Π²ΠΎΠ΄Ρ
default: []
- conditions:
- condition: trigger
id: 'Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ: Π£ΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ Π½ΠΈΠΆΠ΅ 20'
- condition: state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
state: 'on'
sequence:
- choose:
- conditions:
- condition: time
after: '10:00'
before: '23:59'
- condition: state
entity_id: input_select.divan_aktivnost
state: ΠΠΎΠΌΠ°
sequence:
- service: script.tts_yandex_station_say
data:
device: media_player.yandex_station_xxxxxxxxxxxxx
volume: 7
message: >-
Π₯ΠΎΠ·ΡΠΈΠ½, Π² ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Π΅ ΡΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ Π½ΠΈΠΆΠ΅ 20 ΠΏΡΠΎΡΠ΅Π½ΡΠΎΠ²,
ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ Π±ΡΠ΄Π΅Ρ Π²ΡΠΊΠ»ΡΡΠ΅Π½
- service: notify.divan
data:
title: '*ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ*'
message: >-
Π₯ΠΎΠ·ΡΠΈΠ½, Π² ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Π΅ ΡΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ Π½ΠΈΠΆΠ΅ 20 ΠΏΡΠΎΡΠ΅Π½ΡΠΎΠ²,
ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ Π±ΡΠ΄Π΅Ρ Π²ΡΠΊΠ»ΡΡΠ΅Π½
- service: fan.turn_off
target:
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
- conditions:
- condition: time
after: '00:00'
before: '09:59'
sequence:
- service: notify.divan
data:
title: '*ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ*'
message: >-
Π₯ΠΎΠ·ΡΠΈΠ½, Π² ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Π΅ ΡΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ Π½ΠΈΠΆΠ΅ 20 ΠΏΡΠΎΡΠ΅Π½ΡΠΎΠ²,
ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ Π±ΡΠ΄Π΅Ρ Π²ΡΠΊΠ»ΡΡΠ΅Π½
- service: fan.turn_off
target:
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
- conditions:
- condition: state
entity_id: input_select.divan_aktivnost
state: ΠΠ΅ Π΄ΠΎΠΌΠ°
sequence:
- service: notify.divan
data:
title: '*ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ*'
message: >-
Π₯ΠΎΠ·ΡΠΈΠ½, Π² ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Π΅ ΡΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ Π½ΠΈΠΆΠ΅ 20 ΠΏΡΠΎΡΠ΅Π½ΡΠΎΠ²,
ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ Π±ΡΠ΄Π΅Ρ Π²ΡΠΊΠ»ΡΡΠ΅Π½
- service: fan.turn_off
target:
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
default: []
- conditions:
- condition: trigger
id: 'Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ: Π£ΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ Π²ΡΡΠ΅ 50'
- condition: state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
state: 'off'
sequence:
- service: fan.turn_on
target:
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
- service: notify.divan
data:
title: '*ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ*'
message: Π₯ΠΎΠ·ΡΠΈΠ½, ΡΠΏΠ°ΡΠΈΠ±ΠΎ, ΡΡΠΎ Π½Π°Π»ΠΈΠ»ΠΈ Π²ΠΎΠ΄Ρ, ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ Π±ΡΠ΄Π΅Ρ Π²ΠΊΠ»ΡΡΠ΅Π½
default: []
mode: single
ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·Π°ΡΠΈΡ β3: ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ. ΠΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΠΈ Π²ΡΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅. ΠΠΊΠ½Π°
alias: 'ΠΠΎΡΡΠΈΠ½Π°Ρ: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ. ΠΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΠΈ Π²ΡΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅. ΠΠΊΠ½Π°'
description: >-
ΠΡΠ»ΠΈ ΠΎΡΠΊΡΠΎΠ΅ΠΌ ΠΎΠΊΠ½ΠΎ ΠΈ Π² ΡΡΠΎ Π²ΡΠ΅ΠΌΡ ΡΠ°Π±ΠΎΡΠ°Π΅Ρ ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ, ΡΠΎ ΡΠΎΡΡΠΎΡΠ½ΠΈΠ΅ ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ
Π±ΡΠ΄Π΅Ρ ΡΠΎΡ
ΡΠ°Π½Π΅Π½ΠΎ Π² ΠΈΡΡΠΎΡΠΈΡ ΠΈ ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ Π±ΡΠ΄Π΅Ρ Π²ΡΠΊΠ»ΡΡΠ΅Π½. ΠΠΎΠ³Π΄Π° Π·Π°ΠΊΡΠΎΠ΅ΠΌ ΠΎΠΊΠ½Π°, ΡΠΎ
ΡΠ²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ Π±ΡΠ΄Π΅Ρ Π²ΠΊΠ»ΡΡΠ΅Π½ ΠΈΠ»ΠΈ Π½Π΅ Π²ΠΊΠ»ΡΡΠΈΡΡΡ, Π²ΡΠ΅ Π·Π°Π²ΠΈΡΠΈΡ ΠΎΡ ΠΈΡΡΠΎΡΠΈΠΈ
trigger:
- platform: state
entity_id: group.livingroom_all_windows
from: 'off'
to: 'on'
id: 'ΠΠΎΡΡΠΈΠ½Π°Ρ: ΠΎΠΊΠ½Π° ΠΎΡΠΊΡΡΡΡ'
for:
hours: 0
minutes: 5
seconds: 0
- platform: state
entity_id: group.livingroom_all_windows
from: 'on'
to: 'off'
id: 'ΠΠΎΡΡΠΈΠ½Π°Ρ: ΠΎΠΊΠ½Π° Π·Π°ΠΊΡΡΡΡ'
for:
hours: 0
minutes: 0
seconds: 30
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: 'ΠΠΎΡΡΠΈΠ½Π°Ρ: ΠΎΠΊΠ½Π° ΠΎΡΠΊΡΡΡΡ'
sequence:
- service: scene.create
data:
snapshot_entities:
- fan.gostinaia_uvlazhnitel_xiaomi_evaporative
scene_id: humidifier_livingroom_all_windows_history
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: fan.turn_off
target:
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
- conditions:
- condition: trigger
id: 'ΠΠΎΡΡΠΈΠ½Π°Ρ: ΠΎΠΊΠ½Π° Π·Π°ΠΊΡΡΡΡ'
- condition: state
entity_id: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
state: 'off'
sequence:
- scene: scene.humidifier_livingroom_all_windows_history
default: []
mode: single
Lovelace
ΠΠ»Ρ ΡΠΎΠ·Π΄Π°Π½ΠΈΡ Π΄Π°Π½Π½ΠΎΠΉ ΠΊΠ°ΡΡΠΎΡΠΊΠΈ, Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π» ΠΈΠ½ΡΠ΅Π³ΡΠ°ΡΠΈΡ multiple entity row ΠΈ Π³ΡΡΠΏΠΏΡ
type: entities
entities:
- entity: fan.gostinaia_uvlazhnitel_xiaomi_evaporative
type: custom:multiple-entity-row
name: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ
toggle: false
state_color: true
show_state: false
secondary_info:
attribute: water_level
name: Π£ΡΠΎΠ²Π΅Π½Ρ Π²ΠΎΠ΄Ρ
unit: '%'
entities:
- entity: group.livingroom_airhumidifier_info_and_menu
name: ΠΠ΅Π½Ρ
state_color: true
icon: mdi:information-outline
styles:
width: 40px
- entity: sensor.gostinaia_tiv_humidity
name: ΠΠ»Π°ΠΆΠ½ΠΎΡΡΡ
unit: '%'
styles:
width: 55px
- entity: sensor.livingroom_airhumidifier_speed
secondary_info: false
name: Π‘ΠΊΠΎΡΠΎΡΡΡ
styles:
width: 55px
- entity: input_boolean.livingroom_humidifier_auto_power_on_off
name: ΠΠ²ΡΠΎ
toggle: true
state_color: true
styles:
width: 55px
- type: section
title: Π£Π²Π»Π°ΠΆΠ½ΠΈΡΠ΅Π»Ρ