Skip to content

Lanfei/yeelight-led

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yeelight-led

A lightweight SDK to control Yeelight smart LED devices.

Documentation

Example

var yeelight = require('yeelight-led');

yeelight.discover(function (device) {
	console.log('Device found:', device.id);

	device.sendCommand('get_prop', 'name', function (err, result) {
		console.log('Device name:', result[0]);
	});

	device.sendCommand('toggle');
	setTimeout(function () {
		device.sendCommand('toggle');
	}, 1000);
});

About

A lightweight SDK to control Yeelight smart LED devices.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published