wuwentao / 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
291 stars 14 forks source link

Dehumidifier tank status unknown #235

Open Vetti52 opened 3 months ago

Vetti52 commented 3 months ago

HA core version

2024.2.2

Current integration version

0.5.3

Last known working integration version

None

Device type and model

Dehumidifier 00000Q1A (161)

Working mobile app

Home Assistant

The description of problem

When looking into binary_sensor.DEVICE-ID_tank_full, I always see status „problem“, when the tank is full or „unknown“, when the tank is empty. Anyway, the status remained as „problem“ in both cases. Therefore I currently ignore this binary sensor and use sensor.DEVICE-ID_tank instead, which gives at least 0%, or 100%, when full. This was already the case, when I used the version of georgezhao. But, as I now realized, that you indeed continue to maintain this integration, I decided to mention it. Maybe, you will have a look at it. Thanks.

The logs

Nothing to debug, no logs written

chemelli74 commented 3 months ago

@Vetti52 thank you for reporting. Can you please join HomeAssistant on Discord and then contact me: chemelli74#2180

wuwentao commented 1 month ago

just checked with the A1 device source code, tank_full result should based on tank and water_level_set, if you tank works well and water_level_set also works well, it should be works.

so why you not add any debug log for it? please enable debug log based on README and attach the detail debug log. thanks!

Vetti52 commented 1 month ago

Here are the two Debugger files: The first one is with dehumidifier powered, the second is with power plug switched off. HTH

Hello World @.***> schrieb am Mo., 19. Aug. 2024, 11:52:

just checked with the A1 device source code, tank_full result should based on tank and water_level_set, if you tank works well and water_level_set also works well, it should be works.

so why you not add any debug log for it? please enable debug log based on README and attach the detail debug log. thanks!

— Reply to this email directly, view it on GitHub https://github.com/wuwentao/midea_ac_lan/issues/235#issuecomment-2296153189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI35VLH66VOPP5WV3UTE4L3ZSG57XAVCNFSM6AAAAABK2IMFFWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJWGE2TGMJYHE . You are receiving this because you were mentioned.Message ID: @.***>

2024-08-20 18:00:10.290 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-08-20 18:00:10.292 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration midea_ac_lan which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-08-20 18:00:19.193 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request resp = await request_handler(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in _handle resp = await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 91, in security_filter_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 235, in auth_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware response = await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 149, in handle result = await handler(request, **request.match_info) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 51, in get return await WebSocketHandler(request.app["hass"], request).async_handle() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 284, in async_handle await wsock.prepare(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_ws.py", line 152, in prepare payload_writer = await super().prepare(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/web_response.py", line 415, in prepare return await self._start(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/web_response.py", line 423, in _start await self._write_headers() File "/usr/local/lib/python3.12/site-packages/aiohttp/web_response.py", line 503, in _write_headers await writer.write_headers(status_line, self._headers) File "/usr/local/lib/python3.12/site-packages/aiohttp/http_writer.py", line 130, in write_headers self._write(buf) File "/usr/local/lib/python3.12/site-packages/aiohttp/http_writer.py", line 75, in _write raise ConnectionResetError("Cannot write to closing transport") ConnectionResetError: Cannot write to closing transport 2024-08-20 18:00:20.669 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Connecting to 192.168.100.108:6444 2024-08-20 18:00:20.675 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Connected 2024-08-20 18:00:20.676 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Enabling device 2024-08-20 18:00:20.676 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Status update: {'available': True} 2024-08-20 18:00:20.676 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Authentication handshaking 2024-08-20 18:00:20.989 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Authentication success 2024-08-20 18:00:20.990 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Sending: {'header': 'aa1da1000000000000a0', 'body': '00000000000000000000000000000000000000', 'message type': '.a0', 'body type': '.00'} 2024-08-20 18:00:22.041 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Received: {'header': 'aa1da1000000000000a0', 'body': '00a1a1a1000000000000000000000000000000', 'message type': '.a0', 'body type': '.00'} 2024-08-20 18:00:22.042 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Device protocol version: 0 2024-08-20 18:00:22.042 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Sending: {'header': 'aa20a100000000000003', 'body': '418100ff0000000000000000000000000000000001ab', 'message type': '.03', 'body type': '.41'} 2024-08-20 18:00:22.154 DEBUG (Luftentfeuchter) [midealocal.devices.a1] [142936511674070] Received: {'header': 'aa22a100000000000303', 'body': 'c800033c7f7f003700000000000000005a58000000000128', 'message type': '.03', 'body type': '.c8'} 2024-08-20 18:00:22.154 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: None, water_level: 50, tank_full_calculated: False 2024-08-20 18:00:22.154 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'tank_full': False, 'power': False}, tank_full: False 2024-08-20 18:00:22.154 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 50, tank_full_calculated: False 2024-08-20 18:00:22.154 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'tank_full': False, 'power': False, 'child_lock': False}, tank_full: False 2024-08-20 18:00:22.155 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 50, tank_full_calculated: False 2024-08-20 18:00:22.155 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'tank_full': False, 'power': False, 'child_lock': False, 'mode': 'Auto'}, tank_full: False 2024-08-20 18:00:22.155 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 50, tank_full_calculated: False 2024-08-20 18:00:22.155 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'tank_full': False, 'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium'}, tank_full: False 2024-08-20 18:00:22.155 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 50, tank_full_calculated: False 2024-08-20 18:00:22.155 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'tank_full': False, 'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False}, tank_full: False 2024-08-20 18:00:22.155 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 50, tank_full_calculated: False 2024-08-20 18:00:22.155 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'tank_full': False, 'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55}, tank_full: False 2024-08-20 18:00:22.155 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 50, tank_full_calculated: False 2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'tank_full': False, 'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False}, tank_full: False 2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 50, tank_full_calculated: False 2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'tank_full': False, 'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0}, tank_full: False 2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'tank_full': False, 'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0'}, tank_full: False 2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'tank_full': False, 'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 90}, tank_full: False 2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'tank_full': False, 'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 90, 'current_temperature': 19.0}, tank_full: False 2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Status update: {'tank_full': False, 'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 90, 'current_temperature': 19.0} 2024-08-20 18:00:28.852 WARNING (MainThread) [homeassistant.components.energy.sensor] Found unexpected state_class None for sensor.tasmota_sml_total_kwh 2024-08-20 18:00:53.055 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Sending: {'header': 'aa20a100000000000303', 'body': '418100ff000000000000000000000000000000000249', 'message type': '.03', 'body type': '.41'} 2024-08-20 18:00:53.168 DEBUG (Luftentfeuchter) [midealocal.devices.a1] [142936511674070] Received: {'header': 'aa22a100000000000303', 'body': 'c800033c7f7f003700000000000000005a580000000002ca', 'message type': '.03', 'body type': '.c8'} 2024-08-20 18:00:53.169 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:53.169 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False}, tank_full: False 2024-08-20 18:00:53.169 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:53.169 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False}, tank_full: False 2024-08-20 18:00:53.169 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:53.169 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto'}, tank_full: False 2024-08-20 18:00:53.169 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:53.170 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium'}, tank_full: False 2024-08-20 18:00:53.170 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:53.170 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False}, tank_full: False 2024-08-20 18:00:53.170 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:53.170 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55}, tank_full: False 2024-08-20 18:00:53.170 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:53.170 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False}, tank_full: False 2024-08-20 18:00:53.170 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:53.170 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0}, tank_full: False 2024-08-20 18:00:53.170 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:53.171 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0'}, tank_full: False 2024-08-20 18:00:53.171 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:53.171 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 90}, tank_full: False 2024-08-20 18:00:53.171 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:00:53.171 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 90, 'current_temperature': 19.0}, tank_full: False 2024-08-20 18:00:53.171 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Status update: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 90, 'current_temperature': 19.0} 2024-08-20 18:01:23.219 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Sending: {'header': 'aa20a100000000000303', 'body': '418100ff000000000000000000000000000000000317', 'message type': '.03', 'body type': '.41'} 2024-08-20 18:01:23.323 DEBUG (Luftentfeuchter) [midealocal.devices.a1] [142936511674070] Received: {'header': 'aa22a100000000000303', 'body': 'c800033c7f7f003700000000000000005a58000000000394', 'message type': '.03', 'body type': '.c8'} 2024-08-20 18:01:23.323 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:23.323 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False}, tank_full: False 2024-08-20 18:01:23.323 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:23.323 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False}, tank_full: False 2024-08-20 18:01:23.323 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:23.324 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto'}, tank_full: False 2024-08-20 18:01:23.324 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:23.324 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium'}, tank_full: False 2024-08-20 18:01:23.324 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:23.324 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False}, tank_full: False 2024-08-20 18:01:23.324 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:23.324 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55}, tank_full: False 2024-08-20 18:01:23.324 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:23.324 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False}, tank_full: False 2024-08-20 18:01:23.324 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:23.325 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0}, tank_full: False 2024-08-20 18:01:23.325 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:23.325 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0'}, tank_full: False 2024-08-20 18:01:23.325 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:23.325 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 90}, tank_full: False 2024-08-20 18:01:23.325 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:23.325 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 90, 'current_temperature': 19.0}, tank_full: False 2024-08-20 18:01:23.325 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Status update: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 90, 'current_temperature': 19.0} 2024-08-20 18:01:53.378 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Sending: {'header': 'aa20a100000000000303', 'body': '418100ff000000000000000000000000000000000494', 'message type': '.03', 'body type': '.41'} 2024-08-20 18:01:53.487 DEBUG (Luftentfeuchter) [midealocal.devices.a1] [142936511674070] Received: {'header': 'aa22a100000000000303', 'body': 'c800033c7f7f003700000000000000005a58000000000417', 'message type': '.03', 'body type': '.c8'} 2024-08-20 18:01:53.487 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:53.487 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False}, tank_full: False 2024-08-20 18:01:53.487 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:53.487 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False}, tank_full: False 2024-08-20 18:01:53.487 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:53.487 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto'}, tank_full: False 2024-08-20 18:01:53.488 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:53.488 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium'}, tank_full: False 2024-08-20 18:01:53.488 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:53.488 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False}, tank_full: False 2024-08-20 18:01:53.488 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:53.488 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55}, tank_full: False 2024-08-20 18:01:53.488 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:53.488 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False}, tank_full: False 2024-08-20 18:01:53.488 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:53.488 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0}, tank_full: False 2024-08-20 18:01:53.489 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:53.489 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0'}, tank_full: False 2024-08-20 18:01:53.489 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:53.489 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 90}, tank_full: False 2024-08-20 18:01:53.489 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False, water_level: 0, tank_full_calculated: False 2024-08-20 18:01:53.489 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 90, 'current_temperature': 19.0}, tank_full: False 2024-08-20 18:01:53.489 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Status update: {'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '0', 'current_humidity': 90, 'current_temperature': 19.0}

2024-08-20 18:10:19.513 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-08-20 18:10:19.515 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration midea_ac_lan which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-08-20 18:10:30.192 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Connecting to 192.168.100.108:6444 2024-08-20 18:10:33.246 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Connection error 2024-08-20 18:10:33.250 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Connecting to 192.168.100.108:6444 2024-08-20 18:10:36.316 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Connection error 2024-08-20 18:10:36.317 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Connecting to 192.168.100.108:6444 2024-08-20 18:10:38.327 WARNING (MainThread) [homeassistant.components.energy.sensor] Found unexpected state_class None for sensor.tasmota_sml_total_kwh 2024-08-20 18:10:39.388 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Connection error 2024-08-20 18:10:39.388 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Enabling device 2024-08-20 18:10:39.388 DEBUG (Luftentfeuchter) [midealocal.device] [142936511674070] Status update: {'available': False} 2024-08-20 18:10:39.391 ERROR (Luftentfeuchter) [root] Uncaught thread exception Traceback (most recent call last): File "/usr/local/lib/python3.12/threading.py", line 1073, in _bootstrap_inner self.run() File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 515, in run raise CannotConnect midealocal.exceptions.CannotConnect

chemelli74 commented 1 month ago

Always attach logs and not paste the content otherwise it's hard to read them

wuwentao commented 1 month ago

thanks , please upload the log as file to current issue in future and not paste it.

in fact, just checked with your paste log line by line, I found your tank result is always 0.

and in this time, you may change the water_level from default 50% to 0, I'm not sure the reason, you have manual changed it ? the log and time as your log:

2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 50, tank_full_calculated: False
2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device after - new_status: {'tank_full': False, 'power': False, 'child_lock': False, 'mode': 'Auto', 'fan_speed': 'Medium', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0}, tank_full: False
2024-08-20 18:00:22.156 DEBUG (Luftentfeuchter) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 0, tank_full_calculated: False

after find out the water_level changed reason, we still need to check your tank value, as it always 0. you should provide both log file to use:

wuwentao commented 1 month ago

@Vetti52 any updates for this issue and debug log file ? or you can directly provide us your device SN?

Vetti52 commented 3 weeks ago

Sorry, I did not follow this issue, because I was in contact with @chemelli74 at Discord, where he provided a solution for this issue. This solution seems to be included in the latest update. At least, the solution still works after updating to v0.5.7

wuwentao commented 3 weeks ago

@Vetti52 thanks, so we can consider there is no error exist with the latest version v0.5.7? if yes, we will close this issue

chemelli74 commented 1 week ago

@Vetti52 please test with current version, v0.6.1, and report back. If still experiencing an issue, attach fresh debug log.

Vetti52 commented 6 days ago

Hi! I will test it, when i am back next week. What delay will you expect between powering on/off and HA reporting connect/disconnect?

Simone Chemelli @.***> schrieb am So., 6. Okt. 2024, 18:59:

@Vetti52 https://github.com/Vetti52 please test with current version, v0.6.1, and report back. If still experiencing an issue, attach fresh debug log.

— Reply to this email directly, view it on GitHub https://github.com/wuwentao/midea_ac_lan/issues/235#issuecomment-2395508370, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI35VLBCY2PF6SE36Z4B6TTZ2FT7NAVCNFSM6AAAAABK2IMFFWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGUYDQMZXGA . You are receiving this because you were mentioned.Message ID: @.***>