15.12.2021, 13:53
(15.12.2021, 05:50)admin Wrote: You are right about the wrong variable in the code. It seems that groups can only be accessed by a number but not by a name. Group 0 is a broadcast group that controls all lights together.
ok thanks.... another question:
-- Set name (Lookup in HUE app under light configuration) and feedback adresses (don't change statevalue, brivalue and colorvalue as they are used as memoryfield)
addressmapping = {
-- Name -- On/Off FB -- Bright FB -- Color FB
['Led Centrale Down'] = {state = '11/4/10', bri = '11/4/13', rgb = '11/4/12', statevalue = '', brivalue = '', colorvalue = ''},
['Led Destro Down'] = {state = '11/4/20', bri = '11/4/23', rgb = '11/4/22', statevalue = '', brivalue = '', colorvalue = ''},
['Led Sinistro Down'] = {state = '11/4/30', bri = '11/4/33', rgb = '11/4/32', statevalue = '', brivalue = '', colorvalue = ''},
['Led Centrale Up'] = {state = '12/4/10', bri = '12/4/13', rgb = '12/4/12', statevalue = '', brivalue = '', colorvalue = ''},
['Led Destro Up'] = {state = '12/4/20', bri = '12/4/23', rgb = '12/4/22', statevalue = '', brivalue = '', colorvalue = ''},
['Led Sinistro Up'] = {state = '12/4/30', bri = '12/4/33', rgb = '12/4/32', statevalue = '', brivalue = '', colorvalue = ''}
I can't get any feedback (neither commands) form rgb addresses.... actually I set them as 3 byte unsigned integer (232.600 colours), maybe is that wrong?
Tnx
Peppe