Can it be that your bri value gets negative? You substract 30 from the current bri but when it’s smaller then 30 you should round it to max 0. That is not handled in your current script. Also needed for dimming up to maximize to 100.
Thank for your template, i can success to control multi Hue bridge, but i face othe problem, for now philip hue have other type only not for RGB, it's can change the color temperture form 2700K to 6500K, is there any script for those lighting?
I was wondering how to save the resident feedback script (what is the resident interval) since it has a resident function in itself. Or can I remove the infinite loop in case it is stored as a resident script?
Hey guys,
I tried the Hue script to start with my SE-Wiser for knx.
it took a while (I'm totally new to it and has to learn everything first) but it works!
And the feedback works great too.
Now my question. I also want to operate the Hue lamps via my KNX buttons (SE - 627644). Preferably only via 1 button .... short press = on / off .... long press = dimming up / down.
The buttons in the ETS5 only have 1 bit for on / off and 4 bit for dimming.
On / off already works, but dimming doesn't work. The script uses 1byte for dimming, and I can't set that to a button. Or am I doing something wrong?
hey it worked great
But I didn't use the 8-bit linear regulator, it didn't work.
I have left the dimmer function for the switch and set the dimmer function to send cyclically. So it worked.
Big thanks again ... you guys are great
Im trying to get this script to work, but as i'm a novice i need a little help. Last week i bought a Hue Bridge and a LED strip for outdoor use. It works with the Hue App and i know the IP of the Hue Bridge
I copy/pasted file user.hue_v2.lua into user libraries; modified the IP-Adress, but i don't have the user.hue as the hue commands script gives error:
I copy/pasted file resident hue feedback_v2.lua into Resident script
I copy/pasted file hue commands_v2.lua (until the Event based parts) into Resident script. ==> See error above
Created 3 event based scripts from the remaining code in hue commands_v2.lua and modified the groupadresses to the correct ones for lamp 1.
What am i doing wrong and how do i get a user id for the homelynk?
You need to create the user library’user.hue’ to be able to use the scripts, when you start you need set the IP address of the bridge in the userlib and you need to to press the button on the HUE bridge and run bridgesetuo() to get the token that is also filled in the user library. When that is setup you can use the feedback and commands.
15.06.2020, 08:05 (This post was last modified: 15.06.2020, 08:06 by Erwin van der Zwart.)
Hi,
Currently the feedback script uses the command getHueLights() to get the JSON response from the bridge for the induvidual lamps, and this response is processed further to sync the KNX objects according the light states.
If you want this also for groups you need to use the command getHueGroups() and change the feedback script so it will process the JSON response from the bridge in the same way, so this means you need to run getHueGroups(), check the result and modify the things you need to have.
31.07.2020, 07:53 (This post was last modified: 31.07.2020, 07:53 by Erwin van der Zwart.)
Hi,
I checked and line 21 is handling the response of the function getHueLights() that is located in the user.hue, so i guess you use a older version of the user lib.
Can you try to replace your user.hue with this version? A restart might be required.