Controls your miLights bulbs and iBox2 with Domoticz and retry commands when sending fails.
Tested with 8 watt bulbs RGBW/WW/CW
Copy milight.py to /home/pi/domoticz/scripts/python and set chmod to 777 on the file
Change the follow setting to your own settings with Notepad++
- IBOX_IP = "192.168.1.18"
- IBOX_MODEL = "80 00 00 00 11"
- UDP_PORT_SEND = 5987
- UDP_PORT_RECEIVE = 55054
- UDP_MAX_TRY = 5
- UDP_TIMEOUT = 5
- DOMOTICZ_IP = "192.168.1.17"
- DOMOTICZ_PORT = "8080"
- DOMOTICZ_LOG = 0
/home/pi/domoticz/scripts/python/milight.py 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.py 00 ON
- OFF action dummy switch: script:///home/pi/domoticz/scripts/python/milight.py 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 |