Domoticz & OSRAM Lightify

Compatibility (hardware, devices and OS)
marczu83
Posts: 15
Joined: Tuesday 19 August 2014 14:19
Target OS: Raspberry Pi
Domoticz version:
Contact:

Domoticz & OSRAM Lightify

Post by marczu83 » Monday 13 April 2015 11:19

Is there any possibility that work with domoticz?
I know that use ZigBee

BluesBro
Posts: 77
Joined: Tuesday 13 August 2013 19:55
Target OS: -
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by BluesBro » Monday 13 April 2015 11:59

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/

Banjer
Posts: 39
Joined: Sunday 04 January 2015 16:17
Target OS: Raspberry Pi
Domoticz version:
Location: The Netherlands
Contact:

Re: Domoticz & OSRAM Lightify

Post by Banjer » Monday 13 April 2015 14:02

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.

User avatar
fl1p
Posts: 57
Joined: Friday 19 July 2013 12:27
Target OS: Raspberry Pi
Domoticz version: beta
Location: Belgium
Contact:

Re: Domoticz & OSRAM Lightify

Post by fl1p » Monday 22 June 2015 12:47

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?

User avatar
Derik
Posts: 1833
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Domoticz & OSRAM Lightify

Post by Derik » Sunday 19 July 2015 9:33

Are the lightify working well in Domoticz?
Also the led strips???
And the garden lights?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups

BluesBro
Posts: 77
Joined: Tuesday 13 August 2013 19:55
Target OS: -
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by BluesBro » Monday 09 November 2015 12:38

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"

BluesBro
Posts: 77
Joined: Tuesday 13 August 2013 19:55
Target OS: -
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by BluesBro » Wednesday 06 January 2016 16:56


alfred_j_kwak
Posts: 253
Joined: Friday 20 September 2013 18:49
Target OS: Raspberry Pi
Domoticz version: 2.3530
Location: Finland
Contact:

Re: Domoticz & OSRAM Lightify

Post by alfred_j_kwak » Wednesday 06 January 2016 18:28

I'm very interested.
Don't like Philips 'safety feature' so Osram in local control sounds good.

alfred_j_kwak
Posts: 253
Joined: Friday 20 September 2013 18:49
Target OS: Raspberry Pi
Domoticz version: 2.3530
Location: Finland
Contact:

Re: Domoticz & OSRAM Lightify

Post by alfred_j_kwak » Friday 08 January 2016 21:27

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-)

vanbako
Posts: 8
Joined: Thursday 18 February 2016 17:54
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by vanbako » Thursday 18 February 2016 18:08

I found out today that the lightify api is available at:
https://eu.lightify-api.org/

Enjoy!

User avatar
gizmocuz
Posts: 8491
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Domoticz & OSRAM Lightify

Post by gizmocuz » Thursday 18 February 2016 18:32

Nice, looks easy to implement
Maybe you can start with the philips hue class as example ?
Quality outlives Quantity!

alfred_j_kwak
Posts: 253
Joined: Friday 20 September 2013 18:49
Target OS: Raspberry Pi
Domoticz version: 2.3530
Location: Finland
Contact:

Re: Domoticz & OSRAM Lightify

Post by alfred_j_kwak » Sunday 21 February 2016 20:12

Seems that API still uses Osram cloud to control lights instead of local port. Not good.

vanbako
Posts: 8
Joined: Thursday 18 February 2016 17:54
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by vanbako » Sunday 21 February 2016 22:35

Ah, yes indeed. I guess they will not create an api which works locally.

vanbako
Posts: 8
Joined: Thursday 18 February 2016 17:54
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by vanbako » Friday 17 June 2016 11:11

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?

amz4u2nv
Posts: 33
Joined: Friday 21 August 2015 16:04
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by amz4u2nv » Monday 20 June 2016 10:03

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

amz4u2nv
Posts: 33
Joined: Friday 21 August 2015 16:04
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by amz4u2nv » Wednesday 29 June 2016 15:10

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.

antares
Posts: 56
Joined: Saturday 24 September 2016 9:25
Target OS: Raspberry Pi
Domoticz version: beta
Location: Germany
Contact:

Re: Domoticz & OSRAM Lightify

Post by antares » Thursday 06 October 2016 9:06

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?

vanbako
Posts: 8
Joined: Thursday 18 February 2016 17:54
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by vanbako » Thursday 06 October 2016 13:08

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

User avatar
thorbj
Posts: 198
Joined: Thursday 20 November 2014 23:11
Target OS: Raspberry Pi
Domoticz version: beta
Location: Norway
Contact:

Re: Domoticz & OSRAM Lightify

Post by thorbj » Saturday 29 October 2016 16:09

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!
2xRaspberry Pi Model 2 w/RaZberry z-wave chip (master/slave)|Fibaro Wall Plug|Fibaro Universal Dimmer 500W|Aeon Labs Multisensor|RFXtrx433E|Nexa WMR-1000|Nexa Pe-3|Nexa Remote|Nexa LGDR3500|Lightify Gateway|Lightify RGBW bulb

fergalom
Posts: 71
Joined: Thursday 24 September 2015 11:44
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by fergalom » Tuesday 01 November 2016 13:02

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

[email protected] ~ $ 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests