09.11.2020, 08:23
Erwin's script uses getHueLights() which does not include groups. Try this to get info for both lights and groups together (replace the relevant script part with this):
Code:
-- loop indefenitly
while true do
reply = getHueLights()
mylamps = json.decode(reply)
-- get groups start
reply = getHueGroups()
groups = json.pdecode(reply)
if type(groups) == 'table' then
for k, v in pairs(groups) do
mylamps[ k ] = v
end
end
-- get groups end
for _, item in pairs(mylamps) do