Created
September 17, 2019 15:53
-
-
Save voipnorm/c243d5108b72ca8783078060e1849345 to your computer and use it in GitHub Desktop.
Kasa light project find bulb ID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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