jfarmer08 / homebridge-wyze-smart-home

Wyze Smart Home plugin for Homebridge.
MIT License
94 stars 14 forks source link

Error: Request failed with status code 403 #140

Closed Adolflo closed 8 months ago

Adolflo commented 10 months ago

Hello,

Can you help solve what is wrong with the configu please:

Config:

"platform": "WyzeSmartHome",
"name": "Wyze",
"username": "myemail",
"password": "mypass",
"keyId": "mykey",
"apikey": "myapi",
"refreshInterval": 60000,
"logging": "debug"

}

Log shows:

8/17/2023, 5:28:45 PMWyze Smart Home Bridge starting 8/17/2023, 5:28:56 PMWyze Smart Home BridgeLoaded plugin 'homebridge-wyze-smart-home' 8/17/2023, 5:28:56 PMWyze Smart Home BridgeLoading 1 platforms... 8/17/2023, 5:28:56 PMWyze Smart Home BridgeWyzeRefreshing devices... 8/17/2023, 5:28:57 PMWyze Smart Home BridgeBridge is running on port 51836. 8/17/2023, 5:28:57 PMWyze Smart Home BridgeWyzePerforming request: user/login 8/17/2023, 5:28:57 PMWyze Smart Home BridgeWyzeRequest config: {"method":"POST","url":"user/login","data":{"email":"myemail","password":"mypass"},"baseURL":"https://auth-prod.api.wyze.com","headers":{"x-api-key":"myapi","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Safari/605.1.15"}} 8/17/2023, 5:28:58 PMWyze Smart Home BridgeWyzeERRORRequest failed: Error: Request failed with status code 403 8/17/2023, 5:28:58 PMWyze Smart Home BridgeWyzeERRORResponse PerformRequest (Forbidden): {"URL":"https://support.wyze.com/hc/en-us/articles/16129834216731-Creating-an-API-Key"} 8/17/2023, 5:28:58 PMWyze Smart Home BridgeWyzeERRORError getting devices: Error: Request failed with status code 403 8/17/2023, 5:29:58 PMWyze Smart Home BridgeWyzeRefreshing devices... 8/17/2023, 5:29:58 PMWyze Smart Home BridgeWyzePerforming request: user/login

May you please let me know what needs to be fixed, cameras I am using is V3

github-actions[bot] commented 10 months ago

Message that will be displayed on users' first issue

jfarmer08 commented 8 months ago

You should replace "keyId": "mykey" with "apiKey":"mykey"

jfarmer08 commented 8 months ago

Any update

Adolflo commented 8 months ago

No, I installed on my cameras RTSP and run them that way true Apple Home

On Mon, Nov 6, 2023 at 2:18 PM Farmer @.***> wrote:

Any update

— Reply to this email directly, view it on GitHub https://github.com/jfarmer08/homebridge-wyze-smart-home/issues/140#issuecomment-1796366219, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBYK3GJN7RTSWQ2GWMRMM7TYDFA2FAVCNFSM6AAAAAA3UWXQRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJWGM3DMMRRHE . You are receiving this because you authored the thread.Message ID: @.***>

jfarmer08 commented 8 months ago

Ok. Just too note this plugin didn't support camera streams.