@user4745 Yes I have errors in the logs also but I can confirm at least the on/off methods work, I haven't tried anything else in the driver.
The on/off is the same as hitting the button in the app to turn the camera on or off. It might not suit your purpose. I'm pretty sure anything you can do with this driver is completely separate from those Wyze app rules or home/away modes.
@fieldsjm Yeah I'm going through things again right this second, actually. Trying to figure out some other workaround. I tried setting a Rule in the Wyze app to do different things, one being to activate the in-camera siren, and two being a trigger for a rule in Rule Machine to turn lights on and such so the camera records a better picture. But I can't even get the camera to activate the siren when motion is detected, much less have it act as a trigger for HE. (And that's all for now just assuming I'm enabling it manually without yet trying to set up like a Virtual Switch that I can command via voice through Alexa, or a button command on the switch next to the door on my way out). So I have no idea how to get any of this at all to act as an automation, in any way.
EDIT: I was able to get the siren to turn on after detecting motion. Had to reboot the camera and then it worked.
I've been using this app with much success over the last few months. All I have been using it to do is turn three cameras on or off depending on presence status. But recently the on/off action will intermittently fail.
The app seems to think it's working but it isn't. I checked the logs this morning and I can see "Access Token Invalid. Attempting to refresh token" messages. Nearest I can tell, it was able to do so and then the next messages I see are the devices with their new values:
Can anyone share in a more step by step fashion how to get the Access Token and Refresh Token? I've generated my API keys from Developer Api Console - WYZE and set up Postman but I can't tell if I'm entering the keys in the right places. Postman gives me "bad request", this WyzeHub app only gives me 401-Forbidden in the Hubitat logs if I only provide my Username and Password. Apologies if this is a noob request
i am having the same issue. i deleted, uninstalled, re-installed and generated a new API key and added it but now it says i have no new devices. i can't even find the old ones anymore. please help.
I am having the same problem as the 2 guys above me. I didn't recall we needed to add a token or enable oath or ? just re-do the login. Anyone have any success reauthenticating lately?
Installed this to see what it could give me as I only have Cams, but having same problem with the 403 Forbidden errors in log. Looks like this is not supported anymore by the OP
Thanks @fieldsjm, plugged in the key id and API Key and all works as intended, no more errors! Now to see what I can actually use this for, I only have Cams.
I was setting up the HA integration and tried to create an API key. But I can't get logged into Wyze anymore! It always throughs an error saying my ad blocker is preventing their captcha from working... but I've tried it with multiple browsers in virgin installs, and it just doesn't work.
Update: it does work from Chrome on my phone. I was able to create an API key.
Using @fieldsjm's new code, I was able to get the key to work and I'm no longer getting errors.
My automations using Wyze were to enable/disable notifications when I open the front door. E.g., when I go out, I turn off notifications to not be told someone (me) is on the front walk. It does seem like it is working again.
I was able to get an API key and log in successfully in the WyzeHub app. However, I get an error when I try to add new groups (fresh install):
app:14222023-08-22 03:08:42.862 PMerrorcom.hubitat.app.exception.UnknownDeviceTypeException: Device type 'WyzeHub Camera Group' in namespace 'jakelehner' not found on line 738 (method pageMenu)
app:14222023-08-22 03:08:42.828 PMinfo[WyzeHub] Adding device group FF’s Home with id null
Oddly, it seems to work when I select Add Devices but it only sees a few unsupported devices - not the ones in my Groups.