-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Feature Request/Enhancement: Expose "On/Off plug-in unit" as switches instead of lights #13
Comments
This is how homebridge-hue "identifies" the switches: ebaauw/homebridge-hue@6c1ce67 |
Great! I hadn't even reflected over that plug ins are represented as lights, but that is true. Do you know if all plug in units are represented by the same type? |
Sadly not. Maybe @ebaauw can help with this question ("are all plug in units are represented via 'On/Off plug-in unit'?") |
The See https://github.com/dresden-elektronik/deconz-rest-plugin/blob/07fa1bf0fba5254b71667e59f25b6d5b0144ee68/light_node.cpp#L530 for a complete overview of the supported device types and corresponding values for Basically homebridge-hue checks what Note that there are also other devices that are exposed as a |
It sounds quite complex to cover all devices and also if some wall plugs allow dimming and should continue to be lights then there are no common base for the device type and then it might be better to just keep them as light |
I've been thinking about this a bit more and the best way for this is just to have a list of types that will be created as switches instead of lights in hass. So Im not changing anything in pydeconz. Gonna get this done within a few weeks |
Will be solved by home-assistant/core#15752 |
Awesome 🎉 |
@timbru31 if you have the time, it would be great if you could try it out since I don't have any power plugs |
Sure, will do! |
The PR is done and awaiting review so this issue can be closed. |
@ebaauw I was coming across this issue while doing research on why the SP120 (via Deconz) shows as a Lightbulb instead of a switch. From what I’ve read there has been a fix for this, but somehow this doesn’t show up on my end. Any chance there’s a regression? I’ll see if I can find out why, but I’m not too familar with the homebridge-hue codebase. |
I use them myself and they work as expected. You would need to enable debug and look at its type |
Actually I just solved it myself by running the |
Sadly deconz exposes my Osram Smart+ Plugs (https://www.osram-lamps.com/ecatalog/smart-home/smart-home-components/smart-plug/index.jsp) as lights, but they have the type
On/Off plug-in unit
. It would be awesome if this project would expose these entites as switches instead of lights.Example from deconz API:
Let me know if I can help you with that.
Thanks in advance!
The text was updated successfully, but these errors were encountered: