I have the latest plugin, but i noticed if I change the lights using the native app , it’s not updated on Vera at all, even though polling is enabled and set to 60. ???
Try attached replacement.
Also attaching lastest version to the first post.
New version posted (zip file in the first post of this thread):
- Fixed a small error in storing presets when in HS (hue/sat) mode
- Added uPnP methods for setting color temperature, hue, and saturation. This allows scenes to set these values programmatically. For example: http://192.168.2.14:3480/data_request?output_format=json&id=lu_action&DeviceNum=121&serviceId=urn:intvelt-com:serviceId:HueColors1&action=SetColorTemperature&ColorTemperature=50
CT, hue and sat values go from 0 to 100
This thing is now available in the Plugin store ![]()
Nice!!!
Should one download the plugin if they already have the raw code? Maybe this is better for receiving updates?
Thanks
Better to get the plugin I suppose, but the device will be recreated and you’ll have to remove the old one.
New version (0.84) awaits approval for the MiOS app store. Zip file in the first post of this thread has been updated. To upgrade from 0.83, replace the I_ file with attached version.
This contains 1 small change. If you run scenes setting colors as well as light levels, you may have noticed that the color isn’t set correctly if the light was off: if the lght is off, color commands will not work. This fixes the issue by setting the light level to 1% if the light is off, when setting a color.
Much better. Thanks!
Hi,
I am getting :
01 01/03/13 2:33:29.693 LuaInterface::CallFunction_Startup-1 device 18 function startup failed [string "..."]:167: attempt to perform arithmetic on local 'temperature' (a nil value) <0x2bdc9680>
01 01/03/13 2:33:29.693 LuImplementation::StartLua running startup code for 18 I_PhilipsHue1.xml failed <0x2bdc9680>
In the log file, any idea as of what may be causing the issue ? The bridge is linked and bulbs are showing inside vera… I have other Phillips equipements linked to the bridge (living colors and living white), I guess it might be the issue as I am not sure they are sending back a temperature when queried. Again, just guessing, didn’t have time to check right now…
Ok, seems I was right in my guessing, non HUE bulbs are not reporting back a ct, thus the parameter is nil and causes the crash.
Here is a capture for other phillips devices :
Livingcolor gen2 :
{
"state": {
"on": true,
"bri": 236,
"hue": 19229,
"sat": 192,
"xy": [
0.4219,
0.5113
],
"alert": "none",
"effect": "none",
"colormode": "xy",
"reachable": true
},
"type": "Color light",
"name": "living color gen2",
"modelid": "LLC001",
"swversion": "0",
"pointsymbol": {
"1": "none",
"2": "none",
"3": "none",
"4": "none",
"5": "none",
"6": "none",
"7": "none",
"8": "none"
}
}
LivingWhite :
{
"state": {
"on": false,
"bri": 0,
"alert": "none",
"effect": "none",
"reachable": true
},
"type": "Dimmable light",
"name": "Living White",
"modelid": "LWB001",
"swversion": "0",
"pointsymbol": {
"1": "none",
"2": "none",
"3": "none",
"4": "none",
"5": "none",
"6": "none",
"7": "none",
"8": "none"
}
}
Dimmer smartlink :
{
"state": {
"on": false,
"bri": 0,
"alert": "none",
"effect": "none",
"reachable": true
},
"type": "Dimmable plug-in unit",
"name": "Prise dim",
"modelid": "LWL001",
"swversion": "0",
"pointsymbol": {
"1": "none",
"2": "none",
"3": "none",
"4": "none",
"5": "none",
"6": "none",
"7": "none",
"8": "none"
}
}
Thanks for the detailed logs
I’ll add some stuff to the plugin to support non-Hue lights. The plugin is still a bit hacky…
Try the attached file. It should prevent the temperature error, and when adding new lamps it will not create a color preset device for lamps that do not support color.
I use version 0.85 of the HUE plugin on my Vera Lite. I have added a couple of new bulbs to my system. Is there a way to copy and paste the color presets from one HUE Bulb which is already configured to a new HUE bulb? Where are the color presets stored?
Hi,
New to forum, Hue and vera plugin. Firstly just want to say a huge thank you for developing this plugin, it solves so many headaches and allows me to start creating the smart home I’ve been working towards for ages!
Just wanted to give feedback on a couple of observations / issues which are hopefully useful for you:
-
When Installing, I had to do quite a few Vera Refreshes to get all the lamps to show up with all the correct controls visible.
-
When setting colours, quite often the colour code does not appear next to the button. but if you save and refresh they appear. (one lamp seems to be more problematic than others)
3.It would be great to have more colour preset buttons - I use 1,2,3 for warm, normal, cool whites, then only have 4,5,6 for colours which doesn’t do the hue justice with so many great colours to use. would be great to have at least 4 more if possible ![]()
-
I currently use the Hue app to set the colour (using a colour picker image) then use your plugin to save. It would be great to have a colour picker built in to the plugin.
-
Be great to be able to ‘name’ the colour presets if possible
-
Be great to be able to ‘copy’ colour presets from one lamp to another (as suggested by hardyda in previous post)
many thanks,
Ed
@Ed & Hardyda, some good suggestions and feedback there
At the moment there’s not much time to work on this plugin; I am rather busy with the next release of HomeWave (and my day job…). I am hoping to add a decent color picker at some point as well as clean up the code a bit
Thanks for the all the work you have done so far with the hue plugin and thanks for your work on HomeWave! It is my most used paid for app on my iPad these days.
Hi inveltr
great work you’re doing here and especially on Homewave - it replaced completely Squareconnect and raised WAF-factor incredibly!
When you’ve got some time left here two wishes:
- Could you explain the correct values and the syntax for the action ChangeColor (I am a noob in Luup-Scripting…)?
- Could you implement the function ColorCycle?
keep on with your valuable work!
Great work with the plugin! Its great being able to simply use the hue lamp with vera.
One feature that would be great to have is the ability to use the alert funktion of the hue. When the alarm goes of the entire house start to flash!
Good news! Philips officially published the Hue API: http://developers.meethue.com/
@intveltr it’s probably a good idea to make sure your plugin uses the official API ![]()
Nice ![]()
I’ll have to look into that. It looks like Philips implemented something like MiOS, to discover local Hue hubs by visiting a generic URL on the web. Beats the somewhat iffy uPnP discovery I currently use.