This Chrome extension seems to be the simplest way to control your Xiaomi Yeelight smart bulbs from a PC.
The extension allows you to connect to your Yeelight devices via Wi-Fi and control them using an intuitive user interface.
- Switching light on and off
- Controlling hue and saturation of the light
- Setting color temperature
- Adjusting brightness
- Renaming devices [TO DO]
- Clone the repository
- Go to
chrome://extensions
in Chrome - Turn on 'Developer mode' (top right corner)
- Click 'Load unpacked'
- Select
yeelight-chrome-app
directory - Copy the app id and paste the value into
companionAppID
variable inyeelight-chrome-extension/src/App.js
cd
intoyeelight-chrome-extension
directorynpm run build
- Load
yeelight-chrome-extension/build
folder into Chrome - Copy the extension id and paste it into
extensionID
variable inyeelight-chrome-app/index.js
- Reload the companion app
- You can now connect to your device by clicking the extension icon and following the provided directions
-
The extension requires a companion Chrome app in order to scan your local network and establish connections via TCP sockets. The companion app is the Yeelight developer demo with some minor changes.
-
Since the extension is not installed from the Chrome Web Store, on every Chrome launch you'll get a prompt saying the developer mode is enabled. This suggestion might help get rid of it but I do plan to add the extension to the Chrome store sometime soon.
For feedback/troubleshooting please contact me at zisest@gmail.com.