|
发表于 2023-6-10 10:03:28
|
显示全部楼层
自己加了点代码进去,貌似认证都通过了,应该是Sending: {'header': 'aa1dac000000000000a0', 'body': '00000000000000000000000000000000000000', 'message type': 'a0', 'body type': '00'} 这段代码有问题,这个可能需要抓包解码分析了,估计乐享3 操作方面做了一些更改,导致现在的代码不支持,所以返回了104 error
2023-06-09 17:02:53.491 DEBUG (Air Conditioner) [custom_components.midea_ac_lan.midea.core.device] [211106234198085] Connection error
2023-06-09 17:02:53.491 DEBUG (Air Conditioner) [custom_components.midea_ac_lan.midea.core.device] [211106234198085] testing midea error: [Errno 104] Connection reset by peer
2023-06-09 17:02:53.491 DEBUG (Air Conditioner) [custom_components.midea_ac_lan.midea.core.device] [211106234198085] Status update: {'available': False}
2023-06-09 17:02:58.499 DEBUG (Air Conditioner) [custom_components.midea_ac_lan.midea.core.device] [211106234198085] Connected
2023-06-09 17:02:58.499 DEBUG (Air Conditioner) [custom_components.midea_ac_lan.midea.core.device] [211106234198085] Authentication success
2023-06-09 17:02:58.499 DEBUG (Air Conditioner) [custom_components.midea_ac_lan.midea.core.device] [211106234198085] testing midea:True
2023-06-09 17:02:58.499 DEBUG (Air Conditioner) [custom_components.midea_ac_lan.midea.core.device] [211106234198085] Sending: {'header': 'aa1dac000000000000a0', 'body': '00000000000000000000000000000000000000', 'message type': 'a0', 'body type': '00'}
2023-06-09 17:02:58.553 DEBUG (Air Conditioner) [custom_components.midea_ac_lan.midea.core.device] [211106234198085] Connection error
2023-06-09 17:02:58.553 DEBUG (Air Conditioner) [custom_components.midea_ac_lan.midea.core.device] [211106234198085] testing midea error: [Errno 104] Connection reset by peer
2023-06-09 17:02:58.553 DEBUG (Air Conditioner) [custom_components.midea_ac_lan.midea.core.device] [211106234198085] Status update: {'available': False}
root@OpenWrt:/opt/homeassistant# |
|