Page 1 of 2

Domoticz & OSRAM Lightify

Posted: Monday 13 April 2015 11:19
by marczu83
Is there any possibility that work with domoticz?
I know that use ZigBee

Re: Domoticz & OSRAM Lightify

Posted: Monday 13 April 2015 11:59
by BluesBro
I second this request! Would be a good and cheap alternative to the rather costly phillips hue and lifx.
Edit: Should be a walk in the park for the gifted people behind Domoticz
http://www.reddit.com/r/huelights/comme ... _question/

Re: Domoticz & OSRAM Lightify

Posted: Monday 13 April 2015 14:02
by Banjer
BluesBro wrote: Edit: Should be a walk in the park for the gifted people behind Domoticz
The fact that they are compatible with Hue doesn't mean native support in Domoticz is easy, it just means you can "attach" them to a Hue bridge and use the current support for Hue in Domoticz.
To get native support for the Lightify Gateway Osram needs to hurry up and get the API out.

Re: Domoticz & OSRAM Lightify

Posted: Monday 22 June 2015 12:47
by fl1p
So if I understand this well, you can use the Lightify lamps with the Hue bridge and they work in Domoticz like they are Hue lamps?

Re: Domoticz & OSRAM Lightify

Posted: Sunday 19 July 2015 9:33
by Derik
Are the lightify working well in Domoticz?
Also the led strips???
And the garden lights?

Re: Domoticz & OSRAM Lightify

Posted: Monday 09 November 2015 11:38
by BluesBro
I asked Osram about the API and here is their answer:

"Dear Oyvind,

I am happy to tell you that we are currently working on the publishing of an open Cloud API as well as Documentation.

The information will be published on our website: www.osram.com/lightify You can also find updated info in our FAQ.

Please let me know if I can help you with any other matter.

Kind regards,
Stefan

Your LIGHTIFY Support-Team"

Re: Domoticz & OSRAM Lightify

Posted: Wednesday 06 January 2016 15:56
by BluesBro

Re: Domoticz & OSRAM Lightify

Posted: Wednesday 06 January 2016 17:28
by alfred_j_kwak
I'm very interested.
Don't like Philips 'safety feature' so Osram in local control sounds good.

Re: Domoticz & OSRAM Lightify

Posted: Friday 08 January 2016 20:27
by alfred_j_kwak
I check that documentation about light controlling and managed somehow control my one Lightify lamp with python script. There seems to be light in the end of the tunnel - train maybe.
Here is everything needed: https://github.com/skx/Device-Osram-Lig ... ify/API.pm

I also managed to get light temperature setting working with own python code, but couldn't figure out the logic in it.
My knowledge about programming isn't enough to code anything 'real', but I think that I'm at least able to master my single Lightify bulb. 8-)

Re: Domoticz & OSRAM Lightify

Posted: Thursday 18 February 2016 17:08
by vanbako
I found out today that the lightify api is available at:
https://eu.lightify-api.org/

Enjoy!

Re: Domoticz & OSRAM Lightify

Posted: Thursday 18 February 2016 17:32
by gizmocuz
Nice, looks easy to implement
Maybe you can start with the philips hue class as example ?

Re: Domoticz & OSRAM Lightify

Posted: Sunday 21 February 2016 19:12
by alfred_j_kwak
Seems that API still uses Osram cloud to control lights instead of local port. Not good.

Re: Domoticz & OSRAM Lightify

Posted: Sunday 21 February 2016 21:35
by vanbako
Ah, yes indeed. I guess they will not create an api which works locally.

Re: Domoticz & OSRAM Lightify

Posted: Friday 17 June 2016 11:11
by vanbako
I finally built my own zigbee gateway with a rest api (perl) to control it.
Is a rest client included in domoticz to be able to use it?

Re: Domoticz & OSRAM Lightify

Posted: Monday 20 June 2016 10:03
by amz4u2nv
Has anyone figured out how to use lightify bulbs with Domoticz. I got hue to work with it but it won't completely turn off the bulbs.

Any ideas before I send them back

Re: Domoticz & OSRAM Lightify

Posted: Wednesday 29 June 2016 15:10
by amz4u2nv
Found solution using the perl script -
https://github.com/skx/Device-Osram-Lightify
Call perl script using shell script.
Then create a dummy switch on domoticz and give the path of the script to the on and off parameters, and it should work.

Re: Domoticz & OSRAM Lightify

Posted: Thursday 06 October 2016 9:06
by antares
Is this now locally controlling Lightify or through OSRAM cloud services? Does it only work for bulbs or also other devices like wall-plugs, for instance?

Re: Domoticz & OSRAM Lightify

Posted: Thursday 06 October 2016 13:08
by vanbako
Hello antares,
I'm working on a zigbee gateway without cloud service which works with osram bulbs.
Read more in this topic: viewtopic.php?f=56&t=12464

Re: Domoticz & OSRAM Lightify

Posted: Saturday 29 October 2016 16:09
by thorbj
amz4u2nv wrote:Found solution using the perl script -
https://github.com/skx/Device-Osram-Lightify
Call perl script using shell script.
Then create a dummy switch on domoticz and give the path of the script to the on and off parameters, and it should work.
How would I use this? There isn't any how-to for dummies on that git .
What command do I use to download it on my pi. And do I have to compile it somehow?

Thanks!

Re: Domoticz & OSRAM Lightify

Posted: Tuesday 01 November 2016 12:02
by fergalom
I use this also for a lightify hub and dimmable white leds (no rgb).

Set everything up first using lightify android/ios app. Also figure out the Lightify hub lan ip address

Clone this to your Rpi

Code: Select all

git clone [email protected]:skx/Device-Osram-Lightify.git
cd into Device-Osram-Lightify directory

Code: Select all

make
sudo make install
You should now be able to query your hub and get similar output

Code: Select all

pi@raspberrypi ~ $ ol --hub 192.168.1.13 --list
Name: B40TW 01
        MAC:841826000009688f
        version:1.2.4.0
        Brightness:6
        RGBW:1,0,0,255
        Temperature:2702
        Status:on
Name: B40TW 02
        MAC:84182600000965c0
        version:1.2.4.0
        Brightness:7
        RGBW:1,0,0,255
        Temperature:2702
        Status:on
Note the name of each device, eg "B40TW 01"

Create (in my case) 2 dummy dimmer switches with the following in the on/off action of the devices

Code: Select all

script:///usr/local/bin/ol --hub 192.168.1.13 --on="B40TW 01"
script:///usr/local/bin/ol --hub 192.168.1.13 --off="B40TW 01"
Image

Next for the dimming, create a script in ~/domoticz/scripts/lua called "script_device_lightify.lua"

Code: Select all

commandArray = {}


if (devicechanged['Bedroom Sidelamp']) then
        v = otherdevices_svalues['Bedroom Sidelamp']
                print("Brightness V= " ..v)
                if (tonumber(v) <= 6) then
                        v=6
                        os.execute('ol --hub 192.168.1.13 --name="B40TW 01" --brightness=' ..v)
                        print("Bedroom Sidelamp brightness " ..v)
                else
                    os.execute('ol --hub 192.168.1.13 --name="B40TW 01" --brightness=' ..v)
                        print("Bedroom Sidelamp brightness " ..v)
                end
end

if (devicechanged['Bedroom Sidelamp 2']) then
        v = otherdevices_svalues['Bedroom Sidelamp 2']
                print("Brightness V= " ..v)
                if (tonumber(v) <= 6) then
                        v=6
                        os.execute('ol --hub 192.168.1.13 --name="B40TW 02" --brightness=' ..v)
                        print("Bedroom Sidelamp 2 brightness " ..v)
                else
                    os.execute('ol --hub 192.168.1.13 --name="B40TW 02" --brightness=' ..v)
                        print("Bedroom Sidelamp 2 brightness " ..v)
                end
end
NOTE:
Possibly better ways to do this but it works for me
RGB lights should be possible also but you will need to figure out the ol command string and also the lua side.