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

Password error #32

Open
RSBo opened this issue Jun 30, 2020 · 0 comments
Open

Password error #32

RSBo opened this issue Jun 30, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@RSBo
Copy link

RSBo commented Jun 30, 2020

Description
Integration works well a short period after HA restart, but five or so minutes after, stops working complaining about account password

Steps to reproduce the behavior:

  1. Install integration
  2. Configure your midea account settings
  3. Restart HA
  4. Try it
  5. Wait 5 to 10 minutes
  6. Try again

Logs

2020-06-30 18:29:01 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1541138480] (3101, 'password error,please enter again.')
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
await result
File "/config/custom_components/midea/climate.py", line 270, in async_set_hvac_mode
await self.apply_changes()
File "/config/custom_components/midea/climate.py", line 102, 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 165, in apply
data = self._cloud_service.appliance_transparent_send(self.id, data)
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 162, in appliance_transparent_send
self.login()
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 118, in login
'password': self.security.encryptPassword(self.login_id, self.password)
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 83, in api_request
self.handle_api_error(int(response['errorCode']), response['msg'])
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 224, in handle_api_error
handler()
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 200, in restart_full
self.login()
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 118, in login
'password': self.security.encryptPassword(self.login_id, self.password)
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 83, in api_request
self.handle_api_error(int(response['errorCode']), response['msg'])
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 224, in handle_api_error
handler()
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 209, in throw
raise ValueError(error_code, message)
ValueError: (3101, 'password error,please enter again.')

Versions

  • Home Assistant version: 0.111.4
  • Midea integration version (commit hash): 661ba88
@RSBo RSBo added the bug Something isn't working label Jun 30, 2020
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

1 participant