-
-
Notifications
You must be signed in to change notification settings - Fork 28.7k
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
Misleading subdevice type for Osram Lightifiy Smart+ Plug #12206
Comments
Hello Does the LIGHTIFY ZigBee 2 Button Wireless Dimmer Switch work with home assistant? |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
Hello, I’m using Home Assistant with hassio image since yesterday and the issue with the Osram Smart+ Plug as light is still there. |
Issue is still present in 0.76.1 |
The same thing occurs with the lightify dimmer switch in the latest release. The switch shows up as a light that cant be controlled. |
the lightify component was initially setup as a You guys may want to file an issue in the upstream library because as of now everything seems to be treated as a light in upstream. |
Is there any progress on this issue? |
I am going to look into this when I have the time. |
At the moment is the only problem that the switches appear in the ui as lights. Would be awesome if you could look into this. |
Some here with 0.77something ;) |
sorry, it seems I will not have time for this. I looked into it for an hour, but I can't easily figure out how to make switches, motion detectors and plugs known to home assistant as these kind of components. The whole osramlightify.py module is only made for lights and not my own code. One workaround would be to not let home assistant auto detect all the lights, switches etc (or only once), but naming them explicitly in the configuration. I think then it should be possible to remove all the components you don't want to see. |
Hello @tfriedel, I'm irritated - Why not using your commit tfriedel/python-lightify@a9617a5#diff-6bd9ebefac120a106919b1e2edf720d8, that we can isolate lights as lights and switches as switches (There should be a new switch component needed) Thanks, Thomas |
@tfriedel @tringler First questions first, I don't think I will/can do all this on my own any soon, so are there people willing to help me out with this? As @dshokouhi mentioned, the component was only written for lights, because that is all I had up to that point. By now I have also switches, and I started to think about implementing them as well. However, I'm not sure how to do this. As a roadmap, I would suggest doing it in two phases.
I think the hardest is 1., because we will, as @tfriedel mentioned, need to make python-lightify aware of switches. As far as I remember this is not implemented yet. The good news is binary-protocol has already done the hard work of reverse engineering the protocol itself. Thus we should be able to add the device types to python-lightify. My vision for 2. is:
Auto detection and implementation of further device classes should be straight forward, but the rewrite of the light groups puzzles me. The problem with the current system is a mismatch between the way HA handles lightify light groups and how lightify handles groups itself. Namely lightify light groups don't have a state. They can't be on or off, you can only switch them on or off, however, HA assigns a state to these groups, by looking at the state of the first light in the group and assuming the state of that light is the same as the group itself. This leads to quite some strange behaviour when dealing with groups of lights. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Home Assistant release (
hass --version
):0.62.1 (also prior versions)
Python release (
python3 --version
):3.6.3
Component/platform:
osramlightify
Description of problem:
An Osram Smart+ Plug connected to Lightify Gateway gets a misleading entity type. It's discovered as "light.plugname". In the UI, the device also has light controls (brightness, color select etc..) where it should only be treated like a switch (on/off)
Expected:
Should be discovered as switch.plugname. But the component only accepts "light" as platform.
There should be also a "Osram Lightify Switch" component
The text was updated successfully, but these errors were encountered: