home-assistant-tapo-p100 icon indicating copy to clipboard operation
home-assistant-tapo-p100 copied to clipboard

Unexpected error

Open wardy277 opened this issue 2 years ago • 5 comments

Version of the custom_component

V1.2.10

Describe the bug

Device: P100

Plug became unavailable so I deleted it and readded via the ui. I completed the form with the correct details and got an unexpected error. If I enter incorrect login details I get an invalid credentials error, so it's partially working and detects correct credentials

Debug log



Traceback (most recent call last):
  File "/config/custom_components/tapo/config_flow.py", line 57, in async_step_user
    entry_metadata = await self._validate_input(user_input)
  File "/config/custom_components/tapo/config_flow.py", line 94, in _validate_input
    state = await tapo_api.get_state()
  File "/usr/local/lib/python3.9/site-packages/plugp100/api.py", line 88, in get_state
    state=await self.get_state_as_dict(),
  File "/usr/local/lib/python3.9/site-packages/plugp100/api.py", line 212, in get_state_as_dict
    return await self._execute_method_request(device_info_method)
  File "/usr/local/lib/python3.9/site-packages/plugp100/api.py", line 237, in _execute_method_request
    self.__validate_response(resp_dict)
  File "/usr/local/lib/python3.9/site-packages/plugp100/api.py", line 256, in __validate_response
    raise TapoException.from_error_code(resp['error_code'])
plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: 9999

wardy277 avatar Apr 22 '22 09:04 wardy277

I have been the same issue for few hours now.

viciovb avatar Apr 30 '22 23:04 viciovb

I'm having the same issue - all my plugs are unavailable, and after deleting one, I'm unable to re-add due to this same error

martinheavens avatar May 03 '22 15:05 martinheavens

I solved by unplugging and plugging all the socket back

viciovb avatar May 03 '22 16:05 viciovb

Thanks @viciovb - that solved it for me too

martinheavens avatar May 03 '22 18:05 martinheavens

In general, I think that there are some synchronization problems between tapo device and tapo cloud. So when you insert your credentials, probably tapo device is out of sync or something else.

petretiandrea avatar May 07 '22 08:05 petretiandrea