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

Recursion error #23

Open
fritsjuuh opened this issue Apr 21, 2020 · 5 comments
Open

Recursion error #23

fritsjuuh opened this issue Apr 21, 2020 · 5 comments

Comments

@fritsjuuh
Copy link

Hi,

I can't seem to get the plugin to work with HASS. In the log it shows:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update
await self.async_update()
File "/config/custom_components/midea/climate.py", line 111, in async_update
await self.hass.async_add_executor_job(self._device.refresh)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/midea/device.py", line 146, in refresh
data = self._cloud_service.appliance_transparent_send(self.id, data)
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 173, in appliance_transparent_send
'applianceId': id
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 95, in api_request
raise RecursionError()
RecursionError

It does show my 4 devices so the login credentials seem to work.

Please advise.

@msanchezt
Copy link

msanchezt commented Apr 21, 2020

Same issue here, I was about to post the same.

It was working on the past with the same "RecursionError" here and there, but now it's all the time over the logs:

2020-04-21 15:53:11 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.midea_17592186093801 is taking over 10 seconds
2020-04-21 15:53:11 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.midea_17592186093810 is taking over 10 seconds
2020-04-21 15:53:11 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.midea_17592186093801 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update
await self.async_update()
File "/config/custom_components/midea/climate.py", line 111, in async_update
await self.hass.async_add_executor_job(self._device.refresh)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/midea/device.py", line 146, in refresh
data = self._cloud_service.appliance_transparent_send(self.id, data)
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 173, in appliance_transparent_send
'applianceId': id
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 95, in api_request
raise RecursionError()
RecursionError
2020-04-21 15:53:21 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.midea_17592186093810 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update
await self.async_update()
File "/config/custom_components/midea/climate.py", line 111, in async_update
await self.hass.async_add_executor_job(self._device.refresh)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/midea/device.py", line 146, in refresh
data = self._cloud_service.appliance_transparent_send(self.id, data)
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 173, in appliance_transparent_send
'applianceId': id
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 95, in api_request
raise RecursionError()
RecursionError

Can anyone suggest a way to do some troubleshothing or enable some debugging, maybe?

@msanchezt
Copy link

Some more insight on what is happening on my end:

  • I'm able to turn on/off/set any value from Home Assistant to the Midea device.
  • Home Assistant is not able to show the current status of the Midea device if it's set throug the app or the thermostat.

I believe the following error is only-related with Home Assistant trying to get the state of the device, but not related to setting the state (which seems to be working fine).

@stoprocent
Copy link

+1

@fritsjuuh
Copy link
Author

On my end I'm unable to do anything with the integration, I can't turn the AC's on or off.
It is detecting the AC's in my account though, I'm just unable to control them.

@msanchezt

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants