Domoticz & OSRAM Lightify

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

marczu83
Posts: 3
Joined: Tuesday 19 August 2014 14:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz & OSRAM Lightify

Post by marczu83 »

Is there any possibility that work with domoticz?
I know that use ZigBee
BluesBro
Posts: 54
Joined: Tuesday 13 August 2013 19:55
Target OS: -
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post 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/
Banjer
Posts: 5
Joined: Sunday 04 January 2015 15:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Domoticz & OSRAM Lightify

Post 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.
User avatar
fl1p
Posts: 17
Joined: Friday 19 July 2013 12:27
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Belgium
Contact:

Re: Domoticz & OSRAM Lightify

Post 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?
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Domoticz & OSRAM Lightify

Post by Derik »

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: 54
Joined: Tuesday 13 August 2013 19:55
Target OS: -
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post 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"
BluesBro
Posts: 54
Joined: Tuesday 13 August 2013 19:55
Target OS: -
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by BluesBro »

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

Re: Domoticz & OSRAM Lightify

Post by alfred_j_kwak »

I'm very interested.
Don't like Philips 'safety feature' so Osram in local control sounds good.
alfred_j_kwak
Posts: 110
Joined: Friday 20 September 2013 18:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Location: Finland
Contact:

Re: Domoticz & OSRAM Lightify

Post 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-)
vanbako
Posts: 8
Joined: Thursday 18 February 2016 16:54
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by vanbako »

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

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

Re: Domoticz & OSRAM Lightify

Post by gizmocuz »

Nice, looks easy to implement
Maybe you can start with the philips hue class as example ?
Quality outlives Quantity!
alfred_j_kwak
Posts: 110
Joined: Friday 20 September 2013 18:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Location: Finland
Contact:

Re: Domoticz & OSRAM Lightify

Post by alfred_j_kwak »

Seems that API still uses Osram cloud to control lights instead of local port. Not good.
vanbako
Posts: 8
Joined: Thursday 18 February 2016 16:54
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post by vanbako »

Ah, yes indeed. I guess they will not create an api which works locally.
vanbako
Posts: 8
Joined: Thursday 18 February 2016 16:54
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post 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?
amz4u2nv
Posts: 31
Joined: Friday 21 August 2015 16:04
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post 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
amz4u2nv
Posts: 31
Joined: Friday 21 August 2015 16:04
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post 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.
antares
Posts: 48
Joined: Saturday 24 September 2016 9:25
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Germany
Contact:

Re: Domoticz & OSRAM Lightify

Post 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?
vanbako
Posts: 8
Joined: Thursday 18 February 2016 16:54
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post 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
thorbj
Posts: 113
Joined: Thursday 20 November 2014 22:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Norway
Contact:

Re: Domoticz & OSRAM Lightify

Post 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!
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: 74
Joined: Thursday 24 September 2015 11:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz & OSRAM Lightify

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest