Coder Social home page Coder Social logo

thecsapprentice / milight-v6-ibox2-domoticz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from strontvlieg/milight-v6-ibox2-domoticz

0.0 1.0 0.0 34 KB

Control your miLights iBox2 V6 with Domoticz

License: GNU General Public License v3.0

Python 100.00%

milight-v6-ibox2-domoticz's Introduction

miLight iBox2 control for Domoticz

Controls your miLights bulbs and iBox2 with Domoticz and retry commands when sending fails.
Tested with 8 watt bulbs RGBW/WW/CW

How to install

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

How to use

/home/pi/domoticz/scripts/python/milight.py CMD1 CMD2

CMD1 = Bulb zone

00 01 02 03 04

CMD2 = Bulb command

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

Domoticz example ON/OFF switch

  1. Add a virtual/dummy switch in Domoticz (see https://www.domoticz.com/wiki/Wemo#Creating_Dummy_Switches)
  2. ON action dummy switch: script:///home/pi/domoticz/scripts/python/milight.py 00 ON
  3. OFF action dummy switch: script:///home/pi/domoticz/scripts/python/milight.py 00 OFF

Command line options

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

milight-v6-ibox2-domoticz's People

Contributors

strontvlieg avatar thecsapprentice avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.