barban-dev / homeassistant-midea-dehumidifier

Home Assistant Custom Integration for EVA II PRO WiFi Smart Dehumidifier appliance by Midea/Inventor.
GNU General Public License v3.0
83 stars 28 forks source link

Water tank full status missing #78

Open domerich opened 2 months ago

domerich commented 2 months ago

Hello only in the app I can see this message, is it possible to bring it to HA?

IMG_5262

domerich commented 2 months ago

so I was checking the log, it seems it is there but how to extract it?

According to chatgpt:

It looks like you have a midea_dehumidifier custom component already running successfully, as evidenced by the debug logs you've shared. Here are some key points related to the dehumidifier component based on your logs:

Dehumidifier Status:

Power Mode: The dehumidifier is currently off (powerMode=0).
Mode: It is set to mode 1 (likely "Target humidity" mode).
Filter Status: The filter doesn't need attention (Filter=False).
Water Tank: The water tank is not full (Water tank=False).
Current Humidity: The current humidity is 68%.
Wind Speed: Fan speed is set to 40%.
Set Humidity: Target humidity is set to 50%.
domerich commented 2 months ago

I tried to integrate it with chat gpt, it is not part of the integration but seems to work:

 - platform: template
    sensors:
      midea_current_humidity:
        friendly_name: "midea_current_humidity"
        value_template: "{{ state_attr('humidifier.midea_dehumidifier_17592186107519', 'current_humidity') }}"
        unit_of_measurement: "%"
      midea_target_humidity:
        friendly_name: "midea_target_humidity"
        value_template: "{{ state_attr('humidifier.midea_dehumidifier_17592186107519', 'humidity') }}"
        unit_of_measurement: "%"
      midea_water_tank_status:
        friendly_name: "midea_water_tank_status"
        value_template: >
          {% if state_attr('humidifier.midea_dehumidifier_17592186107519', 'tank_show') %}
            Full
          {% else %}
            Empty
          {% endif %}
      midea_filter_status:
        friendly_name: "midea_filter_status"
        value_template: >
          {% if state_attr('humidifier.midea_dehumidifier_17592186107519', 'Filter') %}
            Needs Cleaning
          {% else %}
            Clean
          {% endif %}
domerich commented 2 months ago

OK this works. WhatsApp Image 2024-09-24 at 20 49 33