(05.09.2020, 20:24)Erwin van der Zwart Wrote: Hi,
You have 2 mistakes in your script:
I just tested with my latest user lib and this command and works perfectCode:response = sendToGroup(group_id,body_msg)
should be
response = sendToGroup(Group_id,body_msg)
and
response = sendToGroup(Group_num,body_msg)
should be
response = sendToGroup(Group_id,body_msg)
Code:require('user.hue')
require('json')
--log(json.pdecode(getHueGroups())) -- enable to check group number
--setBrightnessGroup(1,100) -- Group, brightness in %
setBrightnessCTGroup(1,60,2000) -- Group, brightness in %, CT in Kelvin
BR,
Erwin
Hi Erwin,
finaly i found time to Solve Group Control, unfortunanly i cant control Groups by Group Adress cause the Brightness Value is the Script by 100%. How could i change that ?
NVM!!! Sometimes the Solutuoion is just to easy ( shame on me )
of course it has to be like this
require('user.hue')
require('json')
--log(json.pdecode(getHueGroups())) -- enable to check group number
value = event.getvalue() -- 1 byte unsigned integer scale 0 - 100
setBrightnessGroup(3,value) -- Group, brightness in %
--setBrightnessCTGroup(1,60,2000) -- Group, brightness in %, CT in Kelvin