Logic Machine Forum
Hue Brightness feedback - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Hue Brightness feedback (/showthread.php?tid=890)

Pages: 1 2 3 4 5 6


RE: Hue Brightness feedback - stianj - 31.07.2025

(30.07.2025, 19:27)NKereshki Wrote: I just want to clarify that I also have a physical KNX button through which I turn the lights on/off and dim them. If I separate all controls from feedback, I can't synchronize the KNX button and sometimes I have to press it twice. What occurred to me is if it also "listens" to the feedback group address.

This is "normal" KNX behaviour, and you fix it by adding the status GA to the switch object for the KNX switch in ETS.

Like this: 

   

1/0/23 is the switch object, 1/3/23 is the status object. It's important that the switch object is first.


RE: Hue Brightness feedback - Sral1987 - 01.08.2025

Does your Scrips (user.hue) includes this line  ?

Code:
function setCT(Light_num,ct)
  ct = math.floor(1000000 / ct)
  ct = math.min(500, ct)
  ct = math.max(154, ct)
  --HTTP request send
  body_msg = '{"on":true,"ct":'..ct..'}'
  return sendToLight(Light_num,body_msg)
end
  if not just add this function, then you are good to go with the only ct script