Skip to content

Tap0 p100 failed to authentification 1003 #30

@MM-old

Description

@MM-old

With this code I tried to use the Tapo P100 / P110
from PyP100 import PyP100
p100 = PyP100.P100("192.168.178.xx", "xxx@gmail.com", "password") # creates a P100 plug object
p100.getDeviceInfo() # Returns dict with all the device info of the connected plug

I got this error message:
Failed to initialize protocol AuthProtocol
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.9/site-packages/PyP100/PyP100.py", line 35, in _initialize
protocol.Initialize()
File "/home/pi/.local/lib/python3.9/site-packages/PyP100/auth_protocol.py", li ne 110, in Initialize
raise Exception("Failed to authenticate")
Exception: Failed to authenticate
Error: {'error_code': 1003}
Failed to initialize protocol OldProtocol
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.9/site-packages/PyP100/PyP100.py", line 35, in _initialize
protocol.Initialize()
File "/home/pi/.local/lib/python3.9/site-packages/PyP100/auth_protocol.py", li ne 244, in Initialize
result = self._request_raw("handshake", {"key": public_key})
File "/home/pi/.local/lib/python3.9/site-packages/PyP100/auth_protocol.py", li ne 173, in _request_raw
raise Exception(f"Error code: {data['error_code']}")
Exception: Error code: 1003
Traceback (most recent call last):
File "/home/pi/solar/p100.py", line 10, in
p100.getDeviceInfo() # Returns dict with all the device info of the connect ed plug
File "/home/pi/.local/lib/python3.9/site-packages/PyP100/PyP100.py", line 58, in getDeviceInfo
return self.request("get_device_info")
File "/home/pi/.local/lib/python3.9/site-packages/PyP100/PyP100.py", line 46, in request
self._initialize()
File "/home/pi/.local/lib/python3.9/site-packages/PyP100/PyP100.py", line 42, in _initialize
raise Exception("Failed to initialize protocol")
Exception: Failed to initialize protocol
I use raspian os, python 3.9 and the actual firmware from Tapo.
I have no ideas what I have to change.
Thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions