мне кажется проблема вот тут - platform: template
sensors:
# 01
smartmi_humidifier_01_temperature:
friendly_name: "Температура"
value_template: >
{{ state_attr('fan.xiaomi_miio_device', 'temperature') | float }}
unit_of_measurement: °C
device_class: temperature
smartmi_humidifier_01_humidity:
friendly_name: "Влажность"
value_template: >
{{ state_attr('fan.xiaomi_miio_device', 'humidity') | int }}
unit_of_measurement: "%"
device_class: humidity
smartmi_humidifier_01_water_level:
friendly_name: "Остаток воды"
value_template: >
{% if state_attr('fan.xiaomi_humidifier', 'depth') %}
{{ ((state_attr('fan.xiaomi_humidifier', 'depth') | float ) * 100.0 / 125.0) | round(0) }}
{% else %}
0
{% endif %}
unit_of_measurement: "%"
icon_template: >-
{% if ((state_attr('fan.xiaomi_humidifier', 'depth') | float ) * 100.0 / 125.0) | round(0) >= 10 %}
mdi:cup-water
{% else %}
mdi:cup-off-outline
{% endif %}
smartmi_humidifier_01_speed:
friendly_name: "Скорость работы"
value_template: >
{% if state_attr('fan.xiaomi_humidifier', 'speed') %}
{{ state_attr('fan.xiaomi_humidifier', 'speed') }}
{% else %}
off
{% endif %} что тут видимо не нравиться моему увлажнителю. их много выпустили с небольшими отличиями команд. я брал это у нашего сочатовца. но уже третий час не пойму что не нравиться. работает только кнопка вкл\выкл.