Skip to content
Yeelight Smarthome Module for MagicMirror2
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
others
translations initial commit May 29, 2018
.gitattributes 💥🐫 Added .gitattributes & .gitignore files May 29, 2018
.gitignore
MMM-Yeelight.css
MMM-Yeelight.js initial commit May 29, 2018
README.md initial commit May 29, 2018
node_helper.js initial commit May 29, 2018
package.json initial commit May 29, 2018

README.md

MMM-Yeelight [GitHub license]

Yeelight Smarthome Module for MagicMirror2. This modules inspired and using some codes from MMM-Hue.

Supported Devices

Model Type
E27 White or RGB Bulb

Example

Dependencies

Installation

  1. Clone this repo into ~/MagicMirror/modules directory.

  2. Go to ~/MagicMirror/modules/MMM-Yeelight directory and do npm install

  3. Configure your ~/MagicMirror/config/config.js:

    {
        module: 'MMM-Yeelight',
        position: 'top_right',
        config: {
      ...
      devicesInfo: [
        {alias: 'YEELIGHT_ALIAS_NAME_1', mac: 'YEELIGHT_MAC_ADDRESS_1'},
        {alias: 'YEELIGHT_ALIAS_NAME_2', mac: 'YEELIGHT_MAC_ADDRESS_2'},
        ...
      ]
        }
    }
    

Config Options

Option Default Description
colour false displaying power status in colour or not
updateInterval 600000 ms (10 minutes) how often should the devices states refreshed
showOnlyOn false if set to true the module shows only the lights which are on
showLabel true show header label?
timeout 3000 how long the discovery should be taken
animationSpeed 2500 ms (2.5 s) Speed of the update animation
devicesInfo array of device_info array of device info {alias: 'YEELIGHT_ALIAS_NAME', mac: 'YEELIGHT_MAC_ADDRESS'}. It is a must, since the API unable to retrieve device name/alias from SSDP Message
You can’t perform that action at this time.