Pre-setup & Requirements:
- You will need to know your MiLight wifi bridge MAC address. Check your router to see if it lists the MAC. MAC address is formatted as DE:AD:BE:EF:AA:AA
- Download v5 of the admin tool on this page: http://www.limitlessled.com/dev/, and set the device into "TCP" mode.
- Set the cloud server setting, "TCP,38899,lights.cloudsy.com"
- Set the IP to a static IP so that it doesn't change. Commit the changes by clicking the TCP button, and rebooting the wifi controller.
- And finally, you must have paired the lights (zones) with the wifi controller already using the native app. With the delay in SmartThings execution, this code is not able to pair bulbs with zones. Take note of zones 1-4 for each controller as you will need to label them in the final steps.
Validating:
- You can verify that the controller is listening on TCP by opening a telnet prompt, and connecting to the IP PORT (ie: Start > run > "cmd", "telnet 10.0.1.5 8899". If you get a blank black screen then that is enough to verify the setup.
Device Code Installation:
- Visit your SmartThings developer site, https://graph.api.smartthings.com/ and login.
- Select "My Device Handlers"
- Click "Settings"
- Add my repo information (owner: cloudsyjared, name: SmartThings-MiLight, branch: master)
- Save
- Select "Update from Repo" > "SmartThings-Mighlight (master)" and check the "publish" box.
- Verify there is a new device listed, named "cloudsyjared : MiLight Controller"
SmartApp Installation:
- Select "My SmartApps"
- Click "Settings"
- Add my repo information (owner: cloudsyjared, name: SmartThings-MiLight, branch: master)
- Save
- Select "Update from Repo" > "SmartThings-Mighlight (master)" and check the "publish" box.
- Verify there are two new SmartApps listed, named "cloudsyjared : MiLight Manager" and "cloudsyjared : MiThings"
SmartThings Setup:
- Load SmartThings app on phone or device
- Select "Marketplace"
- "SmartApps"
- "My Apps"
- Select "MiLight Manager" DO NOT SELECT "MITHINGS"
- "Add New Hub.."
- Select a name for your master switch (this is the switch that will control all 4 zones). For example, I use "Living Room Master" as all 4 zones are in the same room.
- Enter the HUB mac address (from Pre-req step #1, formatting is IMPORTANT "AA:BB:CC:DD:EE:FF")
- Select the number of zones you want to control (MiLight supports up to 4 zones).
- Depending on the integer entered, additional fields will appear.
- Enter the name of each zone (these will be your switch names). I suggest names like "Kitchen", "Dining Room", "Hallway"
- "Done"
- "Done"
You should soon see (up to) 5 new devices listed under your "Things" section of the app. The 4 zones you entered previously + the master switch.
SmartThings can now see these as lights/switches, and you should be able to use other SmartApps to automate your lights.
###ARE YOU EXPERIENCING PROBLEMS?
That is understandable. Do not post an issue asking for help without posting any logs, you will not get a response from me. Logs can be found under your dev dashboard, by selecting "Live Logging" and enabling "Debug logging" in the MiLight Manager app.