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
351 stars 16 forks source link

Dehumidifier unavailable after setup: CapabilitiesFailed #215

Closed keyluke closed 4 months ago

keyluke commented 4 months ago

HA core version

2024.7.1

Integration version

0.5

Device type and model

Dehumidifier 00000Q18 (0) (Ariston DEOS16s)

Used App

MSmartHome

The description of problem

After correctly setup the device, it appears as unavailable in Homeassistant. The following exception is raised from the log (debug enabled as stated from the README): CapabilitiesFailed.

The logs

2024-07-09 12:27:10.026 ERROR (Deumidificatore) [midealocal.device] [31885837206704] Unknown error : /srv/homeassistant/lib/python3.12/site-packages/midealocal/device.py, 221
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.12/site-packages/midealocal/device.py", line 221, in connect
    self.get_capabilities(wait_response=True)
  File "/srv/homeassistant/lib/python3.12/site-packages/midealocal/device.py", line 329, in get_capabilities
    raise CapabilitiesFailed
midealocal.device.CapabilitiesFailed
22kW commented 4 months ago

Same here (Midea dehumidifiers):

Logger: midealocal.device Quelle: /usr/local/lib/python3.12/site-packages/midealocal/device.py:239 Erstmals aufgetreten: 11:58:55 (1516 Vorkommnisse) Zuletzt protokolliert: 13:09:10

[152832116353363] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 221 [152832116339431] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 221 [153931627967640] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 221 Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 221, in connect self.get_capabilities(wait_response=True) File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 329, in get_capabilities raise CapabilitiesFailed midealocal.device.CapabilitiesFailed

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ


Same here (Midea dehumidifiers):

Logger: midealocal.device Quelle: /usr/local/lib/python3.12/site-packages/midealocal/device.py:239 Erstmals aufgetreten: 11:58:55 (1516 Vorkommnisse) Zuletzt protokolliert: 13:09:10

[152832116353363] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 221 [152832116339431] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 221 [153931627967640] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 221 Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 221, in connect self.get_capabilities(wait_response=True) File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 329, in get_capabilities raise CapabilitiesFailed midealocal.device.CapabilitiesFailed

chemelli74 commented 4 months ago

Hi all, please confirm the last working version ( if any ).

Also we need full debug log; so please add the following to configuration.yaml , restart HA, and post the log:

logger:
  default: warning
  logs:
    custom_components.midea_ac_lan: debug
    midealocal: debug

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.

keyluke commented 4 months ago

Hi @chemelli74 , thanks for your reply. Setup the full debug, here are the log of midea_ac_lan as attachment. midea_dehumidifier.log

Edit: on my side tried 0.4 for issue #209. It seemed to work. I need to test again

erikgieseler commented 4 months ago

Same here. 0.4.3 working fine. _homeassistant_logs.txt

sanderlv commented 4 months ago

After update to 0.5 same error

Logger: midealocal.device Source: /usr/local/lib/python3.12/site-packages/midealocal/device.py:239 First occurred: 22:27:57 (1 occurrences) Last logged: 22:27:57

[146235046613512] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 219 Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 219, in connect self.refresh_status(wait_response=True) File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 344, in refresh_status raise SocketException midealocal.exceptions.SocketException

rokam commented 4 months ago

https://github.com/rokam/midea-local/pull/212 fixes the capability issue

sanderlv commented 4 months ago

https://github.com/rokam/midea-local/pull/212 fixes the capability issue

I am sorry, but I still have 2 device malfunction

Logger: midealocal.device Source: /usr/local/lib/python3.12/site-packages/midealocal/device.py:239 First occurred: 18:26:29 (1 occurrences) Last logged: 18:26:29

[146235046613512] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 219 Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 219, in connect self.refresh_status(wait_response=True) File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 344, in refresh_status raise SocketException midealocal.exceptions.SocketException

keyluke commented 4 months ago

rokam/midea-local#212 fixes the capability issue

I am sorry, but I still have 2 device malfunction

Logger: midealocal.device Source: /usr/local/lib/python3.12/site-packages/midealocal/device.py:239 First occurred: 18:26:29 (1 occurrences) Last logged: 18:26:29

[146235046613512] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 219 Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 219, in connect self.refresh_status(wait_response=True) File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 344, in refresh_status raise SocketException midealocal.exceptions.SocketException

On my side it is working: I can access my device. Try to enable the debug as stated from README and restart your instance. It seems a network error.

Also we need full debug log; so please add the following to configuration.yaml , restart HA, and post the log:

logger:
  default: warning
  logs:
    custom_components.midea_ac_lan: debug
    midealocal: debug
chemelli74 commented 4 months ago

This issue is about a different error. Please open a new one.