Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect #276

Open
Vetti52 opened this issue Aug 13, 2024 · 16 comments
Open

Cannot connect #276

Vetti52 opened this issue Aug 13, 2024 · 16 comments
Labels
bug Something isn't working midea-local library Issue/enanchement in midea-local library

Comments

@Vetti52
Copy link

Vetti52 commented Aug 13, 2024

HA core version

2024.2.2

Current integration version

0.5.5

Last known working integration version

0.5.3

Device type and model

Dehumidifier 00000Q1A (161)

Working mobile app

Home Assisstant

The description of problem

When unpowering the dehumidifier (e.g. by a switching plug), the connection to HA is lost and will not reconnect, when power is established again.

The logs

[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-11 06:30:27.100 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

@Vetti52 Vetti52 added the bug Something isn't working label Aug 13, 2024
@chemelli74
Copy link
Collaborator

Thx for opening this issue.

As discussed via Discord, we will reap this and add a ConfigNotReady to make the integration retry in background.

@mag1024
Copy link

mag1024 commented Aug 16, 2024

This is still happening with 0.5.7.
The last version that worked reliably was 0.5.4

@Vetti52
Copy link
Author

Vetti52 commented Aug 16, 2024

Same with version 0.5.7.

2024-08-16 10:40:27.677 WARNING (SyncWorker_4) [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-16 10:40:27.679 WARNING (SyncWorker_4) [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-16 10:41:24.188 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

Last known version, that worked, was 0.5.3

@chemelli74
Copy link
Collaborator

Will fix it in the correct and final way more or less in the end of August when I'm back from my vacations

@grigi
Copy link

grigi commented Aug 25, 2024

I have the exact same issue. downgrading to 0.5.3 fixed everything for me again.

@chemelli74
Copy link
Collaborator

Please enable Debug for Midea AC Lan integration, wait for this error, disable debug and attach the log.

Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.

Thanks

@lyfqdl
Copy link

lyfqdl commented Aug 30, 2024

同样的问题。路由器重启后,设备实体不可用,除非手动重新加载。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Same problem. After a router reboot, the device entity is unavailable unless manually reloaded.

@chemelli74
Copy link
Collaborator

Please don't comment same problem, instead provide required log

@mag1024
Copy link

mag1024 commented Aug 30, 2024

I think it's an issue with the midealocal library.
It does a thread start in device.open here, but if the connection fails, the thrown CannotConnect is never caught, causing the thread to exit, and the device to be left in an unconnected state.

This is the buggy commit. Previously it was sleeping/retrying, now it is throwing, not catching, and causing the connection thread to bail.

@chemelli74
Copy link
Collaborator

Guys, if you want a fix attach debug log.

@lo00l
Copy link

lo00l commented Sep 4, 2024

Faced the same problem. Here is my debug log

2024-09-03 23:58:19.435 DEBUG (Office AC) [midealocal.device] [152832116825447] Sending: {'header': 'aa20ac00000000000303', 'body': '418100ff00000000000000000000000000000000294a', 'message type': '.03', 'body type': '.41'}
2024-09-03 23:58:19.436 DEBUG (Office AC) [midealocal.device] [152832116825447] Sending: {'header': 'aa1aac00000000000303', 'body': 'b106420018001500170033024b002afd', 'message type': '.03', 'body type': '.b1'}
2024-09-03 23:58:19.439 DEBUG (Office AC) [midealocal.device] [152832116825447] Sending: {'header': 'aa11ac00000000000303', 'body': '41210144000109', 'message type': '.03', 'body type': '.41'}
2024-09-03 23:58:19.590 DEBUG (Office AC) [midealocal.devices.ac] [152832116825447] Received: {'header': 'aa28ac00000000000303', 'body': 'c00047147f7f000000000065ff0b00090000000000000004000000002934', 'message type': '.03', 'body type': '.c0'}
2024-09-03 23:58:19.590 DEBUG (Office AC) [midealocal.device] [152832116825447] Status update: {'power': False, 'mode': 2, 'target_temperature': 23.0, 'fan_speed': 20, 'swing_vertical': False, 'swing_horizontal': False, 'smart_eye': False, 'dry': False, 'aux_heating': False, 'boost_mode': False, 'sleep_mode': False, 'frost_protect': False, 'comfort_mode': False, 'eco_mode': False, 'natural_wind': False, 'temp_fahrenheit': False, 'screen_display': False, 'full_dust': False, 'indoor_temperature': 25.9, 'outdoor_temperature': None, 'indirect_wind': False}
2024-09-03 23:58:19.734 DEBUG (Office AC) [midealocal.devices.ac] [152832116825447] Received: {'header': 'aa29ac00000000000303', 'body': 'b10642000000180000010015000001411700000164330200004b000000004e', 'message type': '.03', 'body type': '.b1'}
2024-09-03 23:58:19.735 DEBUG (Office AC) [midealocal.device] [152832116825447] Status update: {'screen_display_alternate': True, 'indoor_humidity': 65, 'breezeless': False, 'indirect_wind': False, 'screen_display': False}
2024-09-03 23:58:19.843 DEBUG (Office AC) [midealocal.devices.ac] [152832116825447] Received: {'header': 'aa20ac00000000000303', 'body': 'c12101440000af5400000000000000000000320001bf', 'message type': '.03', 'body type': '.c1'}
2024-09-03 23:58:19.844 DEBUG (Office AC) [midealocal.device] [152832116825447] Status update: {'total_energy_consumption': 115.54, 'current_energy_consumption': 0.0, 'realtime_power': 3.2, 'indirect_wind': False, 'screen_display': False}
2024-09-03 23:58:29.571 DEBUG (Living room AC) [midealocal.device] [153931628453326] Sending: {'header': 'aa20ac00000000000203', 'body': '418100ff000000000000000000000000000000002c75', 'message type': '.03', 'body type': '.41'}
2024-09-03 23:58:29.572 DEBUG (Living room AC) [midealocal.device] [153931628453326] Sending: {'header': 'aa1aac00000000000203', 'body': 'b106420018001500170033024b002d7e', 'message type': '.03', 'body type': '.b1'}
2024-09-03 23:58:29.573 DEBUG (Living room AC) [midealocal.device] [153931628453326] Sending: {'header': 'aa11ac00000000000203', 'body': '41210144000109', 'message type': '.03', 'body type': '.41'}
2024-09-03 23:58:29.746 DEBUG (Living room AC) [midealocal.devices.ac] [153931628453326] Received: {'header': 'aa28ac00000000000203', 'body': 'c00045017f7f003300000063ff0900090000000000000001000000002cff', 'message type': '.03', 'body type': '.c0'}
2024-09-03 23:58:29.746 DEBUG (Living room AC) [midealocal.device] [153931628453326] Status update: {'power': False, 'mode': 2, 'target_temperature': 21.0, 'fan_speed': 1, 'swing_vertical': False, 'swing_horizontal': True, 'smart_eye': False, 'dry': False, 'aux_heating': False, 'boost_mode': False, 'sleep_mode': False, 'frost_protect': False, 'comfort_mode': False, 'eco_mode': False, 'natural_wind': False, 'temp_fahrenheit': False, 'screen_display': False, 'full_dust': False, 'indoor_temperature': 24.9, 'outdoor_temperature': None, 'indirect_wind': False}
2024-09-03 23:58:29.866 DEBUG (Living room AC) [midealocal.devices.ac] [153931628453326] Received: {'header': 'aa28ac00000000000203', 'body': 'b106420000010118000000150000001700000164330000004b0000000089', 'message type': '.03', 'body type': '.b1'}
2024-09-03 23:58:29.866 DEBUG (Living room AC) [midealocal.device] [153931628453326] Status update: {'screen_display_alternate': True, 'indirect_wind': False, 'screen_display': False}
2024-09-03 23:58:29.978 DEBUG (Living room AC) [midealocal.devices.ac] [153931628453326] Received: {'header': 'aa20ac00000000000203', 'body': 'c12101440000000000000000000000000000000001df', 'message type': '.03', 'body type': '.c1'}
2024-09-03 23:58:29.978 DEBUG (Living room AC) [midealocal.device] [153931628453326] Status update: {'total_energy_consumption': 0.0, 'current_energy_consumption': 0.0, 'realtime_power': 0.0, 'indirect_wind': False, 'screen_display': False}
2024-09-03 23:58:33.214 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Sending: {'header': 'aa20ac00000000000303', 'body': '418100ff000000000000000000000000000000002f97', 'message type': '.03', 'body type': '.41'}
2024-09-03 23:58:33.215 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Sending: {'header': 'aa1aac00000000000303', 'body': 'b106420018001500170033024b00301e', 'message type': '.03', 'body type': '.b1'}
2024-09-03 23:58:33.215 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Sending: {'header': 'aa11ac00000000000303', 'body': '41210144000109', 'message type': '.03', 'body type': '.41'}
2024-09-03 23:58:33.443 DEBUG (Bedroom AC) [midealocal.devices.ac] [153931628453323] Received: {'header': 'aa28ac00000000000303', 'body': 'c00147147f7f000000000061640b00280000000000000004000000002f09', 'message type': '.03', 'body type': '.c0'}
2024-09-03 23:58:33.443 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Status update: {'power': True, 'mode': 2, 'target_temperature': 23.0, 'fan_speed': 20, 'swing_vertical': False, 'swing_horizontal': False, 'smart_eye': False, 'dry': False, 'aux_heating': False, 'boost_mode': False, 'sleep_mode': False, 'frost_protect': False, 'comfort_mode': False, 'eco_mode': False, 'natural_wind': False, 'temp_fahrenheit': False, 'screen_display': True, 'full_dust': False, 'indoor_temperature': 23.8, 'outdoor_temperature': 25.2}
2024-09-03 23:58:33.642 DEBUG (Bedroom AC) [midealocal.devices.ac] [153931628453323] Received: {'header': 'aa29ac00000000000303', 'body': 'b106420000001800000100150000012e1700000164330200004b0000000003', 'message type': '.03', 'body type': '.b1'}
2024-09-03 23:58:33.642 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Status update: {'screen_display_alternate': True, 'indoor_humidity': 46, 'breezeless': False}
2024-09-03 23:58:33.793 DEBUG (Bedroom AC) [midealocal.devices.ac] [153931628453323] Received: {'header': 'aa20ac00000000000303', 'body': 'c12101440001174b0000000000000084000b860001cf', 'message type': '.03', 'body type': '.c1'}
2024-09-03 23:58:33.793 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Status update: {'total_energy_consumption': 117.51, 'current_energy_consumption': 0.84, 'realtime_power': 118.6}
2024-09-03 23:58:49.913 DEBUG (Office AC) [midealocal.device] [152832116825447] Sending: {'header': 'aa20ac00000000000303', 'body': '418100ff0000000000000000000000000000000032f7', 'message type': '.03', 'body type': '.41'}
2024-09-03 23:58:49.917 DEBUG (Office AC) [midealocal.device] [152832116825447] Sending: {'header': 'aa1aac00000000000303', 'body': 'b106420018001500170033024b0033fc', 'message type': '.03', 'body type': '.b1'}
2024-09-03 23:58:49.918 DEBUG (Office AC) [midealocal.device] [152832116825447] Sending: {'header': 'aa11ac00000000000303', 'body': '41210144000109', 'message type': '.03', 'body type': '.41'}
2024-09-03 23:59:00.063 DEBUG (Living room AC) [midealocal.device] [153931628453326] Sending: {'header': 'aa20ac00000000000203', 'body': '418100ff000000000000000000000000000000003574', 'message type': '.03', 'body type': '.41'}
2024-09-03 23:59:00.064 DEBUG (Living room AC) [midealocal.device] [153931628453326] Sending: {'header': 'aa1aac00000000000203', 'body': 'b106420018001500170033024b0036c3', 'message type': '.03', 'body type': '.b1'}
2024-09-03 23:59:00.064 DEBUG (Living room AC) [midealocal.device] [153931628453326] Sending: {'header': 'aa11ac00000000000203', 'body': '41210144000109', 'message type': '.03', 'body type': '.41'}
2024-09-03 23:59:03.888 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Sending: {'header': 'aa20ac00000000000303', 'body': '418100ff000000000000000000000000000000003889', 'message type': '.03', 'body type': '.41'}
2024-09-03 23:59:03.890 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Sending: {'header': 'aa1aac00000000000303', 'body': 'b106420018001500170033024b003982', 'message type': '.03', 'body type': '.b1'}
2024-09-03 23:59:03.890 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Sending: {'header': 'aa11ac00000000000303', 'body': '41210144000109', 'message type': '.03', 'body type': '.41'}
2024-09-03 23:59:10.138 ERROR (Living room AC) [midealocal.device] [153931628453326] Socket error - Connection closed by peer
2024-09-03 23:59:10.139 DEBUG (Living room AC) [midealocal.device] [153931628453326] Connecting to 192.168.10.43:6444
2024-09-03 23:59:10.916 ERROR (Bedroom AC) [midealocal.device] [153931628453323] Socket error - Connection closed by peer
2024-09-03 23:59:10.917 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Connecting to 192.168.10.42:6444
2024-09-03 23:59:11.920 ERROR (Office AC) [midealocal.device] [152832116825447] Socket error - Connection closed by peer
2024-09-03 23:59:11.920 DEBUG (Office AC) [midealocal.device] [152832116825447] Connecting to 192.168.10.41:6444
2024-09-03 23:59:20.149 DEBUG (Living room AC) [midealocal.device] [153931628453326] Connection timed out
2024-09-03 23:59:20.149 DEBUG (Living room AC) [midealocal.device] [153931628453326] Connecting to 192.168.10.43:6444
2024-09-03 23:59:20.928 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Connection timed out
2024-09-03 23:59:20.928 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Connecting to 192.168.10.42:6444
2024-09-03 23:59:21.927 DEBUG (Office AC) [midealocal.device] [152832116825447] Connection timed out
2024-09-03 23:59:21.927 DEBUG (Office AC) [midealocal.device] [152832116825447] Connecting to 192.168.10.41:6444
2024-09-03 23:59:24.227 DEBUG (Living room AC) [midealocal.device] [153931628453326] Connection error
2024-09-03 23:59:24.227 DEBUG (Living room AC) [midealocal.device] [153931628453326] Connecting to 192.168.10.43:6444
2024-09-03 23:59:27.043 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Connection error
2024-09-03 23:59:27.044 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Connecting to 192.168.10.42:6444
2024-09-03 23:59:27.299 DEBUG (Living room AC) [midealocal.device] [153931628453326] Connection error
2024-09-03 23:59:27.299 DEBUG (Living room AC) [midealocal.device] [153931628453326] Enabling device
2024-09-03 23:59:27.299 DEBUG (Living room AC) [midealocal.device] [153931628453326] Status update: {'available': False}
2024-09-03 23:59:27.299 ERROR (Living room AC) [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 "/config/.local/lib/python3.12/site-packages/midealocal/device.py", line 515, in run
    raise CannotConnect
midealocal.exceptions.CannotConnect
2024-09-03 23:59:28.035 DEBUG (Office AC) [midealocal.device] [152832116825447] Connection error
2024-09-03 23:59:28.036 DEBUG (Office AC) [midealocal.device] [152832116825447] Connecting to 192.168.10.41:6444
2024-09-03 23:59:30.115 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Connection error
2024-09-03 23:59:30.115 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Enabling device
2024-09-03 23:59:30.115 DEBUG (Bedroom AC) [midealocal.device] [153931628453323] Status update: {'available': False}
2024-09-03 23:59:30.115 ERROR (Bedroom AC) [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 "/config/.local/lib/python3.12/site-packages/midealocal/device.py", line 515, in run
    raise CannotConnect
midealocal.exceptions.CannotConnect
2024-09-03 23:59:31.107 DEBUG (Office AC) [midealocal.device] [152832116825447] Connection error
2024-09-03 23:59:31.107 DEBUG (Office AC) [midealocal.device] [152832116825447] Enabling device
2024-09-03 23:59:31.107 DEBUG (Office AC) [midealocal.device] [152832116825447] Status update: {'available': False}
2024-09-03 23:59:31.107 ERROR (Office AC) [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 "/config/.local/lib/python3.12/site-packages/midealocal/device.py", line 515, in run
    raise CannotConnect
midealocal.exceptions.CannotConnect

Right now all AC are available

aleksey@raspberrypi:~ $ telnet 192.168.10.42 6444
Trying 192.168.10.42...
Connected to 192.168.10.42.
Escape character is '^]'.

Restarting HA solves the problem for some time, until it happens again.

@xiasi0
Copy link

xiasi0 commented Sep 4, 2024

+1风扇设备同样情况

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


+1Same situation with fan device

@wuwentao
Copy link
Owner

wuwentao commented Sep 6, 2024

@xiasi0 @lo00l @mag1024 @lyfqdl @grigi @Vetti52

Hi all,

This is a known issue for a long time, and we want to fix it and cover most of the errors, @mag1024 also found the code changes, @chemelli74 want to fix some connection issue, so we need to confirm the error info via the full debug log file.

but most of us don't want to upload the debug log file and just report the issue, or paste some lines log in issue.
could you help to upload your full debug log file for bug and connection process analyze?
we will fix it in some days.

thanks

@rokam rokam added the midea-local library Issue/enanchement in midea-local library label Sep 6, 2024
@phidauex
Copy link

phidauex commented Sep 6, 2024

Possible duplicate of #306 .

Attached is full log file and relevant excerpt

home-assistant.log

2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] [150633093756827] Received: {'header': 'aa23a100000000000803', 'body': 'c80101287f7f003700000000000000643c5c00000000001f72', 'message type': '.03', 'body type': '.c8'}
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 100, tank_full_calculated: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device after - new_status: {'power': True}, tank_full: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 100, tank_full_calculated: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device after - new_status: {'power': True, 'child_lock': False}, tank_full: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 100, tank_full_calculated: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device after - new_status: {'power': True, 'child_lock': False, 'mode': 'Manual'}, tank_full: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 100, tank_full_calculated: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device after - new_status: {'power': True, 'child_lock': False, 'mode': 'Manual', 'fan_speed': 'Low'}, tank_full: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 100, tank_full_calculated: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device after - new_status: {'power': True, 'child_lock': False, 'mode': 'Manual', 'fan_speed': 'Low', 'swing': False}, tank_full: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 100, tank_full_calculated: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device after - new_status: {'power': True, 'child_lock': False, 'mode': 'Manual', 'fan_speed': 'Low', 'swing': False, 'target_humidity': 55}, tank_full: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 100, tank_full_calculated: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device after - new_status: {'power': True, 'child_lock': False, 'mode': 'Manual', 'fan_speed': 'Low', 'swing': False, 'target_humidity': 55, 'anion': False}, tank_full: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 100, tank_full_calculated: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device after - new_status: {'power': True, 'child_lock': False, 'mode': 'Manual', 'fan_speed': 'Low', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0}, tank_full: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 100, tank_full_calculated: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device after - new_status: {'power': True, 'child_lock': False, 'mode': 'Manual', 'fan_speed': 'Low', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '100'}, tank_full: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 100, tank_full_calculated: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device after - new_status: {'power': True, 'child_lock': False, 'mode': 'Manual', 'fan_speed': 'Low', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '100', 'current_humidity': 60}, tank_full: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device - tank: 0, tank_full: False,                                      water_level: 100, tank_full_calculated: False
2024-09-04 10:09:10.986 DEBUG (Dehumidifier) [midealocal.devices.a1] Device after - new_status: {'power': True, 'child_lock': False, 'mode': 'Manual', 'fan_speed': 'Low', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '100', 'current_humidity': 60, 'current_temperature': 21.0}, tank_full: False
2024-09-04 10:09:10.987 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Status update: {'power': True, 'child_lock': False, 'mode': 'Manual', 'fan_speed': 'Low', 'swing': False, 'target_humidity': 55, 'anion': False, 'tank': 0, 'water_level_set': '100', 'current_humidity': 60, 'current_temperature': 21.0}
2024-09-04 10:09:41.043 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Sending: {'header': 'aa20a100000000000803', 'body': '418100ff0000000000000000000000000000000020d6', 'message type': '.03', 'body type': '.41'}
2024-09-04 10:10:11.075 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Sending: {'header': 'aa20a100000000000803', 'body': '418100ff000000000000000000000000000000002188', 'message type': '.03', 'body type': '.41'}
2024-09-04 10:10:41.108 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Sending: {'header': 'aa20a100000000000803', 'body': '418100ff00000000000000000000000000000000226a', 'message type': '.03', 'body type': '.41'}
2024-09-04 10:11:11.142 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Heartbeat timed out
2024-09-04 10:11:11.142 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Connecting to 10.0.20.66:6444
2024-09-04 10:11:21.152 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Connection timed out
2024-09-04 10:11:21.153 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Connecting to 10.0.20.66:6444
2024-09-04 10:11:31.163 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Connection timed out
2024-09-04 10:11:31.163 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Connecting to 10.0.20.66:6444
2024-09-04 10:11:41.174 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Connection timed out
2024-09-04 10:11:41.174 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Enabling device
2024-09-04 10:11:41.174 DEBUG (Dehumidifier) [midealocal.device] [150633093756827] Status update: {'available': False}
2024-09-04 10:11:41.175 ERROR (Dehumidifier) [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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working midea-local library Issue/enanchement in midea-local library
Projects
None yet
Development

No branches or pull requests