syssi / xiaomi_airpurifier

Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier integration for Home Assistant
Apache License 2.0
452 stars 111 forks source link

Switch attribute "no_water" to true if no more water in the tank (Deerma.humidifier.jsq5) #329

Closed saschachina closed 2 months ago

saschachina commented 1 year ago

Problem: The humidifier switches off when there is no more water in the tank, but the state of the attribute no_water remains false! The attribute no_water changes to true the next time the humidifier is turned on, I have observed that the humidifier tries to turn on a few times and then realizes that there is no more water in the tank.

Request: The humidifier switches the attribute no_water to truewhen there is no more water in the tank and not when it is switched on again.

Configuration:

fan:
  - platform: xiaomi_miio_airpurifier
    name: Luftbefeuchter
    host: !secret host_humidifier
    token: !secret deerma.humidifier
    model: deerma.humidifier.jsq5

Statusattribute:

preset_modes:
  - Low
  - Mid
  - High
  - Auto
preset_mode: null
model: deerma.humidifier.jsq5
temperature: 23
humidity: 43
mode: 3
buzzer: false
target_humidity: 60
led: false
no_water: false
water_tank_detached: false
friendly_name: Luftbefeuchter
supported_features: 8

System:

Home Assistant 2023.3.0
Supervisor 2023.01.1
Operating System 9.5
Frontend 20230301.0 - latest
syssi commented 1 year ago

I fear this is a firmware issue of the device. This custom component exposes the data of the air purifier 1:1. You could increase the log level to see the raw traffic at the log. I could provide some interpretation of the raw traffic if you like but it will probably not solve your the issue.

saschachina commented 1 year ago

Thank you for the quick response, maybe it's better to inform the support of Xioami about it first, I don't have high hopes but it's worth a try.

saschachina commented 1 year ago

I fear this is a firmware issue of the device. This custom component exposes the data of the air purifier 1:1. You could increase the log level to see the raw traffic at the log. I could provide some interpretation of the raw traffic if you like but it will probably not solve your the issue.

Hi and happy easter! Could you tell me where i can find the logs for your integration?

Im not sure if its right, i put in the configuration.yaml

custom_components.xiaomi_miio_airpurifier: debug