Alexa and Mi-Lights

I got an Amazon Echo as a gift a few months ago and I like it very much.  I also have a Mi-light light bulb set with wireless bridge which I control with my phone. Alexa and Mi-lights do not talk to each other, since Alexa only work with more expensive “smart lights”… I found a basic solution for these two to talk to each other….

Here you go…

  • You will need the HA Bridge software,  (for instructions on how to install HA Bridge on windows, please click Here)
  • You will also need the  latest version of Java,  …
  • Access to your network router (to find ip table)
  • Some patience…

COLOR HEX FOR MI LIGHT TO USE ON ALEXA / ECHO

SAVE THIS TABLE FOR REFERENCE

E5 = PURPLE
FF = BLUE
00 = WHITE
A0 = RED
60 = GREEN

# 41 00 – turn master off
# 42 00 – turn master on
# 43 00 – speed down
# 44 00 – speed up
# 45 00 – turn Zone 1 on
# 46 00 – turn Zone 1 off
# 47 00 – turn Zone 2 on
# 48 00 – turn Zone 2 off
# 49 00 – turn Zone 3 on
# 4a 00 – turn Zone 3 off
# 4b 00 – turn Zone 4 on
# 4c 00 – turn Zone 4 off

SYNTAX ON UDP FOR HA BRIDGE (EMULATING HUE) — MILIGHT HACK– ***LAPTOP/PC NEEDS TO BE ON FOR ALEXA TO FIND BRIDGE
OPENED ON PORT (MAKE USER AND PASSWORD FOR SECURITY)

MASTER (ALL LIGHTS = ALL ZONES = ON 42, OFF 41)

ON HA BRIDGE

CLICK ON ADD/EDIT

GIVE DEVICE A NAME FOR ALEXA TO UNDERSTAND IT

I NAMED THIS “ALL LIGHTS” COLOR (WHITE = 00)

ON SERVICE TYPE, CHOOSE UDP SERVICE

ON ITEMS  CHOOSE UDP DEVICE FROM DROP DOWN MENU

ON TARGET ITEM TYPE THE FOLLOWING..

udp://192.168.1.172:8899/0x420055      (172 REFERS TO IP FOR MILIGHT WIRELESS BRIDGE) – SEE OWN ROUTER TABLE (172 WORKS FOR ME)

THEN CLICK “ADD” AT THE END OF THE LINE

DIM  SECTION

udp://192.168.1.172:8899/0x4E${intensity.math((X*27)/255)}55      THEN CLICK “ADD” AT THE END OF THE LINE —   

(BY THE WAY PORT 8899 IS THE DEFAULT PORT FOR MILIGHT WIRELESS BRIDGE)

OFF SECTION  — udp://192.168.1.172:8899/0x410055    THEN CLICK “ADD” AT THE END OF THE LINE <—- HERE I CHANGED THE 42 FOR 41 (WHICH TELLS ALEXA TO “TURN OFF” DEVICE)

42 FOR ON 41 FOR OFF

CLICK ON UPDATE BRIDGE DEVICE TO SAVE

TO FURTHER:
“ON”
UDP (IS THE SERVICE) ://192.168.1.172 (IP ADDRESS ON YOUR ROUTER FOR WIRELESS BRIDGE) :8899 (PORT FOR MILIGHT BRIDGE)
0X (TO OPEN) 42(42 TO TURN ON) 00 (REFERS TO COLOR – WHITE = 00) 55 TO CLOSE

“OFF”
UDP (IS THE SERVICE) ://192.168.1.172 (IP ADDRESS ON YOUR ROUTER FOR WIRELESS BRIDGE) :8899 (PORT FOR MILIGHT BRIDGE)
0X (TO OPEN) 41(41 TO TURN OFF) 00 (REFERS TO COLOR – WHITE = 00) 55 TO CLOSE

===========================================

OTHER INSTANCES  SAME CONCEPT, BUT USING COLORS

I NAMED THIS “ALL GREEN LIGHTS” COLOR (GREEN)

ON CHOOSE UDP DEVICE FROM DROP DOWN MENU

ON TARGET ITEM TYPE THE FOLLOWING..

udp://192.168.1.172:8899/0x420055  Click “add” to end of line
          Create another line under On Section and type this:                            udp://192.168.1.172:8899/0x426055     Click “add” to end of line<— 60 IS COLOR “GREEN” SEE TABLE ABOVE

DIM — udp://192.168.1.172:8899/0x426055  Click “add” to end of line <— REPEATS TO AFFECT ONLY “GREEN” COLOR DIM

Create another line under Dim Section and type this:
udp://192.168.1.172:8899/0x4E${intensity.math((X*27)/255)}55 Click “add” to end of line

 

OFF — udp://192.168.1.172:8899/0x410055

===========================================
I NAMED THIS “ALL BLUE LIGHTS” COLOR (BLUE)

ON —udp://192.168.1.172:8899/0x420055
udp://192.168.1.172:8899/0x42FF55 <— FF IS COLOR “BLUE” SEE TABLE ABOVE

DIM — udp://192.168.1.172:8899/0x42FF55 <— REPEATS TO AFFECT ONLY “BLUE” COLOR DIM
udp://192.168.1.172:8899/0x4E${intensity.math((X*27)/255)}55

OFF — udp://192.168.1.172:8899/0x410055

===========================================
I NAMED THIS “ALL RED LIGHTS” COLOR (RED)

ON —udp://192.168.1.172:8899/0x420055
udp://192.168.1.172:8899/0x42A055 <— A0 IS COLOR “RED” SEE TABLE ABOVE

DIM — udp://192.168.1.172:8899/0x42A055 <— REPEATS TO AFFECT ONLY “RED” COLOR DIM
udp://192.168.1.172:8899/0x4E${intensity.math((X*27)/255)}55

OFF — udp://192.168.1.172:8899/0x410055

===========================================
I NAMED THIS “ALL PURPLE LIGHTS” COLOR (PURPLE)

ON —udp://192.168.1.172:8899/0x420055
udp://192.168.1.172:8899/0x42E555 <— E5 IS COLOR “PURPLE” SEE TABLE ABOVE

DIM — udp://192.168.1.172:8899/0x42E555 <— REPEATS TO AFFECT ONLY “PURPLE” COLOR DIM
udp://192.168.1.172:8899/0x4E${intensity.math((X*27)/255)}55

OFF — udp://192.168.1.172:8899/0x410055
============================================

ON ALEXA APP GO TO SMART HOME SECTION
THEN ADD DEVICE
APP WILL LOOK FOR DEVICES

WHAT YOU CREATED ON HA BRIDGE SHOULD APPEAR ON ALEXA

ALEXA IS NOW READY TO CONTROL YOUR LIGHTS BY VOICE

TRY : “ALEXA, TURN ON ALL LIGHTS”
“ALEXA, TURN ON ALL LIGHTS OFF”
“ALEXA, DIM ALL LIGHTS”

TRY COLOR:

“ALEXA, ALL GREEN LIGHTS ON”
“ALEXA, TURN ALL BLUE LIGHTS”
“ALEXA, ALL RED LIGHTS OFF”
“ALEXA, TURN ALL PURPLE LIGHTS”
“ALEXA, DIM ALL GREEN LIGHTS”

TRIGGER WORDS ARE (ALEXA) THEN (NAME OF DEVICE) + (ON, OFF,DIM OR DIM WITH PERCENTAGE) ALEXA WILL UNDERSTAND THESE COMMANDS IN ANY ORDER

WILL CONTINUE….