Commit d320968d authored by nextime's avatar nextime

Added rgbchan option

parent ff6b84d7
...@@ -1932,6 +1932,11 @@ class domotikaService(service.Service): ...@@ -1932,6 +1932,11 @@ class domotikaService(service.Service):
sel=sel.replace("DIMMER:","3,") sel=sel.replace("DIMMER:","3,")
else: else:
sel=sel.replace("DIMMER:","03") sel=sel.replace("DIMMER:","03")
elif sel.startswith("RGBCHAN:"):
if ',' in sel:
sel=sel.replace("RGBCHAN:","4,")
else:
sel=sel.replace("RGBCHAN:","04")
if ',' in sel: if ',' in sel:
# '255,255,255' # '255,255,255'
sel=map(int, sel.split(',')) sel=map(int, sel.split(','))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment