Skip to content

Error -1003 on powercycle #22

@jufy111

Description

@jufy111

Tapo P110
HW version = 1.0
FW version 1.3.0

Works fine when the plug first paired, however when the device is power cycled I get a -1003 error when calling getEnergyUsage().

Once the Tapo plug is unpaired with the app, then repaired, PyP100 works fine, but will stop working once the plug is power cycled.

Has anyone else experienced this issue, or can replicate it

Traceback (most recent call last):
  File "Z:\appdata\pythonscripts\power-tapo\energyloggingTapo1.py", line 116, in <module>
    main()
  File "Z:\appdata\pythonscripts\power-tapo\energyloggingTapo1.py", line 56, in main
    raw_data = tapo_param.getEnergyUsage()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Z:\appdata\pythonscripts\power-tapo\PyP100.py", line 106, in getEnergyUsage
    return self.request("get_energy_usage")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Z:\appdata\pythonscripts\power-tapo\PyP100.py", line 44, in request
    return self.protocol._request(method, params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Z:\appdata\pythonscripts\power-tapo\auth_protocol.py", line 65, in _request
    raise Exception(f"Error code: {data['error_code']}")
Exception: Error code: -1003

I've tried clearing the "pycache" directory, but it doesn't seem to help.
preferred_protocol argument was not set, however I have tried both. The above error, appears to be from the "new" protocol.

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