dirigera-simple
Version:
A simple tool that can be used to set up a local controller for your new IKEA smart home system, based on the Dirigera hub.
14 lines (11 loc) • 395 B
JavaScript
import { Authenticate } from '../index.cjs'
/* Athentication: get access token from Hub
This requires pressing the action button on your Dirigera Hub.
*/
var dirigeraIP = false;
var auth = new Authenticate(dirigeraIP, data => {
console.log(data);
var access_token = data.access_token;
var dirigeraIP = data.ip;
// Save this token in your config or in code!
})