24.04.2023, 06:33
(21.04.2023, 06:45)Erwin van der Zwart Wrote:Code:--Control HUE group from RGB object (color) (use as event based script)
require('user.hue')
value = event.getvalue()
group_id = 1
if value == 0 then
body_msg = '{"on":false}'
sendToGroup(lamp_id,body_msg)
else
setRGBGroup(group_id,value)
end
Hello, Erwin
Thank you very much for the help. It works exactly as I expected. I don't know what we would do without your support.
Best regards,
Nayden Kereshki