Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wyze Outdoor Plug support? #28

Open
RMCob opened this issue Feb 3, 2021 · 18 comments
Open

Wyze Outdoor Plug support? #28

RMCob opened this issue Feb 3, 2021 · 18 comments

Comments

@RMCob
Copy link

RMCob commented Feb 3, 2021

Wyze Outdoor Plug support?

@RMCob
Copy link
Author

RMCob commented Feb 4, 2021

I just received my Outdoor Plug, added it to the Wyze app and upgraded the firmware as directed.

Then I started digging around on my own. I am not sure how to deliver a code change so here it is: :-)
In WyzeConnectedHome.js. I added
case 'OutdoorPlug':
immediately after line 117.
After restarting Homebridge, I see 3 (?) tiles for the Outdoor Plug. 2 of the tiles correspond to the names I assigned in the Wyze app for the individual outlets and do control the outlets correctly (Yay!). The 3rd tile seems to correspond to the device in total, and is always on. (You can tap it off, but it comes back by itself. This does not affect either of the electrical outlets.) My solution was to 'hide' that tile in a room with status and notifications off. All in all it seems to be working for the basic on/off functionality.

@RMCob
Copy link
Author

RMCob commented Feb 4, 2021

Problem solved with another revision. Again, sorry but I do not know how to do a Pull Request to supply the changes so here they are in a diff(1). The only file that was changes was src/WyzeHomeConnect.js.

96c96
< let accessoryClass = this.getAccessoryClass(device.product_type);

let accessoryClass = this.getAccessoryClass(device.product_type,device.product_model);

115c115
< getAccessoryClass(type) {

getAccessoryClass(type,model) {
116a117,118
case 'OutdoorPlug':
if (model == 'WLPPO') return
143c145
< let accessoryClass = this.getAccessoryClass(homeKitAccessory.context.product_type);


let accessoryClass = this.getAccessoryClass(homeKitAccessory.context.product_type,homeKitAccessory.context.product_model);

@ghost
Copy link

ghost commented Feb 12, 2021

Is it possible to get these plugs working by manually making these changes? I just received a few and i'd like to see them in homekit, just not sure how to do that.

@gr8gtp
Copy link

gr8gtp commented Feb 12, 2021

Second that, can they be made manually until developer gods have some time and update? Any chance to get copy of file omit anything that might have your LAN or creds?

@RMCob
Copy link
Author

RMCob commented Feb 12, 2021

Look here for a complete version of the plugin that supports the outdoor plug. Be sure to set the outdoor plug up in the Wyze app first.

@gr8gtp
Copy link

gr8gtp commented Feb 13, 2021

Thank you for your work Outdoor plug is good to go!!!
npm install -g https://github.com/RMCob/homebridge-wyze-connected-home.git
for those that can't figure out how to install a branch version.

@Bom342
Copy link

Bom342 commented Mar 2, 2021

I barely know what I'm doing. I added the plugin through the UI, but it doesn't support the outdoor outlets. How can I remove the original plugin and install this version?

@RMCob
Copy link
Author

RMCob commented Mar 3, 2021

@Bom342 See the previous comment.
Open a terminal session from the UI.
Type the following at the command prompt: npm install -g https://github.com/RMCob/homebridge-wyze-connected-home.git

Then restart Homebridge.

@Bom342
Copy link

Bom342 commented Mar 3, 2021 via email

@RMCob
Copy link
Author

RMCob commented Mar 3, 2021

@Bom342 On the right side of the UI menubar, click on the 3 dots and select Terminal

@Bom342
Copy link

Bom342 commented Mar 3, 2021 via email

@Bom342
Copy link

Bom342 commented Mar 3, 2021

I tried to post a screenshot, but no go. There's no Terminal under my three dots on the Mac.

@Bom342
Copy link

Bom342 commented Mar 4, 2021

Can I just run that script from Terminal outside of the Homebridge UI?

@RMCob
Copy link
Author

RMCob commented Mar 4, 2021

The command I showed was for Linux on a Raspberry Pi. Not sure if the same thing works on the Mac.

@Bom342
Copy link

Bom342 commented Mar 4, 2021 via email

@RMCob
Copy link
Author

RMCob commented Mar 4, 2021

I think I've got the UI problem solved. I renamed my package to give it a unique name.
In the UI, search for: homebridge-wyze-connected-home-op
and install it from there. Please let me know if this works for you. Thanks....

@Bom342
Copy link

Bom342 commented Mar 4, 2021

Up and running! Thank you so much for persisting with this.

@saadatorama
Copy link

@RMCob do you have any interest in merging some of the newer commits to your branch? I’ve been using it on homebridge (thanks for that by the way) but it appears this project is no longer being updated and I’d love to see if I can help in any way for getting color bulb and lock support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants