georgezhao2010 / midea_ac_lan

Auto-configure and then control your Midea M-Smart devices (Air conditioner, Fan, Water heater, Washer, etc) via local area network.
MIT License
1.37k stars 231 forks source link

Midea Dehumidifier Tank status is not updated #341

Open lutzr400 opened 1 year ago

lutzr400 commented 1 year ago

HA core version

2023.9.3

Intergration version

0.3.21

Device type and model

Dehumidifier 00000Q17

Used App

MSmarthome

The description of problem

Hi, By my dehumidfier the tank status is not updated since i've tested something with the developer tools. Deleted the Entity, Integration, i dont have any idea anymore. On the Logs i see a error: Unknown error :/config/custom_components/midea_ac_lan/midea/core/device.py, 349, AttributeError("'NoneType' object has no attribute 'recv'") On the another logs from the integration is nothing about the tank_full Sensor. thank you. br. Roman

The logs

2023-10-04 17:32:44.499 ERROR (Keller Alt Luft) [custom_components.midea_ac_lan.midea.core.device] [153931628052962] Unknown error :/config/custom_components/midea_ac_lan/midea/core/device.py, 349, AttributeError("'NoneType' object has no attribute 'recv'") 2023-10-04 17:33:35.406 DEBUG (Keller Alt Luft) [custom_components.midea_ac_lan.midea.core.device] [153931628052962] Sending: {'header': 'x000000003', 'body': '418100ff000000000000000000000000000000001557', 'message type': '03', 'body type': '41'} 2023-10-04 17:33:35.622 DEBUG (Keller Alt Luft) [custom_components.midea_ac_lan.midea.devices.xx.device] [153931628052962] Received: {'header': 'x00000000000303', 'body': 'c80102507f7f003c00000000000000003d580000000015fa', 'message type': '03', 'body type': 'c8'} 2023-10-04 17:33:35.623 DEBUG (Keller Alt Luft) [custom_components.midea_ac_lan.midea.core.device] [153931628052962] Status update: {'power': True, 'child_lock': False, 'mode': 'Continuous', 'fan_speed': 'High', 'swing': False, 'target_humidity': 60, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 61, 'current_temperature': 19.0} 2023-10-04 17:33:38.240 DEBUG (Keller Alt Luft) [custom_components.midea_ac_lan.midea.devices.xx.device] [153931628052962] Received: {'header': 'x00000000000305', 'body': 'a00102507f7f003c00006400000000003d580000002615c8', 'message type': '05', 'body type': 'a0'} 2023-10-04 17:33:38.241 DEBUG (Keller Alt Luft) [custom_components.midea_ac_lan.midea.core.device] [153931628052962] Status update: {'power': True, 'child_lock': False, 'mode': 'Continuous', 'fan_speed': 'High', 'swing': False, 'target_humidity': 60, 'anion': False, 'tank': 100, 'water_level_set': '0', 'current_humidity': 61, 'current_temperature': 19.0} 2023-10-04 17:33:46.254 DEBUG (Keller Alt Luft) [custom_components.midea_ac_lan.midea.core.device] [153931628052962] Sending: {'header': 'x00000000000003', 'body': '418100ff0000000000000000000000000000000016b5', 'message type': '03', 'body type': '41'}

georgezhao2010 commented 1 year ago

The description of problem

Hi, By my dehumidfier the tank status is not updated since i've tested something with the developer tools. Deleted the Entity, Integration, i dont have any idea anymore. On the Logs i see a error: Unknown error :/config/custom_components/midea_ac_lan/midea/core/device.py, 349, AttributeError("'NoneType' object has no attribute 'recv'") On the another logs from the integration is nothing about the tank_full Sensor. thank you. br. Roman

Why is the ‘water_level_set’ value 0? Did you set it this?

lutzr400 commented 1 year ago

No, i dont activated the entity... Should i change the state on the developer tools...?

georgezhao2010 commented 1 year ago

No, i dont activated the entity... Should i change the state on the developer tools...?

Your dehumidifier is passing this value, and I don’t know why it has been set to 0. Maybe you should set it to a valid value in HA or the App.

lutzr400 commented 1 year ago

I've changed the water_level_set to 100 and restarted HA, the value is changed back again to 0. Do you have another good idea, or which logs do you need?

georgezhao2010 commented 1 year ago

I've changed the water_level_set to 100 and restarted HA, the value is changed back again to 0. Do you have another good idea, or which logs do you need?

Try the service midea_ac_lan.set_attribute https://github.com/georgezhao2010/midea_ac_lan/blob/master/doc/A1.md#midea_ac_lanset_attribute

Or you could activate the entity water_level_set and use it to set the value.

lutzr400 commented 12 months ago

i've checked the entities and found a new entity "tank" it goes on 100 when it's full. But the binary sensor for _tank_full is damaged, look this binary sensor on the entity tank?

georgezhao2010 commented 12 months ago

i've checked the entities and found a new entity "tank" it goes on 100 when it's full. But the binary sensor for _tank_full is damaged, look this binary sensor on the entity tank?

Could you remove the device and re-config it? If issue still remains, it could be that there is an issue with your device’s parameters. You may want to try contacting the supports of your device.

sanderlv commented 9 months ago

Hi there, I recently changed from my old integration (https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan) to this one.

Before my "tank" sensor always worked as I used it and it gave me always correct readings.

But this integration does not give me correct reading. The entity starts not correct: image

I use the bottom sensor and it is called: binary_sensor.number_tank_full

status is always "problem" (on). image

I have 2 comfee dehumidifiers and they work correctly with this integration but the tank status...

Please advise...