Osram lightify and unreachable bulbs

Hi ! I discovered recently home assistant and I spent a lotttt of time setting everything up :slight_smile: I love the possibilities that this platform offers ! I do have an issue with one of the lights platform I do own. I have a few lightify bulbs and a switch together with the osram gateway. Everything is detected properly by the corresponding osramlightify platform BUT when the link to the bulbs is broken all the lights appear in their last state … In my case this happens when the physical wall switch is used basically cutting electricity to the bulb … which can only be translated as off … with the hue platform you have a nice flag allow_unreachable that allows exactly this (shows the lights as off when they are unreachable). Does anyone knows how this could be achieved with the osram bulbs ?

Thanks!!!

PS: Yes I own as well hue bulbs and philips gateway. I thought initially to pair every bulb with that last one but I just could not … I tried every option I have seen on the net and numerous time without being ever able to pair a bulb to the hue hub if it was paired before to the osram one … That s why I am desperate to find a proper solution with the osram platform :slight_smile :slight_smile:

Thanks a lot in advance to all the persons here that could help !!

Hi,
I looked into this. So this is not trivial, since even the original App sometimes doesn’t detect when a bulb goes offline. I noticed that during the status update from the gateway you get a number which corresponds to the time that has passed since the last connect between bulb and gateway (so should be close to zero for bulbs that are connected). I made a change to python-lightify, which will mark bulbs as off, where this number is > 1 (corresponds to about 5 minutes):


I’m not sure if it’s possible in home assistant to mark bulbs as offline (greyed out maybe) instead of off.
So I tested it and it seems to be working. Note however that if you turn such a bulb on in homeassistant, it will be marked as on for a while (even though in reality it isn’t).
Is that good enough?
I’m going to prepare a pull request soon.
1 Like