shauntarves / wyze-sdk

A modern Python client for controlling Wyze devices.
The Unlicense
307 stars 50 forks source link

New exception with plugs API #170

Closed stanboy2000 closed 7 months ago

stanboy2000 commented 7 months ago

I have been using the wyze-sdk for about two years to control a plug used to charge my laptop. Just last week, I started getting this exception when trying to access a specific plug instance via client.plugs.info(device_mac=''):

wyze_sdk.errors.WyzeApiError: The request to the Wyze API failed. The server responded with: {'code': '2001', 'msg': 'access token is error', 'traceId': '00bf55533814fb0b6a3059b865a829af', 'data': {}}

Any help would be appreciated!

stanboy2000 commented 7 months ago

I see now that I am using a deprecated version of the client and need to request a Wyze API key. Closing this issue.