almottier / TapoP100

A module for controlling the TP-Link Tapo P100 Plugs
MIT License
82 stars 25 forks source link

Error code:-1003 when using getEnergyUsage in P110 #28

Open yslim2002 opened 6 months ago

yslim2002 commented 6 months ago

Error: {'error_code': -1003} Traceback (most recent call last): File "d:\Python\Training\Practice\tapo110.py", line 8, in p110.getEnergyUsage() File "D:\Anaconda\Lib\site-packages\PyP100\PyP100.py", line 109, in getEnergyUsage return self.request("get_energy_usage") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda\Lib\site-packages\PyP100\PyP100.py", line 47, in request return self.protocol._request(method, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda\Lib\site-packages\PyP100\auth_protocol.py", line 65, in _request raise Exception(f"Error code: {data['error_code']}") Exception: Error code: -1003