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

Support for On/Off plug-in unit #63

Closed
ebaauw opened this issue Feb 18, 2017 · 5 comments
Closed

Support for On/Off plug-in unit #63

ebaauw opened this issue Feb 18, 2017 · 5 comments

Comments

@ebaauw
Copy link
Owner

ebaauw commented Feb 18, 2017

Currently, homebridge-hue exposes an On/Off plug-in unit light (e.g. the OSRAM Lightify plug), as a Switch (see issue #28). A Hue bridge group containing only On/Off plug-in unit lights is also exposed as a Switch.

However, plugs, like Elgato's Eve Energy, are typically presented as Outlet rather than Switch. On the other hand, for a group of plugs, Switch seems to make more sense than Outlet.

As far as I can see, Switch and Outlet are functionally the same: both have an On characteristic, you can specify whether it's used as Switch/Outlet, Light, or Fan. Outlet does have an additional read-only OutletInUse characteristic. I have no clue what it's for: it seems to be true all the time for the Eve Energy plugs.

Should homebridge-hue expose the plug as Outlet instead? @sejoki, any-one: what's your view on this? What are your experiences with other plugs? Do you use the OutletInUse characteristic?

@sejoki
Copy link

sejoki commented Feb 18, 2017

Thanks for the update and for continuing to put so much thought into this plugin.

I don't have any experience with the Eve Energy. The additional monitoring of how much power it uses doesn't justify spending 20 more €.
My original issue was that it was exposed as a light, which isn't the case for me. I use it to control my media rack, switching off power for my TV, A/V receiver and a couple of other small electronics that I don't need to be running in standby over night.

Technically, it is an outlet rather than a switch, though I think most people buy the plug to have one specific device home kit enabled. I also have one for my espresso maker that turns on with my morning scene. In both cases, a specific device is either on or off.

The outlet characteristic would only make sense to me if I had plugs on all my outlets throughout my apartment and would name them accordingly, for example "kitchen countertop" "kitchen cupboard" and so on.

The way I use them, I control a device, not the outlet the device is plugged in to, so for me personally, the switch makes more sense.

My guess on the OutletInUse characteristic would be that it's tied to the Eve's energy monitor and if a device is plugged in (like my coffee maker) that has a separate on/off switch, it becomes false if it's turned off.

@ebaauw
Copy link
Owner Author

ebaauw commented Feb 18, 2017

Thanks, @sejoki

My guess on the OutletInUse characteristic would be that it's tied to the Eve's energy monitor and if a device is plugged in (like my coffee maker) that has a separate on/off switch, it becomes false if it's turned off.

My guess as well, but OutletInUse remains true, regardless whether the device plugged into it actually consumes power. Even when I have nothing plugged into the Eve Energy.

@pponce
Copy link

pponce commented Feb 19, 2017

I use the homebridge-mpower plugin and have each outlet on the mpower power strip exposed as an outlet. The OutletInUse characteristic is based on the power draw. Mine can be in the on state and have outletInUse be "no". It's sort of a nice to have data point.
I like that it's actually in real life a set of outlets and is referred to as outlets by HomeKit. For an outlet that is single use I give it a specific name and never think twice about it being an outlet vs device. For an outlet powering more than one device, it is nice to see if it's in use or not because in that case I leave the outlet always on and use the devices plugged into it the old school way (in my case a portable BT speaker that is always plugged in and a humidifier).

@pponce
Copy link

pponce commented Feb 19, 2017

The mpower powerstrip exposes the amount of power draw per outlet. You can then decide what constitutes "inuse" by checking for great than X current being consumed.

@ebaauw
Copy link
Owner Author

ebaauw commented Mar 5, 2017

Thanks @pponce, @sejoki. It would seem that the Eve Energy is the odd one out

I'll keep using Switch for an On/Off plug-in unit, as there's no power monitoring or anything to derive a value for the OutletInUse characteristic, which is mandatory for Outlet.

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

No branches or pull requests

3 participants