Re: [122] Philips Hue support
Posted: Monday 27 October 2014 8:54
Implemented in #2090Blueone wrote:it is possible to change the colors from the lights live when adding the lights to a scene?
Implemented in #2090Blueone wrote:it is possible to change the colors from the lights live when adding the lights to a scene?
Yes, that is it. You cant fill in a username by yourself. Maybe good idea to disable that input box and say next to it will be automatically filled! This is confusing!gizmocuz wrote:Leave the username empty, then press register, it should give you a new username.
i think domoticz is to short, or because it is registered as device 'domoticz' you can not also use the username 'domoticz'
Add a bridge to the hardware page but DON'T fill in the username, just click "Register on bridge", a username is generated automatically.globalassist wrote:I don't get it.
Using build 2084 on Windows, I can only add the Hue Bridge with username "newdeveloper" which I created on the Hue Bridge.
I cannot register it or add it with a different username (it also does not generate a user).
Even when I add it with the newdeveloper-user it doesn't list any lights.
In the logging the following is displayed:
Tue Oct 28 20:44:06 2014 Philips Hue: Worker started...
Tue Oct 28 20:44:06 2014 EventSystem stopped...
What am I doing wrong?
I suggested that in a separate topic alreadyBlueone wrote:Everything is working goed now![]()
Is it possible to read the current color from lights in the webinterface from domoticz? (maybe with a text field below the rgb color picker or something?)
Can you post the output ofglobalassist wrote:I really hate to bother you guys with this, but I'm still not getting it to work.
The register-proces works now (creates a random user) and then I press "add" and everything seems ok.
However, there are no lights added to the devices tab.
Screenshot added:
Using the new functionality of otherdevices_svalues for the Hue lightsgizmocuz wrote:In the next beta you have the sat;hue in the sValue
The svalues don't seem to change (v2.2095), I have had a look at the code, but afraid my C++ is not up to understand the abstraction.gizmocuz wrote:When you change the hue of a light, wait at least 10 seconds, then check the svalue in the database, it should be there (see the code)
Code: Select all
commandArray = {}
print('Hue Lamp 1 '..tostring(otherdevices_svalues['Hue Lamp 1']))
print('Hue Lamp 2 '..otherdevices_svalues['Hue Lamp 2'])
print('Hue Lamp 3 '..otherdevices_svalues['Hue Lamp 3'])
return commandArray
Code: Select all
Fri Oct 31 08:38:18 2014 LUA: Hue Lamp 1 209;13198
Fri Oct 31 08:38:18 2014 LUA: Hue Lamp 2 209;13198
Fri Oct 31 08:38:18 2014 LUA: Hue Lamp 3 209;13198
Fri Oct 31 08:38:18 2014 Script event triggered: /home/pi/domoticz/scripts/lua/script_device_hue_test.lua
Fri Oct 31 08:38:31 2014 LUA: Hue Lamp 1 209;13198
Fri Oct 31 08:38:31 2014 LUA: Hue Lamp 2 209;13198
Fri Oct 31 08:38:31 2014 LUA: Hue Lamp 3 209;13198
Fri Oct 31 08:38:31 2014 Script event triggered: /home/pi/domoticz/scripts/lua/script_device_hue_test.lua
Fri Oct 31 08:38:55 2014 LUA: Hue Lamp 1 209;13198
Fri Oct 31 08:38:55 2014 LUA: Hue Lamp 2 209;13198
Fri Oct 31 08:38:55 2014 LUA: Hue Lamp 3 209;13198
Fri Oct 31 08:38:55 2014 Script event triggered: /home/pi/domoticz/scripts/lua/script_device_hue_test.lua
Fri Oct 31 08:39:04 2014 LUA: Hue Lamp 1 209;13198
Fri Oct 31 08:39:04 2014 LUA: Hue Lamp 2 209;13198
Fri Oct 31 08:39:04 2014 LUA: Hue Lamp 3 209;13198
Fri Oct 31 08:39:04 2014 Script event triggered: /home/pi/domoticz/scripts/lua/script_device_hue_test.lua
Fri Oct 31 08:39:07 2014 LUA: Hue Lamp 1 209;13198
Fri Oct 31 08:39:07 2014 LUA: Hue Lamp 2 209;13198
Fri Oct 31 08:39:07 2014 LUA: Hue Lamp 3 209;13198
Fri Oct 31 08:39:07 2014 Script event triggered: /home/pi/domoticz/scripts/lua/script_device_hue_test.lua
Fri Oct 31 08:39:18 2014 LUA: Hue Lamp 1 209;13198
Fri Oct 31 08:39:18 2014 LUA: Hue Lamp 2 209;13198
Fri Oct 31 08:39:18 2014 LUA: Hue Lamp 3 209;13198
Fri Oct 31 08:39:18 2014 Script event triggered: /home/pi/domoticz/scripts/lua/script_device_hue_test.lua
Fri Oct 31 08:39:31 2014 LUA: Hue Lamp 1 209;13198
Fri Oct 31 08:39:31 2014 LUA: Hue Lamp 2 209;13198
Fri Oct 31 08:39:31 2014 LUA: Hue Lamp 3 209;13198
Fri Oct 31 08:39:31 2014 LUA: Air Quality 0
Code: Select all
{"1":{"state": {"on":true,"bri":249,"hue":174,"sat":250,"xy":[0.6686,0.3242],"ct":500,"alert":"none","effect":"none","colormode":"xy","reachable":true}, "type": "Extended color light", "name": "Hue Lamp 1", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }},"2":{"state": {"on":true,"bri":251,"hue":65527,"sat":253,"xy":[0.6736,0.3221],"ct":500,"alert":"none","effect":"none","colormode":"xy","reachable":true}, "type": "Extended color light", "name": "Hue Lamp 2", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }},"3":{"state": {"on":true,"bri":124,"hue":58085,"sat":253,"xy":[0.4693,0.2087],"ct":385,"alert":"none","effect":"none","colormode":"xy","reachable":true}, "type": "Extended color light", "name": "Hue Lamp 3", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }}}
No this is not supported, but with a bit of work, you can make this work....mvdarend wrote:Thanks for adding Hue support. I've just downloaded Domoticz to try it out, and all works well, great
One thing I'm missing though is the 'transitiontime' argument, is there a way to accomplish this (via the interface of LUA)? As it's my first day working with Domoticz I'm very unfamiliar with the system.
The reason I want this is for a wake up light, and soft transitions from one scene to another.
Thanks in advance for any help.