[RELEASE] WyzeHub - Wyze Device Integration (minimal cam support)

My recollection, and I'd have to find this again, is that there WAS an old Hubitat app that did this. But I may be mistaken.

I know there are a couple Homebridge plug-ins that will add them to HomeKit. There was one that would add them Smarthings way-back-when.

I'm not of help on the programming side, but I can help test.

Hi. I've installed the wyzehub using the package manager and I could not get it to work. I tried doing it manually by importing codes and that didn't work either. Both times I get this error "java.lang.NullPointerException: Cannot invoke method updateData Value() on null object on line 770 (methodpageMenu)". Can you tell me what I'm doing wrong?

First thing I would try is to make sure you have all the drivers installed that correspond to your devices and device groups.

Sorry for what might be a very simple fix.

I've installed the app via the HPM but when I go back to my app screen I cannot locate the Wyze App...What am I missing?

1 Like

I checked and I do have all of the drivers for my camera groups. I tried uninstalling and reinstalling and I get the same error after selecting the camera group to add.

Can you set your logging to debug and send me the logs when you attempt to select devices. Trying to troubleshoot.

Check and see if it us listed in the user apps [+user] button top right. Appears as though it did not install.

Here's a screenshot of my logs:

It shows "Indoor Cameras (1.1722566) found" but then "Adding device group Indoor Cameras with id null". The null id is the issue. For whatever reason, the id is disappearing after discovery.

Can you try adding only the outdoor group first and see if that works?

That worked! It installed both the indoor and outdoor groups and it's working when I set the motion recording to true and false. I appreciate your help!

Hi all - I've been using this app for over a year with good success. Recently I decided I would turn on 2fa since one of my cameras is inside my house. This app works for roughly 24-48 hours and then my lights no longer work anymore. (I am not even aware how to use the cameras in my hubitat - I'm specifically using this app for my 3 br30 color changing "mesh lights" which are like flood light shaped bulbs we have over our kitchen counter. Every time the lights no longer work/respond - I open the hubitat page, go to apps, go into the wyzehub app, select the "Configure login information" page, and keep everything the same - just click login again. Presto everything works for another 24-48 hours. This has been going on for about a month - and finally spending some time with it - I decided to use a 40 character password and no MFA. So I turned MFA off, but I am still getting the same 24-48 hour lifetime before I have to log back into the wyzehub app again.

I have my username/password/KeyID/API Key all filled out - and the access token fields under the manually enter tokens for troubleshooting section are blank now.

The Hubitat package manager says it's up to date on version v1.4. The github link at the top only has release notes up to 1.3 so that's kind of confusing. I'm thinking maybe the HPM utility has the newest code since it says 1.4 added API key requirements.

Anyone else have this issue or know how to get it working without having to log back into the wyzehub app every day or two?

Sounds you are having this issue

My first time having something listed in HPM. I just added a new version, check to see if you now have an update. Otherwise you can do a repair to update the code.

1 Like

Does anyone have this working on two Hubitat hubs at different houses? I have the first house working great with one of the WYZE groups. When I install the app at the second house and give it the same API Key, the login works and it finds all the WYZE cameras in the second group. However, once the cameras are found, I cannot change anything with them. I try turning them off and then back on, but the camera does not respond. This works fine at the first house. Does the app support multiple HE hubs at different location with one WYZE account?

Two instances of the app should run independently of one another. It would be like have the official Wyze smartphone app installed on two phones.

What I am not sure about is how the API is handling it, I can't foresee any issues but there is no API documentation so really just guessing.

I have removed all the WYZE cameras and the application, rebooted, added the application back, and found all the cameras. I still cannot turn the cameras off or on. Is there anything else I can try at this point?

What do you logs look like when attempting to turn on/off the cameras? Is the app generating any errors? Is the API responding?

You are going to think this is odd. I changed the level of logging to Debug to provide more log data and now the cameras are turning on and off via HE. I guess I will leave Debug turned on.

1 Like

Apologies I couldn’t find an official thread for this - but what is the current status of the wyze integration with and without API key? I’ve recently reinstalled both to test (after fully uninstalling everything) and no devices are ever found (I do not have 2fa active) wondering if anybody else has issues with new installs ? Thanks

The current app is available via HPM (search WyzeHub) and does require the API Key. I have not heard of any recent issues, I'd be happy to help troubleshoot if you can provide some log data.

In June 2023, WYZE announced that an API Key would now be required. We have limited info beyond that. Go here to get your key https://support.wyze.com/hc/en-us/articles/16129834216731-Creating-an-API-Key

Some Notes:

  • Only one API key can be created per user at a time.
  • If you want to create a new API Key, you will need to delete the existing one and create a new one.
  • Your API key is valid for 1 year from the date of creation.
  • This endpoint is currently rate limited.
  • The access token generated is valid for 2 days only.
  • The refresh token generated is valid for 30 days.
  • I the other no devices are were coming up, tried again with API key and seems to be working now - maybe wyze had a glitch - thanks