I am using two OSRAM Lightify bulbs with Philips Hue hub. If you have no OSRAM Lightify hub like me, you first had to reset the bulbs (On/Off 5 times). Then the inclusion works fine with the philips hue app - even with the older firmware on the bulbs.
There is only one problem. With home-assistant you cannot switch them off. They stay on. I guess this is related to the old firmware on the bulbs.
But I found a solution: You can send the bulbs a command over the Philips Hue hub. Therefor I created an command_line switch and use it in my automations:
- platform: command_line
switches:
buero_licht_tuer:
command_on: "curl --silent -XGET -H 'Content-Type: application/json' http://[*** address of your philips hue hub ***]/api/[*** your generated user - see below ***]/lights"
command_off: "curl --silent -XPUT -H 'Content-Type: application/json' -d '{\"on\":false,\"transitiontime\":0}' http://[*** address of your philips hue hub ***]/api/[*** your generated user - see below ***]/lights/[*** number of the bulb in philips hue hub ***]/state"
You have to replace [*** ⌠***] with your own values.
The command_on isnât really necessary. With homeassistant you can already switch them on. Please look at command_off. There is a json which you must send to turn the bulbs off - -d â{âonâ:false,âtransitiontimeâ:0}â
To learn the api of Philips Hue see https://www.developers.meethue.com/documentation/getting-started. There you can also find information on how to generate a userid which you need to call the api.
Hope this help. I spent some time doing this.