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

Logfile here: Dropbox

Also pasted below:

Older Cam
Turn on Notifications
[WyzeHub] [Kitchen Cam] [[pid:P1, value:1, ts:1738861377180], [pid:P1001, value:1, ts:1644723656000], [pid:P1002, value:1, ts:1644723656000], [pid:P1003, value:1, ts:1644723656000], [pid:P1004, value:1, ts:1644723656000], [pid:P1005, value:1, ts:1644723656000], [pid:P1006, value:0, ts:1738383269643], [pid:P1007, value:0, ts:1644723656000], [pid:P1008, value:0, ts:0], [pid:P1010, value:1, ts:0], [pid:P2, value:0, ts:0], [pid:P3, value:1, ts:1702929742806], [pid:P4, value:1, ts:0], [pid:P5, value:1, ts:1738843221926], [pid:P1017, value:0, ts:0], [pid:P1019, value:0, ts:1602785910989], [pid:P1020, value:0, ts:1602785910597], [pid:P1021, value:1, ts:1664293860000], [pid:P1033, value:0, ts:0], [pid:P1018, value:1, ts:1644721988891], [pid:P1047, value:1, ts:1738861377536], [pid:P1048, value:1, ts:1738861377356], [pid:P18, value:0, ts:0], [pid:P20, value:2, ts:1646726141000]]

Turn off Notifications
[WyzeHub] [Kitchen Cam] [[pid:P1, value:0, ts:1738861224550], [pid:P1001, value:1, ts:1644723656000], [pid:P1002, value:1, ts:1644723656000], [pid:P1003, value:1, ts:1644723656000], [pid:P1004, value:1, ts:1644723656000], [pid:P1005, value:1, ts:1644723656000], [pid:P1006, value:0, ts:1738383269643], [pid:P1007, value:0, ts:1644723656000], [pid:P1008, value:0, ts:0], [pid:P1010, value:1, ts:0], [pid:P2, value:0, ts:0], [pid:P3, value:1, ts:1702929742806], [pid:P4, value:1, ts:0], [pid:P5, value:1, ts:1738843221926], [pid:P1017, value:0, ts:0], [pid:P1019, value:0, ts:1602785910989], [pid:P1020, value:0, ts:1602785910597], [pid:P1021, value:1, ts:1664293860000], [pid:P1033, value:0, ts:0], [pid:P1018, value:1, ts:1644721988891], [pid:P1047, value:0, ts:1738861224534], [pid:P1048, value:0, ts:1738861224603], [pid:P18, value:0, ts:0], [pid:P20, value:2, ts:1646726141000]]

OG Cam
Turn on Notifications
[WyzeHub] [Front Yard Cam] [[pid:P3, value:1, ts:1738626472413], [pid:P5, value:1, ts:1738843207418], [pid:P1, value:1, ts:1738861168263], [pid:P1018, value:1, ts:0], [pid:P1020, value:1, ts:0], [pid:P20, value:1, ts:0], [pid:P22, value:0, ts:0], [pid:P30, value:0, ts:0]]

[WyzeHub] [Living Room Cam] [[pid:P3, value:1, ts:1738805492480], [pid:P5, value:1, ts:1738843207417], [pid:P1, value:1, ts:1738861420045], [pid:P1018, value:1, ts:0], [pid:P1020, value:1, ts:0], [pid:P20, value:1, ts:0], [pid:P22, value:0, ts:0], [pid:P30, value:0, ts:0]]

Turn off Notifications
[WyzeHub] [Front Yard Cam] [[pid:P3, value:1, ts:1738626472413], [pid:P5, value:1, ts:1738843207418], [pid:P1, value:0, ts:1738861122744], [pid:P1018, value:1, ts:0], [pid:P1020, value:1, ts:0], [pid:P20, value:1, ts:0], [pid:P22, value:0, ts:0], [pid:P30, value:0, ts:0]]

[WyzeHub] [Living Room Cam] [[pid:P3, value:1, ts:1738805492480], [pid:P5, value:1, ts:1738843207417], [pid:P1, value:0, ts:1738861460882], [pid:P1018, value:1, ts:0], [pid:P1020, value:1, ts:0], [pid:P20, value:1, ts:0], [pid:P22, value:0, ts:0], [pid:P30, value:0, ts:0]]

So P1 is the parameter for notificiations for both versions. The Set All Notifications command sets P1 (it goes a step further to set motion (P1047) and sound (P1048); but those don't appear to be available on the OG).

To rule out an issue with RM, if you use Set All Notifications directly from the HE device page, does that work?

Through a misunderstanding of what you asked for previously, I'm a step ahead of you. My previous logs post were generated using the buttons on the HE device page.

I briefly looked, but didn't find any documentation for the Wyze API. There's got to be a method to do this as I've got an IFTTT applet that does this. I don't think IFTTT uses a device notification preference, but an account level flag.

Ah, I see....the reason I asked for you to update from the app is that I don't know what properties P1020, P20, P22, or P30 correspond to. If one of those control notifications for the OG then they would have changed after updating within the wyze app itself. Controlling from HE would not update any of those, but it could if we can pinpoint the right property.

Here's the logs when triggered from the app:
Disabled in Wyze App with Settings Refresh in HE -> Followed By Enable in Wyze App with Settings Refresh in HE for each of the 3 cams

[WyzeHub] [Front Yard Cam] [[pid:P3, value:1, ts:1738626472413], [pid:P5, value:1, ts:1738843207418], [pid:P1, value:1, ts:1738861168263], [pid:P1018, value:1, ts:0], [pid:P1020, value:1, ts:0], [pid:P20, value:1, ts:0], [pid:P22, value:0, ts:0], [pid:P30, value:0, ts:0]]
[WyzeHub] [Front Yard Cam] [[pid:P3, value:1, ts:1738626472413], [pid:P5, value:1, ts:1738843207418], [pid:P1, value:1, ts:1738861168263], [pid:P1018, value:1, ts:0], [pid:P1020, value:1, ts:0], [pid:P20, value:1, ts:0], [pid:P22, value:0, ts:0], [pid:P30, value:0, ts:0]]

[WyzeHub] [Living Room Cam] [[pid:P3, value:1, ts:1738805492480], [pid:P5, value:1, ts:1738843207417], [pid:P1, value:0, ts:1738861460882], [pid:P1018, value:1, ts:0], [pid:P1020, value:1, ts:0], [pid:P20, value:1, ts:0], [pid:P22, value:0, ts:0], [pid:P30, value:0, ts:0]]
[WyzeHub] [Living Room Cam] [[pid:P3, value:1, ts:1738805492480], [pid:P5, value:1, ts:1738843207417], [pid:P1, value:0, ts:1738861460882], [pid:P1018, value:1, ts:0], [pid:P1020, value:1, ts:0], [pid:P20, value:1, ts:0], [pid:P22, value:0, ts:0], [pid:P30, value:0, ts:0]]

[WyzeHub] [Kitchen Cam] [[pid:P1, value:0, ts:1738901018435], [pid:P1001, value:1, ts:1644723656000], [pid:P1002, value:1, ts:1644723656000], [pid:P1003, value:1, ts:1644723656000], [pid:P1004, value:1, ts:1644723656000], [pid:P1005, value:1, ts:1644723656000], [pid:P1006, value:0, ts:1738383269643], [pid:P1007, value:0, ts:1644723656000], [pid:P1008, value:0, ts:0], [pid:P1010, value:1, ts:0], [pid:P2, value:0, ts:0], [pid:P3, value:1, ts:1702929742806], [pid:P4, value:1, ts:0], [pid:P5, value:1, ts:1738843221926], [pid:P1017, value:0, ts:0], [pid:P1019, value:0, ts:1602785910989], [pid:P1020, value:0, ts:1602785910597], [pid:P1021, value:1, ts:1664293860000], [pid:P1033, value:0, ts:0], [pid:P1018, value:1, ts:1644721988891], [pid:P1047, value:1, ts:1738861377536], [pid:P1048, value:1, ts:1738861377356], [pid:P18, value:0, ts:0], [pid:P20, value:2, ts:1646726141000]]
[WyzeHub] [Kitchen Cam] [[pid:P1, value:1, ts:1738901037829], [pid:P1001, value:1, ts:1644723656000], [pid:P1002, value:1, ts:1644723656000], [pid:P1003, value:1, ts:1644723656000], [pid:P1004, value:1, ts:1644723656000], [pid:P1005, value:1, ts:1644723656000], [pid:P1006, value:0, ts:1738383269643], [pid:P1007, value:0, ts:1644723656000], [pid:P1008, value:0, ts:0], [pid:P1010, value:1, ts:0], [pid:P2, value:0, ts:0], [pid:P3, value:1, ts:1702929742806], [pid:P4, value:1, ts:0], [pid:P5, value:1, ts:1738843221926], [pid:P1017, value:0, ts:0], [pid:P1019, value:0, ts:1602785910989], [pid:P1020, value:0, ts:1602785910597], [pid:P1021, value:1, ts:1664293860000], [pid:P1033, value:0, ts:0], [pid:P1018, value:1, ts:1644721988891], [pid:P1047, value:1, ts:1738861377536], [pid:P1048, value:1, ts:1738861377356], [pid:P18, value:0, ts:0], [pid:P20, value:2, ts:1646726141000]]

@themarkwilliams Thanks for that. Looks like the OG cams aren't respecting P1 and I don't see any other updated parameter.

I did some researching on other implementations, there are several for HA and no-one has found a notification option for the OG cams. I agree that there has to be something but wyze's lack of documentation is prohibitive.

I had the same experience. Will look again later on and update here if I find anything that might work.

Thanks for your help!

So I guess the motion has a 55lbs limit or something to clearly pick up an object, guess that is why the motions are hit and miss for picking up a cat on the counter sooo.

The Wyze camera seems to see the cat even from across the room and trigers the light on the camera sooo, I took the zooz 4in1 and set it next to the camera facing it and did the trigger on Illumination.. the camera see the cat, triggers the light, the Illumination triggers the zooz 4in1 and that trigger runs the cat water sprayers on the counters :wink:

works as a test, so we will see :slight_smile:

This is my "cat vs. counters" battle.. :laughing:

also trying the Linptech Human Presence Sensor ES1 with the package manager installed driver.

  • Linptech 24Ghz Presence Sensor ES1
    • Linptech 24Ghz Presence Sensor ES1 v2.0.1 (driver)

I got the Tuya TS0225_LINPTECH 24Ghz Human Presence Detector from Amazon

working in Hubitat Platform Version 2.4.0.151
Hardware Version C-5
with the Tuya ZigBee mmWave Sensor driver installed from the Hubitate package manager.

image

hope this can help someone in whatever project for sensing something..
in my case.. the cats :slight_smile:

I have the key id and API from the Wyze. Where exactly to put this info into to the code I
Import URL: https://raw.githubusercontent.com/jakelehner/Hubitat/master/WyzeHub/apps/wyzehub-app.groovy
??? i found "x-api-key": " location in the code but not the Key-ID?

That is the old link, please HPM to install or download here:
https://raw.githubusercontent.com/fieldsjm/Hubitat-2/refs/heads/master/WyzeHub/apps/wyzehub-app.groovy

This is what the login screen should look like:

1 Like

If you don't mind, I have a question. I have Color Bulbs in a group as well as cameras.

I don't seem to see any color bulbs in the device list selection, nor do I see the actual groups containing, being available, for the Color Bulbs

Does the integration support the Color Bulbs and Locks?

It does support both. Locks are limited to pulling in the status. Unable to issue commands at the moment.

My guess is that a group including both cameras and bulb is probably getting an error of unsupported. As the app doesn't know how to classify. What are you seeing in your logs when you search for devices?

Thanks for the feedback.

I don't have mixed groups. for example: I have 1 Group called Notify which contains 2 color bulbs. I do not see the Group "Notify" nor do I see the any color bulbs in the Device Selection list.

So they don't show up in the Group Selection List nor the Device Selection location.

Update

Just removed the devices, apps, and drivers then went through the setup again and no Color Bulbs or Color Bulb Groups appear in the following 2 areas.

image

I see that this integration is about 3 years old, so maybe one of the Wyze updates could have caused an issue? Thoughts?

Note:

  1. I do see my Plug Group, Light Strips, White Bulb, and a few Cameras.
  2. I do not see individual Plugs, Color Bulb Groups or Individual plugs, Switches or Locks.

An additional questions, when I try to add a plug from the plug group to a dashboard, there is no template that works to turn the plug on or off. I am able to turn a plug on or off via the Devices Menu option.

Apologies, I read this to say that you had them both in the same group.

It is highly possible that Wyze has adjusted the API. It is completely undocumented so there is no way to confirm. If you can turn on logging then attempt to select devices and/or groups; we will be able to see what the groups are being called via the log output.

To clarify, you are missing indiividual plugs that are not currently in groups? Logs would be helpful to confirm what type the API is labeling them as.

The plug driver includes the switch capability specifically for use on dashboards via the switch template.

No apologies needed. I was not as clear as I should have been.

I will generate a log tomorrow for this and post it.

thanks for the responses. I have a few more things to test or check based on what you reported.

Note:

Figured out the Plug issue. Had to do a Refresh in the Device List of Hubitat for each plug. This forced an update to indicate Switch Status

This is what The WyzeHub shows for the Device Groups

anyone with a [12] are the color bulb groups:

  • Porch Lights: 2 Bulbs
  • Driveway Lights: 3 Bulbs
  • Living Room CB: 2 Bulbs
  • Family Room CB: 2 Bulbs
  • Notify Bulbs: 2 Bulbs
  • Main Bedroom: 2 Bulbs

This is what the Debug Logs show:

Hi Jon,

Thanks for the information but not clear.

I have a Wyze Cam 3 on my network with my Hubitat C7 and I want to be able to have the Hubitat pick up the message when the camera sense movement and when it stops.

I do not a WYZE hub so when you mention above about the Login screen, where is that?

Sorry to interject here, but in order to use this would need to go to the link provided:

https://raw.githubusercontent.com/fieldsjm/Hubitat-2/refs/heads/master/WyzeHub/apps/wyzehub-app.groovy

Copy the entire code then log into your Hubitat and select App Code then select the Add App and paste the code. When you save it, it will create an App code module called WyzeHub.

However, you will also need to install the driver code by going to the GitHub location: Hubitat-2/WyzeHub/drivers at master · fieldsjm/Hubitat-2 · GitHub

Then you will have to install each of the Drivers found in that location. you do it the same as described above, but you would need to select the menu option "Drivers Code" then "Add Driver".

you would click on each of these files, one at a time:

image

then copy code and create a new Driver and save. Do this for each one. If you are only concerned about the cameras, you may be able to only add the camera drivers.

The far easier and better way to install this (or almost any other App or Driver) is to use Hubitat Package Manager.

Manually install HPM, and then use that app to install (and update) almost anything else by a few simple clicks.

2 Likes