A MagicMirror² Module for controlling the Yeelight Bulb
To enable the LAN control and make your lights discoverable by this module you need to:
- Turn on your light.
- Open the
Yeelight
app on your phone. - Navigate to device, tap on the arrow to open a option menu
- Now select the LAN Control option
- Finally, enable the LAN Control by tapping on the switch. It will become green once the LAN control is enabled.
- Navigate into your MagicMirror's
modules
folder - Execute
git clone https://github.com/putera/MMM-Yeelight.git
- Run
npm install
To use this module, add it to the modules array in the config/config.js
file:
You may use MMM-AssistantMk2
from https://github.com/eouia/MMM-AssistantMk2 to trigger the command
modules: [
{
module: 'MMM-Yeelight',
config: {
// See 'Configuration options' for more information.
// remove the lights parameter if you want to control all the lights on the network
lights: [
{ name: 'My Kitchen Light 1', ip: '192.168.1.10'},
{ name: 'Living Room 1', ip: '192.168.1.11'},
...
]
}
}
]
The following properties can be configured:
Option | Description |
---|---|
lights |
(Optional) List of all your Yeelight bulb |