Controls your miLights iBox2 V6 with Domoticz and retry the command when sending fails. Tested with bulbs RGBW/WW/CW
Copy both files (milight.sh and milight.py) to /home/pi/domoticz/scripts/python and set chmod to 777 on the files
/home/pi/domoticz/scripts/python/milight.sh CMD1 CMD2
00 01 02 03 04
ON OFF NIGHTON WHITEON WW00 WW25 WW50 WW75 WW100 DIM00 DIM25 DIM50 DIM75 DIM100 SATUR00 SATUR25 SATUR50 SATUR75 SATUR100 MODE01 MODE02 MODE03 MODE04 MODE05 MODE06 MODE07 MODE08 MODE09 SPEEDUP SPEEDDOWN
- Add a virtual/dummy switch in Domoticz (see https://www.domoticz.com/wiki/Wemo#Creating_Dummy_Switches)
- ON action dummy switch: script:///home/pi/domoticz/scripts/python/milight.sh 00 ON
- OFF action dummy switch: script:///home/pi/domoticz/scripts/python/milight.sh 00 OFF
Bulb zone | 00 01 02 03 04 |
Bulb on/off | ON OFF NIGHTON WHITEON |
Kelvin warmwhite | WW00 WW25 WW50 WW75 WW100 |
Brightness | DIM00 DIM25 DIM50 DIM75 DIM100 |
Saturation | SATUR00 SATUR25 SATUR50 SATUR75 SATUR100 |
Mode (discomode) | MODE01 MODE02 MODE03 MODE04 MODE05 MODE06 MODE07 MODE08 MODE09 |
Mode Speed up/down | SPEEDUP SPEEDDOWN |