Control your Xiaomi Yeelight from your OSX Device
This app in under refactoring. Every help is accepted. The main problems are in the Yeelight.swift file where two JSON sometimes arrives and cause a nil exception (in the file there are more precise comment on this issues).
The new project needs to be integrated with the previous UI.
In order to use this app, your YeelightDevice needs to be set in Developer Mode. Use your Yeelight App on your smartphone to change this setting.
The new version use another TCP Library, the IBM BlueSocket Library that are simpler to use to implement a discovery protocol. This library is imported using Carthage.