01.08.2025, 04:53
Does your Scrips (user.hue) includes this line ?
if not just add this function, then you are good to go with the only ct script
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