21.04.2023, 06:45
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