Skip to content

jwdempsey/node-vesync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-vesync

An unofficial node library used to communicate with Vesync devices.

Installation

npm i node-vesync

Usage

// Create an VesyncClient object
const client = new VesyncClient();

// Login with the same email and password you would use in the Vesync mobile app:
await client.login("email", "password");

// Get a list of all registered devices:
const devices = await client.getDevices();

// Get device information about a device named Living Room:
const device = await client.getDeviceDetails(
  devices.find((d) => d.deviceName === "Living Room")
);

// Power on Living Room:
await client.turnOn(device);

// Power off Living Room:
await client.turnOff(device);

// Set brightness level of Living Room:
await client.setBrightness(device, 50);

Credit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published