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

First time I've seen Common as a device type.

If you want to try to customize the code, this is mapped in the app code, line 71...add a line for common. Unfortunately there is no way to now who it will respond ahead of time. If it works, I will update the HPM code accordingly for others.

@Field static final Map driverMap = [
	'Light': [label: 'Bulb', driver: 'WyzeHub Bulb'],
	'MeshLight': [label: 'Color Bulb', driver: 'WyzeHub Color Bulb'],
	'LightStrip' : [label: 'Light Strip', driver: 'WyzeHub Color Bulb'],
	'Plug': [label: 'Plug', driver: 'WyzeHub Plug'],
	'OutdoorPlug': [label: 'Outdoor Plug', driver: 'WyzeHub Plug'],
	'Common': [label: 'Switch', driver: 'WyzeHub Plug'],
	'Camera': [label: 'Camera', driver: 'WyzeHub Camera'],
	'default': [label: 'Unsupported Type', driver: null]
]

I’m going to dig into this a bit more. I ended up adding it via homebridge. I noticed the plugin for homebridge has a case for identifying the wall switch’s product type as “COMMON” so maybe they have multiple versions?

My switch had orange and white packaging and I bought it on clearance a year ago at Home Depot. The new packaging is blue and white. I’m not sure if they updated the models (website only indicates one model in the release notes)

I’ll play around and let you know.

I don’t mind the homebridge plugin, but ultimately I prefer to have everything originate out of Hubitat.

Hi Jake. I am not a programmer but, I have installed the program, and I am getting an error message:
app:4542023-12-29 12:12:10.034errorjava.lang.Exception: No Auth Tokens. Reauthenticate. on line 946 (method pageSelectDevices)
app:4542023-12-29 12:11:54.469error[WyzeHub] Login Failed with Exception: groovyx.net.http.HttpResponseException: status code: 403, reason phrase: Forbidden
app:4542023-12-29 12:11:54.183info[WyzeHub] Authenticating User...
app:4542023-12-29 12:11:40.009errorjava.lang.Exception: No Auth Tokens. Reauthenticate. on line 946 (method pageSelectDevices)
app:4542023-12-29 12:11:36.752errorjava.lang.Exception: No Auth Tokens. Reauthenticate. on line 946 (method pageSelectDeviceGroups)
app:4542023-12-29 12:11:29.523error[WyzeHub] Login Failed with Exception: groovyx.net.http.HttpResponseException: status code: 403, reason phrase: Forbidden
app:4542023-12-29 12:11:28.934info[WyzeHub] Authenticating User...
app:4542023-12-29 12:11:17.099errorjava.lang.Exception: No Auth Tokens. Reauthenticate. on line 946 (method pageSelectDevices)
app:4542023-12-29 12:11:14.144errorjava.lang.Exception: No Auth Tokens. Reauthenticate. on line 946 (method pageSelectDeviceGroups)
app:4542023-12-29 12:08:37.726errorjava.lang.Exception: No Auth Tokens. Reauthenticate. on line 946 (method pageSelectDeviceGroups)
app:4542023-12-29 12:07:54.639error[WyzeHub] Login Failed with Exception: groovyx.net.http.HttpResponseException: status code: 403, reason phrase: Forbidden
app:4542023-12-29 12:07:53.806info[WyzeHub] Authenticating User...
app:4542023-12-29 11:55:22.188info[WyzeHub] App Installed

And it goes on. Any advice?
I really appreciate any help you can provide.

Richard

I installed WyzeHub using HPM. When I try and login I get the following error:
app:2922023-12-30 19:58:10.139error[WyzeHub] Login Failed with Exception: groovyx.net.http.HttpResponseException: status code: 400, reason phrase: Bad Request

app:2922023-12-30 19:58:09.553debug[WyzeHub] [email:example@example.com, password:nottherealpasswdandemail]

app:2922023-12-30 19:58:09.531info[WyzeHub] Authenticating User...

app:2922023-12-30 19:58:09.523debug[WyzeHub] pageDoAuth()

app:2922023-12-30 19:58:03.042debug[WyzeHub] pageAuthSettings()

app:2922023-12-30 19:58:01.048debug[WyzeHub] initialize()

app:2922023-12-30 19:58:01.046debug[WyzeHub] pageMenu()

Using version 1.5

1 Like

making sure you login with email not username.

I do login with my email. I changed my passwd and now it is successful. Must have been a symbol in the passwd that caused the bad request. I use a password manager and I had to restrict the symbols used to make sure a bad symbol isn't in the passwd.

think we will ever see the wyze lock get support for this?

1 Like

Anyone is welcome to work on development of any device. Feel free to reach out with any updates.

My development is limited as I do not have a lock to test with. I have found some some posts relative to HA implementation that might be helpful.

Would you be interested in helping with the process?

i would be willing to help anyway i can

I'm going to work on a new driver based on what I can find from HA and add some extra logging so we can make sure properties map correctly. I message you when its ready and get you to do some testing; however it might not be until later this week.

that would be awesome. thanks!

Hello, I use the wyzehub for all the wyze plugs I got for dirt cheap when Home Depot had them on clearance. So I can control the outlets on and off but if I switch them in Google home or manually the status of the plugs don't change in hubitat. Anyone got a fix or know what I may have done wrong. Thanks
Also... Anyone get the v2 doorbell to integrate the doorbell button functionality?

What's the current state of the camera support? Obviously, it's not going to be video, but what about power on/of, flood light on/off, motion detection?

Is 2FA not supported by this driver? If not, is there a way to obtain a token to use it directly?

I can't auth anymore but it seems to be holding on an an old auth. It's enough to turn groups on/off (which is the ultimate goal) but not refresh the cameras in the groups (which I need to do).

Any help would be appreciated.

you might be using the old app. need to install new one. the original was abandon from my understanding

I subscribed to this so I can test when you are ready.

You are right, thank you.

Thanks @tomm1313; working on it, sick kids result in less productivity. Looks like it might even use different api endpoints making it a bit more complicated.


edit: Just sent you a message in regards to testing.

So happy I stumbled across this thread and thank you for your hard work!

A couple questions if you don’t mind:

  1. For the white (CT) Wyze bulbs I can set both color temperature and dim level from within HE, but when I present to both HomeKit and Alexa via their integration apps I can only control one or the other. In the HomeKit integration app I can choose to present to Siri as either a “color temperature light” or “dimmable light” but not both at the same time. Alexa doesn’t even give the option, it’s just color temp and ignores when I try to dim, but I’m moving away from Alexa anyway. Is this an issue I need to direct to their respective integration app threads and developers or is this something that can be addressed from the Wyze driver side?

  2. Other than a few bulbs I have multiple of:

Cam v3 with Spotlight accessory
Video Doorbell Pro (original)
Floodlight (with Cam v3)

and I’m struggling to figure out what I can do with them. Looks like the cameras present as motion sensors, right?

So, basically, I could use HE to power on/off the cameras/devices and build automations off of detected motion?

I assume some stretch goal might one day be to trigger X if a person is detected or Y if a vehicle is detected and things like turning on/off the alarm siren and floodlight or spotlight, etc., or maybe not (and power on/off is still very appreciated!)

Maybe rule shortcuts could be made in the Wyze app and passed over to HE? For instance I have a shortcut (rule) in my Wyze app to restart the doorbell’s chime accessory so I can run a restart when the chime device and doorbell device lose contact with each other. It might be cool to have that in HE.

I guess there’s no use of coding in a way for HE to interact with the video feed, MicroSD card, or cloud services… at least I can’t imagine what I’d even do with that lol

Anyway, would love to hear ideas of how others are using this app outside of on/off other devices than bulbs.

Oh, I would love to see integration for the Sprinkler Controller. I’m siht for coding, but if there’s anything I could do to help—such as testing and/or providing logs—please just let me know!

Ah!!! By this time next year I fully expect this app to let me define an automation “when girlfriend’s face is detected on camera > turn on sprinkler head closest to her > adjust which sprinkler head is on as she tries to outrun them around the yard!”

:joy::joy::rofl::rofl::joy::joy:
/s

I don't know if anyone is still working on this but i keep getting this error.
logs#)com.hubitat.app.exception.UnknownDeviceTypeException: Device type 'WyzeHub Camera' in namespace 'jakelehner' not found on line 798 (method pageMenu)
I have even attempted to uninstall via HPM but it says drivers are in use.
anyone have any ideas?
Thanks