def get_light_gamut(modelId):
if modelId in ('LST001', 'LLC010', 'LLC011', 'LLC012', 'LLC006', 'LLC007', 'LLC013'):
return GamutA
elif modelId in ('LCT001', 'LCT007', 'LCT002', 'LCT003', 'LLM001'):
return GamutB
elif modelId in ('LCT010', 'LCT014', 'LCT011', 'LLC020', 'LST002'):
return GamutC
else:
raise ValueError
return None
color_space: HueA
set_rgb_template: '{"state":"ON","brightness":{{brightness}},"color":{"x":{{x}},"y":{{y}}}}'
siclark wrote:Has your zigbee stick arrived yet?
FlyingDiver wrote:siclark wrote:Has your zigbee stick arrived yet?
Yeah, I have it working on an rPi, but I have no Zigbee devices so can't test it with anything. Don't really want to spend a lot on devices that I have no specific need for.
siclark wrote:Extra thanks in that case in that this dev wont benefit you at all.
{"state": "ON", "brightness": 0 }
{"state":"OFF","brightness":0,"color":{"x":0.380438429420364,"y":0.376746069841299},"color_temp":250,"linkquality":39,"last_seen":"2020-06-30T21:43:02.219Z"}
{"state":"OFF","brightness":79,"color":{"x":0.380438429420364,"y":0.376746069841299},"color_temp":250,"linkquality":39,"last_seen":"2020-06-30T21:43:27.295Z"}
Users browsing this forum: No registered users and 2 guests