misenhower / homebridge-wyze-connected-home

Wyze Connected Home plugin for Homebridge
MIT License
70 stars 52 forks source link

Wyze Outdoor Plug support? #28

Open RMCob opened 3 years ago

RMCob commented 3 years ago

Wyze Outdoor Plug support?

RMCob commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

I already tried using terminal from the Mac Finder for that install code, but got a slew of errors about not having developer tools.

But that was Terminal from the Finder. I’ve looked for how to open a terminal session within the Homebridge UI, and don’t see anything like that.

On Mar 2, 2021, at 4:18 PM, RMCob notifications@github.com wrote:

@Bom342 https://github.com/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 https://github.com/RMCob/homebridge-wyze-connected-home.git Then restart Homebridge.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/misenhower/homebridge-wyze-connected-home/issues/28#issuecomment-789319440, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALDUI43A5F4KRM534WQ4IRLTBV54FANCNFSM4XBLTYDQ.

RMCob commented 3 years ago

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

Bom342 commented 3 years ago

On Mar 2, 2021, at 4:34 PM, RMCob notifications@github.com wrote:

@Bom342 https://github.com/Bom342 On the right side of the UI menubar, click on the 3 dots and select Terminal

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/misenhower/homebridge-wyze-connected-home/issues/28#issuecomment-789326971, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALDUI45KHRBSQNGHAIFW7GLTBV7ZBANCNFSM4XBLTYDQ.

Bom342 commented 3 years ago

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

Bom342 commented 3 years ago

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

RMCob commented 3 years ago

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

Bom342 commented 3 years ago

I have looked in my .Homebridge directory on the Mac and find few elements associated with Wyze. And nothing that I could edit to add code for outdoor switches. Is there some more manual way to edit my installation and someplace else in my Linux directories that the Homebridge plugin code is stored?

On Mar 4, 2021, at 8:27 AM, RMCob notifications@github.com wrote:

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/misenhower/homebridge-wyze-connected-home/issues/28#issuecomment-790744450, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALDUI47E5RBAY44LRY3VFO3TB6YHFANCNFSM4XBLTYDQ.

RMCob commented 3 years ago

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 commented 3 years ago

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

saadatorama commented 2 years ago

@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.