Commit 180c5712 authored by nextime's avatar nextime

Another RGBCHAN add

parent d320968d
...@@ -2120,6 +2120,12 @@ class domotikaService(service.Service): ...@@ -2120,6 +2120,12 @@ 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