05.09.2020, 20:24
(This post was last modified: 05.09.2020, 20:26 by Erwin van der Zwart.)
Hi,
You have 2 mistakes in your script:
I just tested with my latest user lib and this command and works perfect
BR,
Erwin
You have 2 mistakes in your script:
Code:
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
user.hue v5.lua (Size: 11.17 KB / Downloads: 67)
BR,
Erwin