al-one / hass-xiaomi-miot

Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices. 小米米家智能家居设备接入Hass集成
https://miot-spec.com
Apache License 2.0
4.49k stars 632 forks source link

Water level missing xiaomi.humidifier.airmx #1363

Open jahnkenneth opened 11 months ago

jahnkenneth commented 11 months ago

Device model / 设备型号

xiaomi.humidifier.airmx

Component version / 插件版本

0.7.13

HA core version / HA版本

2023.10.3

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

Water level not showing

Entity attributes / 实体属性

IMG_3622

Home Assistant Logs / 系统日志

jahnkenneth commented 11 months ago

@al-one Help please? Will gladly make a donation for a reply. :-)

ABUAIJUTIE commented 11 months ago

The water-level attribute should be contained in the first entity in your screenshot. It's not an individual entity. If you are planing to set up an alert automation, you can access it through attributes selection. If you need to make it an entity so you can manage it on a lovelace dashboard, you should try template sensor.

jahnkenneth commented 11 months ago

@ABUAIJUTIE Thanks. :-) Got it. However, the value is not correct. image image

Also the "clean" function does not work. It just reverts back to "constant humidity" after a few seconds... image

ABUAIJUTIE commented 11 months ago

Incorrect values may caused by delay of getting refresh from cloud. About Clean mode problem, I don't own this device though.😂 Some logs will help.

jahnkenneth commented 11 months ago

Incorrect values may caused by delay of getting refresh from cloud.

About Clean mode problem, I don't own this device though.😂 Some logs will help.

@ABUAIJUTIE Sure. This happens when selecting "clean mode":

Logger: miio.integrations.humidifier.zhimi.airhumidifier_miot Source: /usr/local/lib/python3.11/site-packages/miio/integrations/humidifier/zhimi/airhumidifier_miot.py:124 First occurred: 15:03:16 (443 occurrences) Last logged: 16:53:53

Cannot parse mode: None is not a valid OperationMode Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/miio/integrations/humidifier/zhimi/airhumidifier_miot.py", line 122, in mode mode = OperationMode(self.data["mode"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/enum.py", line 712, in call return cls.new(cls, value) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/enum.py", line 1128, in new raise ve_exc ValueError: None is not a valid OperationMode

Logger: miio.miot_device Source: /usr/local/lib/python3.11/site-packages/miio/miot_device.py:172 First occurred: 15:03:16 (443 occurrences) Last logged: 16:53:53

Unable to find mapping for xiaomi.humidifier.airmx, falling back to zhimi.humidifier.ca4

This happens when selecting "Descale mode:

Logger: miio.miot_device Source: /usr/local/lib/python3.11/site-packages/miio/miot_device.py:172 First occurred: 15:03:16 (457 occurrences) Last logged: 16:57:23

Unable to find mapping for xiaomi.humidifier.airmx, falling back to zhimi.humidifier.ca4

Logger: miio.integrations.humidifier.zhimi.airhumidifier_miot Source: /usr/local/lib/python3.11/site-packages/miio/integrations/humidifier/zhimi/airhumidifier_miot.py:124 First occurred: 15:03:16 (457 occurrences) Last logged: 16:57:23

Cannot parse mode: None is not a valid OperationMode Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/miio/integrations/humidifier/zhimi/airhumidifier_miot.py", line 122, in mode mode = OperationMode(self.data["mode"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/enum.py", line 712, in call return cls.new(cls, value) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/enum.py", line 1128, in new raise ve_exc ValueError: None is not a valid OperationMode