Skip to content

Instantly share code, notes, and snippets.

@voipnorm
Created September 17, 2019 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voipnorm/c243d5108b72ca8783078060e1849345 to your computer and use it in GitHub Desktop.
Save voipnorm/c243d5108b72ca8783078060e1849345 to your computer and use it in GitHub Desktop.
Kasa light project find bulb ID
"use strict";
const KasaControl = require('kasa_control');
const kasa = new KasaControl();
const email = "email;
const password = "password";
async function main() {
await kasa.login(email, password);
const devices = await kasa.getDevices();
console.log(devices);
}
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment