mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2026-01-18 15:45:38 +00:00
Add mock admin tools
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { v4 as uuid } from "uuid";
|
||||
import { connectHub, connectHA } from "./client";
|
||||
import { publishDiscovery } from "./discovery";
|
||||
import { exposeSmarthubTools } from "./admin";
|
||||
|
||||
(async () => {
|
||||
const hubIp = process.env.FH_HUB_IP || "";
|
||||
@@ -30,6 +31,8 @@ import { publishDiscovery } from "./discovery";
|
||||
const fimp = await connectHub({ hubIp, username: hubUsername, password: hubPassword });
|
||||
console.log("Connected to Futurehome hub");
|
||||
|
||||
exposeSmarthubTools(ha, fimp);
|
||||
|
||||
// -- subscribe to FIMP events -----------------------------------------
|
||||
fimp.subscribe("#");
|
||||
fimp.on("message", (topic, buf) => {
|
||||
|
||||
Reference in New Issue
Block a user