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

Not able to control Midea AC from home assistant. #13

Closed
geosoftgr opened this issue Aug 30, 2019 · 3 comments
Closed

Not able to control Midea AC from home assistant. #13

geosoftgr opened this issue Aug 30, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@geosoftgr
Copy link

Although I have successfully add a card on Home assistant, I am not able to perform any actions to the A/C, i am not able to change to cool/head/fun/ or to set ON/OFF

  • Home Assistant version: 0.98.1

error logs

Log Details (ERROR)
Fri Aug 30 2019 11:26:34 GMT+0300 (Eastern European Summer Time)
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 210, in handle_service
self._platforms.values(), func, call, service_name, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 349, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 371, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/config/custom_components/midea/climate.py", line 266, in async_set_hvac_mode
await self.apply_changes()
File "/config/custom_components/midea/climate.py", line 98, in apply_changes
await self.hass.async_add_executor_job(self._device.apply)
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 168, in apply
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

Log Details (WARNING)
Fri Aug 30 2019 15:05:55 GMT+0300 (Eastern European Summer Time)
Update of climate.midea_16492674444494 is taking over 10 seconds

Log Details (ERROR)
Fri Aug 30 2019 15:05:57 GMT+0300 (Eastern European Summer Time)
Update for climate.midea_16492674444494 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 261, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 439, 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 93, in api_request
return self.api_request(endpoint, args)
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 93, in api_request
return self.api_request(endpoint, args)
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 95, in api_request
raise RecursionError()
RecursionError
Connection lost. Reconnecting…

@geosoftgr geosoftgr added the bug Something isn't working label Aug 30, 2019
@geosoftgr geosoftgr changed the title not able to control Midea AC from home assistant. Not able to control Midea AC from home assistant. Aug 30, 2019
@pawel1czak
Copy link

Confirm. I have this error:

2019-12-20 11:30:26 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.midea_18691697719260 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 281, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
await self.async_update()
File "/config/custom_components/midea/climate.py", line 107, in async_update
await self.hass.async_add_executor_job(self._device.apply)
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 168, in apply
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

@zvldz
Copy link

zvldz commented Dec 27, 2019

Confirm too.
The problem was from the beginning of the project.

@andersonshatch
Copy link
Owner

Same as #23, closing this one as there's more discussion there.

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

No branches or pull requests

4 participants