From e69e10de27b20af555bda426f7e0a3277faeb222 Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Mon, 29 Jan 2024 14:00:47 +0100 Subject: [PATCH] fixup! adding ha addon support --- matter-bridge/src/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/matter-bridge/src/index.ts b/matter-bridge/src/index.ts index be75a23..2598245 100644 --- a/matter-bridge/src/index.ts +++ b/matter-bridge/src/index.ts @@ -15,6 +15,8 @@ async function run() { } HA_MIDDLEWARE = await HAMiddleware.getInstance({ host: 'supervisor', + port: 80, + path: '/core/websocket', token, }); BRIDGE = getBridge(); @@ -22,7 +24,11 @@ async function run() { BRIDGE.start(); } -run().then().catch(LOGGER.error); +run() + .then() + .catch((error) => { + LOGGER.error(JSON.stringify(error)); + }); process.on('SIGINT', () => { HA_MIDDLEWARE.stop();