Using TS types. Not building
This commit is contained in:
@ -34,6 +34,13 @@ export class HarmonyHub extends EventEmitter {
|
||||
public initialize = async () => {
|
||||
this._harmony = new Harmony();
|
||||
await this._harmony.connect(this._ip);
|
||||
this._harmony.on('stateDigest', (data: any) => {
|
||||
console.log(data);
|
||||
});
|
||||
|
||||
this._harmony.on('automationState', (data: any) => {
|
||||
console.log(data);
|
||||
});
|
||||
|
||||
//Gather devices
|
||||
let devices: any = await this._harmony.getDevices();
|
||||
|
Reference in New Issue
Block a user