yeelight-wifi

2.3.0 • Public • Published

yeelight-wifi

Greenkeeper badge CircleCI codecov

The Yeelight WiFi Lib docs are located here.

Using npm:

$ npm i --save yeelight-wifi

In Node.js:

const YeelightSearch = require('yeelight-wifi');
 
const yeelightSearch = new YeelightSearch();
yeelightSearch.on('found', (lightBulb) => {
  lightBulb.toggle()
    .then(() => {
      console.log('toggled');
    })
    .catch((err) => {
      console.log(`received some error: ${err}`);
    });
});

Package Sidebar

Install

npm i yeelight-wifi

Weekly Downloads

26

Version

2.3.0

License

MIT

Last publish

Collaborators

  • pmdroid