sajmonr / homebridge-hubspace

Homebridge plugin for controlling Hubspace accessories.
Apache License 2.0
9 stars 9 forks source link

hubspace outlet #6

Open Ellis2005 opened 1 year ago

Ellis2005 commented 1 year ago

I tested this with the hubspace outlet and was not able to get it to sync or function. I did find some information with the out and HA, still digging in to find out more. very new to this community.

sajmonr commented 1 year ago

Hi, none of the outlet features are implemented. I will get to it in a future update, but I cannot promise when that is going to be.

sajmonr commented 1 year ago

I'm starting to work on this now. Single outlet is not an issue, however, I've purchased a power strip and each of the outlets is exposed as a function instead of a device. That is surprising and might take some time to figure out how I want to approach it.

Ellis2005 commented 1 year ago

That’s awesome! I’ll try it out. I have the single outlet and not a power strip. I’ll give feedback. Sent from my iPhoneOn Mar 11, 2023, at 3:22 PM, Adam @.***> wrote: I'm starting to work on this now. Single outlet is not an issue, however, I've purchased a power strip and each of the outlets is exposed as a function instead of a device. That is surprising and might take some time to figure out how I want to approach it.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

sajmonr commented 1 year ago

Release 1.3.0 adds support for a smart plug that is not a power strip. I will attend to the power strip functionality later. I also suspect that the same is going to be true for a smart outlet with two plugs (the one that wires directly into the 120v lines). I think I know how I want to approach it, however, that might require some breaking changes to the device discovery, which I do not want to do just yet. However, it probably is inevitable, because my understanding of the API and how it identifies the devices seems to have been wrong or at least not complete. Anyways, give it a shot and let me know if you experience some issues. I tested this with Defiant plug from Home Depot.

Ellis2005 commented 1 year ago

Thanks for this release, I believe you are correct on the one that wires correctly to the 120v line. I have a second outlet that is not connected, I will confirm this week that is follow the line for you. If I recall how I wired the one that is installed it was the "top" plug and that is the only outlet that is visible, in the hubspace outlet, they are treated as two separate outlets. After I swapped plugs, it seems to be working as expected, "on/off" perfectly. Ill get back to you this week if you want confirmation on the line voltage answer.

Ellis2005 commented 1 year ago

So i pulled the outlet and there is only one connection please see attached photos. My assumption is that on the board inside the two buttons need to be seen image image image

jamesdcj commented 1 year ago

Thanks so much for this repo -- I found the outlet control to work perfectly. I also have two of these styles of plugs which did not immediately work: https://www.homedepot.com/p/Defiant-15-Amp-120-Volt-Smart-Wi-Fi-Bluetooth-Outdoor-Plug-with-2-Outlets-Powered-by-Hubspace-HPPA52CWB/315636835

I'm guessing it's similar to the power strip & outlet. Sounds like from your previous messages that there may be some refactoring involved to account for these style of plugs -- is there anything I can do to help with that?

cchids3 commented 7 months ago

First - thank you for developing this! It works perfectly for the HomeDepot Defiant single outlets. I notice with the HD Defiant Outdoor 2-Outlet Plug that it only controls one of the two plugs. I'm guessing this is the same issue as described earlier in the comments regarding the power strips. Any thoughts on what it will take to have this functionality?
Thanks again!