Milight + Android = Fun

I recently bought a set of Milight (aka Limitless LED, Mi-Light, Easybulb) bulbs including the Wifi bridge. It is really easy to configure and a great value for money.

Goal:

Since I am operating a CR11S Android box, I thought it would be great to control my lights with the box. The website http://www.limitlessled.com/dev gives you an overview of commands you can send to the box via UDP.

What you need:


How it is done:

I have two bulbs in the living room (group 1 and 2) and one in my bed room (group 3) and I've set up the following things:

  • The perfect light for watching TV
    Switch group 1 off, set group 2 to orange and start Netflix
    Tasker XML file: PerfectTVLight.xml
  • Good night
    Switch on group 3 and group 1, wait for 7 minutes then turn off group 1, 2 and put the Android box into standby.
    Tasker XML file: GoodNight.xml
  • Good morning - Sunrise alarm clock / Wake Up Light
    Switch on the light in the bedroom (group 3) with lowest brightness, increase brightness gradually up to full within about 15 minutes. The perfect way to start your day.
    Tasker XML file: GoodMorning.xml
    (The XML is not very pretty but it works like a charm. Feel free to improve and let me know.)

For the first two, I created Tasker Widgets to start them directly on the box. The Good Morning task is started via a time based profile - to run it once enter the same time into the from and to field.



How to use UDP Sender in Tasker:


  1. After you have installed UDP Sender, open Tasker and create a new task
  2. In the task, add a new action from the Action Plugins: UDP Sender

  3. Configure the task as suggested below. Use the correct IP address of your network. If you do not know the exact address of your Milight WIFI bridge, use 255 (the broadcast address).
    Be aware that you have to enter the values (shown in http://www.limitlessled.com/dev) in the "Text" field, not in the "Hex" field.

To have a complete sample use one of the XMLs shown above.


Comments

  1. Thanks a lot! Because i have different milight i have used Packet Capture app to capture the right code.

    ReplyDelete
  2. How can I figure out the udp code? Cause I'm using group 1 and not 3 for wake up...

    Thanks!

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Hi,

    I used the table shown on http://www.limitlessled.com/dev/ (scroll down to see all hex/dec codes).

    GROUP 1 ALL ON - Hex: 0x45 - Dec: 69

    Cheers,
    Flo

    ReplyDelete

Post a Comment

Popular posts from this blog

Teclast X98 Plus Dual OS & mirek190 v2.1 ROM

Aqara Temperatur- und Feuchtigkeitssensoren + Home Assistant + Google Assistant