From 5b40f60805a890e493a842d46991c7b1b22d55a4 Mon Sep 17 00:00:00 2001
From: Luligu <132135057+Luligu@users.noreply.github.com>
Date: Mon, 18 Mar 2024 08:08:44 +0100
Subject: [PATCH] Release 1.1.10
---
README.md | 24 +++++++++++++++----
frontend/build/asset-manifest.json | 6 ++---
frontend/build/index.html | 2 +-
.../{main.5d339656.css => main.3804969f.css} | 4 ++--
.../build/static/css/main.3804969f.css.map | 1 +
.../build/static/css/main.5d339656.css.map | 1 -
frontend/src/App.css | 5 ++++
package.json | 3 +--
src/cli.ts | 6 ++---
src/matterbridge.ts | 4 +---
10 files changed, 37 insertions(+), 19 deletions(-)
rename frontend/build/static/css/{main.5d339656.css => main.3804969f.css} (74%)
create mode 100644 frontend/build/static/css/main.3804969f.css.map
delete mode 100644 frontend/build/static/css/main.5d339656.css.map
diff --git a/README.md b/README.md
index 464bb47b..c40bd069 100644
--- a/README.md
+++ b/README.md
@@ -174,21 +174,37 @@ The easiest way is to clone:
Then change the name, version, description and author in the package.json.
-Add your plugin logic in platform.ts:
+Add your plugin logic in platform.ts.
-### onStart(reason?: string)
+## MatterbridgeDynamicPlatform and MatterbridgeAccessoryPlatform api
+
+### async onStart(reason?: string)
The method onStart() is where you have to create your MatterbridgeDevice and add all needed clusters and command handlers.
The MatterbridgeDevice class has the create cluster methods already done and all command handlers needed (see plugin examples).
The method is called when Matterbridge load the plugin.
-### onConfigure()
+### async onConfigure()
The method onConfigure() is where you can configure or initialize your device.
The method is called when the platform is commissioned.
-### onShutdown(reason?: string)
+### async onShutdown(reason?: string)
The method onShutdown() is where you have to eventually cleanup some resources.
The method is called when Matterbridge is shutting down.
+
+### async registerDevice(device: MatterbridgeDevice)
+After you created your device, add it to the platform.
+
+### async unregisterDevice(device: MatterbridgeDevice)
+You can unregister one or more device.
+
+### async unregisterAllDevices()
+You can unregister all devices you added.
+
+It can me be useful to call this method from onShutdown if you don't want to keep all the devices.
+
+## MatterbridgeDevice api
+
diff --git a/frontend/build/asset-manifest.json b/frontend/build/asset-manifest.json
index 8917b62b..67d16ada 100644
--- a/frontend/build/asset-manifest.json
+++ b/frontend/build/asset-manifest.json
@@ -1,15 +1,15 @@
{
"files": {
- "main.css": "/static/css/main.5d339656.css",
+ "main.css": "/static/css/main.3804969f.css",
"main.js": "/static/js/main.82822a11.js",
"static/js/453.d855a71b.chunk.js": "/static/js/453.d855a71b.chunk.js",
"index.html": "/index.html",
- "main.5d339656.css.map": "/static/css/main.5d339656.css.map",
+ "main.3804969f.css.map": "/static/css/main.3804969f.css.map",
"main.82822a11.js.map": "/static/js/main.82822a11.js.map",
"453.d855a71b.chunk.js.map": "/static/js/453.d855a71b.chunk.js.map"
},
"entrypoints": [
- "static/css/main.5d339656.css",
+ "static/css/main.3804969f.css",
"static/js/main.82822a11.js"
]
}
\ No newline at end of file
diff --git a/frontend/build/index.html b/frontend/build/index.html
index e19437e5..b5884b63 100644
--- a/frontend/build/index.html
+++ b/frontend/build/index.html
@@ -1 +1 @@
-
Matterbridge You need to enable JavaScript to run this app.
\ No newline at end of file
+Matterbridge You need to enable JavaScript to run this app.
\ No newline at end of file
diff --git a/frontend/build/static/css/main.5d339656.css b/frontend/build/static/css/main.3804969f.css
similarity index 74%
rename from frontend/build/static/css/main.5d339656.css
rename to frontend/build/static/css/main.3804969f.css
index f7500f6c..37c9613c 100644
--- a/frontend/build/static/css/main.5d339656.css
+++ b/frontend/build/static/css/main.3804969f.css
@@ -1,2 +1,2 @@
-body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.tooltip-container{display:inline-block;position:relative}.tooltip-text{background-color:#555;border-radius:6px;bottom:calc(100% + 10px);color:#fff;font-size:12px;left:50%;margin-left:-60px;opacity:0;padding:5px;position:absolute;text-align:center;transition:opacity .3s;visibility:hidden;z-index:1}.tooltip-container:hover{cursor:pointer}.tooltip-container:hover .tooltip-text{opacity:1;visibility:visible}.status-enabled{background-color:green}.status-disabled,.status-enabled{border-radius:.25rem;box-shadow:2px 2px 2px #0003;color:#fff;cursor:pointer;font-size:12px;padding:.2rem;text-align:center}.status-disabled{background-color:red}.PluginsIconButton{color:#000;gap:0;padding:0}.HeaderButton{color:#4caf50}.main-background{background-color:#c4c2c2}.header{gap:20px;height:40px;justify-content:flex-start;margin:0;padding:0}.header,nav{align-items:center;display:flex}.nav-link{color:#333;font-size:20px;margin:0 10px;text-decoration:none;transition:color .3s ease}.nav-link:hover{color:#007bff}.table-header{background-color:#4caf50}.table-footer,.table-header{border:1px solid #ddd;color:#fff;padding:5px 10px;text-align:left}.table-footer{background-color:#7dac7f}.table-content{border:1px solid #ddd;font-size:14px;padding:5px 10px;text-align:left}.table-content-even{background-color:#bdbdbd}.table-content-odd{background-color:#9e9e9e}.table-content-selected{background-color:#5f8c9e}.text-color-selected{color:#09516d}h3{margin:0}table{border-collapse:collapse;box-shadow:5px 5px 10px #888;width:100%}@media (max-width:600px){.header{flex-direction:column}nav{margin-top:20px}}
-/*# sourceMappingURL=main.5d339656.css.map*/
\ No newline at end of file
+body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.tooltip-container{display:inline-block;position:relative}.tooltip-text{background-color:#555;border-radius:6px;bottom:calc(100% + 10px);color:#fff;font-size:12px;left:50%;margin-left:-60px;opacity:0;padding:5px;position:absolute;text-align:center;transition:opacity .3s;visibility:hidden;z-index:1}.tooltip-container:hover{cursor:pointer}.tooltip-container:hover .tooltip-text{opacity:1;visibility:visible}.status-enabled{background-color:green}.status-disabled,.status-enabled{border-radius:.25rem;box-shadow:2px 2px 2px #0003;color:#fff;cursor:pointer;font-size:12px;padding:.2rem;text-align:center}.status-disabled{background-color:red}.PluginsIconButton{color:#000;gap:0;padding:0}.HeaderButton{color:#4caf50}.main-background{background-color:#c4c2c2}.header{gap:20px;height:40px;justify-content:flex-start;margin:0;padding:0}.header,nav{align-items:center;display:flex}.nav-link{color:#333;font-size:20px;margin:0 10px;text-decoration:none;transition:color .3s ease}.nav-link:hover{color:#007bff}.table-header{background-color:#4caf50}.table-footer,.table-header{border:1px solid #ddd;color:#fff;padding:5px 10px;text-align:left}.table-footer{background-color:#7dac7f}.table-body{max-height:100px;overflow-y:auto}.table-content{border:1px solid #ddd;font-size:14px;padding:5px 10px;text-align:left}.table-content-even{background-color:#bdbdbd}.table-content-odd{background-color:#9e9e9e}.table-content-selected{background-color:#5f8c9e}.text-color-selected{color:#09516d}h3{margin:0}table{border-collapse:collapse;box-shadow:5px 5px 10px #888;width:100%}@media (max-width:600px){.header{flex-direction:column}nav{margin-top:20px}}
+/*# sourceMappingURL=main.3804969f.css.map*/
\ No newline at end of file
diff --git a/frontend/build/static/css/main.3804969f.css.map b/frontend/build/static/css/main.3804969f.css.map
new file mode 100644
index 00000000..f95e375e
--- /dev/null
+++ b/frontend/build/static/css/main.3804969f.css.map
@@ -0,0 +1 @@
+{"version":3,"file":"static/css/main.3804969f.css","mappings":"AAAA,KAKE,kCAAmC,CACnC,iCAAkC,CAJlC,mIAEY,CAHZ,QAMF,CAEA,KACE,uEAEF,CCTA,mBAEE,oBAAqB,CADrB,iBAEF,CAKA,cAEE,qBAAsB,CAItB,iBAAkB,CAIlB,wBAAyB,CAPzB,UAAW,CAaX,cAAe,CALf,QAAS,CACT,iBAAkB,CAElB,SAAU,CATV,WAAgB,CAGhB,iBAAkB,CAJlB,iBAAkB,CAWlB,sBAAwB,CAdxB,iBAAkB,CAQlB,SAQF,CAEA,yBACE,cACF,CAEA,uCAEE,SAAU,CADV,kBAEF,CAGA,gBACE,sBAQF,CAEA,iCAPE,oBAAsB,CAItB,4BAA0C,CAN1C,UAAY,CAKZ,cAAe,CADf,cAAe,CAHf,aAAe,CAEf,iBAeF,CATA,iBACE,oBAQF,CAKA,mBACE,UAAc,CAEd,KAAM,CADN,SAEF,CAEA,cACE,aACF,CAGA,iBACE,wBACF,CAGA,QAIE,QAAS,CAGT,WAAY,CAJZ,0BAA2B,CAE3B,QAAS,CACT,SAEF,CAGA,YATE,kBAAmB,CADnB,YAaF,CAGA,UAIE,UAAW,CAFX,cAAe,CADf,aAAc,CAEd,oBAAqB,CAErB,yBACF,CAEA,gBACE,aACF,CAGA,cAKE,wBAGF,CAGA,4BAVE,qBAAsB,CAKtB,UAAY,CAFZ,gBAAkB,CAGlB,eAYF,CARA,cAKE,wBAGF,CAEA,YACE,gBAAiB,CACjB,eACF,CAGA,eACE,qBAAsB,CAKtB,cAAe,CAFf,gBAAkB,CAClB,eAEF,CAGA,oBACE,wBACF,CAGA,mBACE,wBACF,CAGA,wBACE,wBACF,CAGA,qBACE,aACF,CAGA,GACE,QACF,CAGA,MACE,wBAAyB,CAEzB,4BAA6B,CAD7B,UAEF,CAEA,yBACE,QACE,qBACF,CAEA,IACE,eACF,CACF","sources":["index.css","App.css"],"sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n","/* App.css */\n\n/* Tooltip style */\n.tooltip-container {\n position: relative;\n display: inline-block;\n}\n\n/*\nwidth: 120px;\n*/\n.tooltip-text {\n visibility: hidden;\n background-color: #555;\n color: #fff;\n text-align: center;\n padding: 5px 5px;\n border-radius: 6px;\n\n position: absolute;\n z-index: 1;\n bottom: calc(100% + 10px);\n left: 50%;\n margin-left: -60px;\n\n opacity: 0;\n transition: opacity 0.3s;\n font-size: 12px;\n}\n\n.tooltip-container:hover {\n cursor: pointer;\n}\n\n.tooltip-container:hover .tooltip-text {\n visibility: visible;\n opacity: 1;\n}\n\n/* StatusIndicator style */\n.status-enabled {\n background-color: green;\n color: white;\n padding: 0.2rem;\n border-radius: 0.25rem;\n text-align: center;\n font-size: 12px;\n cursor: pointer;\n box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);\n}\n\n.status-disabled {\n background-color: red;\n color: white;\n padding: 0.2rem;\n border-radius: 0.25rem;\n text-align: center;\n font-size: 12px;\n cursor: pointer;\n box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);\n}\n\n\n/* Home page style */\n\n.PluginsIconButton {\n color: #000000;\n padding: 0;\n gap: 0;\n}\n\n.HeaderButton {\n color: #4CAF50;\n}\n\n/* Table header style */\n.main-background {\n background-color: #c4c2c2;\n}\n\n/* Header style */\n.header {\n display: flex;\n align-items: center;\n justify-content: flex-start; /* Distribute items evenly */\n gap: 20px;\n margin: 0;\n padding: 0; /* 20px */\n height: 40px; /* Increase height for a more modern look */\n}\n\n/* Navigation style */\nnav {\n display: flex;\n align-items: center;\n}\n\n/* Navigation in Header.js style */\n.nav-link {\n margin: 0 10px;\n font-size: 20px;\n text-decoration: none; /* Remove underline from links */\n color: #333; /* Dark gray color for the links */\n transition: color 0.3s ease; /* Smooth color transition */\n}\n\n.nav-link:hover {\n color: #007BFF; /* Change color to blue when hovering */\n}\n\n/* Table header style */\n.table-header {\n border: 1px solid #ddd;\n padding: 5px;\n padding-right: 10px;\n padding-left: 10px;\n background-color: #4CAF50;\n color: white;\n text-align: left;\n}\n\n/* Table footer style */\n.table-footer {\n border: 1px solid #ddd;\n padding: 5px;\n padding-right: 10px;\n padding-left: 10px;\n background-color: #7dac7f;\n color: white;\n text-align: left;\n}\n\n.table-body {\n max-height: 100px; /* Replace with your desired maximum height */\n overflow-y: auto;\n}\n\n/* Table content style */\n.table-content {\n border: 1px solid #ddd;\n padding: 5px;\n padding-right: 10px;\n padding-left: 10px;\n text-align: left;\n font-size: 14px;\n}\n\n/* Table content style */\n.table-content-even {\n background-color: #bdbdbd;\n}\n\n/* Table content style */\n.table-content-odd {\n background-color: #9e9e9e;\n}\n\n/* Table content style for selected rows*/\n.table-content-selected {\n background-color: #5f8c9e;\n}\n\n/* Color for selected text */\n.text-color-selected {\n color: #09516d;\n}\n\n/* Table style */\nh3 {\n margin: 0;\n}\n\n/* Table style */\ntable {\n border-collapse: collapse;\n width: 100%;\n box-shadow: 5px 5px 10px #888; \n}\n\n@media (max-width: 600px) {\n .header {\n flex-direction: column;\n }\n\n nav {\n margin-top: 20px;\n }\n}\n/*\nth, td {\n border: 1px solid #ddd;\n padding: 5px;\n text-align: left;\n}\n\nth {\n background-color: #4CAF50;\n color: white;\n}\n\ntr:nth-child(odd) {\n background-color: #9e9e9e;\n}\n\ntr:nth-child(even) {\n background-color: #bdbdbd;\n}\n\n*/\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/frontend/build/static/css/main.5d339656.css.map b/frontend/build/static/css/main.5d339656.css.map
deleted file mode 100644
index fda013ab..00000000
--- a/frontend/build/static/css/main.5d339656.css.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"static/css/main.5d339656.css","mappings":"AAAA,KAKE,kCAAmC,CACnC,iCAAkC,CAJlC,mIAEY,CAHZ,QAMF,CAEA,KACE,uEAEF,CCTA,mBAEE,oBAAqB,CADrB,iBAEF,CAKA,cAEE,qBAAsB,CAItB,iBAAkB,CAIlB,wBAAyB,CAPzB,UAAW,CAaX,cAAe,CALf,QAAS,CACT,iBAAkB,CAElB,SAAU,CATV,WAAgB,CAGhB,iBAAkB,CAJlB,iBAAkB,CAWlB,sBAAwB,CAdxB,iBAAkB,CAQlB,SAQF,CAEA,yBACE,cACF,CAEA,uCAEE,SAAU,CADV,kBAEF,CAGA,gBACE,sBAQF,CAEA,iCAPE,oBAAsB,CAItB,4BAA0C,CAN1C,UAAY,CAKZ,cAAe,CADf,cAAe,CAHf,aAAe,CAEf,iBAeF,CATA,iBACE,oBAQF,CAKA,mBACE,UAAc,CAEd,KAAM,CADN,SAEF,CAEA,cACE,aACF,CAGA,iBACE,wBACF,CAGA,QAIE,QAAS,CAGT,WAAY,CAJZ,0BAA2B,CAE3B,QAAS,CACT,SAEF,CAGA,YATE,kBAAmB,CADnB,YAaF,CAGA,UAIE,UAAW,CAFX,cAAe,CADf,aAAc,CAEd,oBAAqB,CAErB,yBACF,CAEA,gBACE,aACF,CAGA,cAKE,wBAGF,CAGA,4BAVE,qBAAsB,CAKtB,UAAY,CAFZ,gBAAkB,CAGlB,eAYF,CARA,cAKE,wBAGF,CAGA,eACE,qBAAsB,CAKtB,cAAe,CAFf,gBAAkB,CAClB,eAEF,CAGA,oBACE,wBACF,CAGA,mBACE,wBACF,CAGA,wBACE,wBACF,CAGA,qBACE,aACF,CAGA,GACE,QACF,CAGA,MACE,wBAAyB,CAEzB,4BAA6B,CAD7B,UAEF,CAEA,yBACE,QACE,qBACF,CAEA,IACE,eACF,CACF","sources":["index.css","App.css"],"sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n","/* App.css */\n\n/* Tooltip style */\n.tooltip-container {\n position: relative;\n display: inline-block;\n}\n\n/*\nwidth: 120px;\n*/\n.tooltip-text {\n visibility: hidden;\n background-color: #555;\n color: #fff;\n text-align: center;\n padding: 5px 5px;\n border-radius: 6px;\n\n position: absolute;\n z-index: 1;\n bottom: calc(100% + 10px);\n left: 50%;\n margin-left: -60px;\n\n opacity: 0;\n transition: opacity 0.3s;\n font-size: 12px;\n}\n\n.tooltip-container:hover {\n cursor: pointer;\n}\n\n.tooltip-container:hover .tooltip-text {\n visibility: visible;\n opacity: 1;\n}\n\n/* StatusIndicator style */\n.status-enabled {\n background-color: green;\n color: white;\n padding: 0.2rem;\n border-radius: 0.25rem;\n text-align: center;\n font-size: 12px;\n cursor: pointer;\n box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);\n}\n\n.status-disabled {\n background-color: red;\n color: white;\n padding: 0.2rem;\n border-radius: 0.25rem;\n text-align: center;\n font-size: 12px;\n cursor: pointer;\n box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);\n}\n\n\n/* Home page style */\n\n.PluginsIconButton {\n color: #000000;\n padding: 0;\n gap: 0;\n}\n\n.HeaderButton {\n color: #4CAF50;\n}\n\n/* Table header style */\n.main-background {\n background-color: #c4c2c2;\n}\n\n/* Header style */\n.header {\n display: flex;\n align-items: center;\n justify-content: flex-start; /* Distribute items evenly */\n gap: 20px;\n margin: 0;\n padding: 0; /* 20px */\n height: 40px; /* Increase height for a more modern look */\n}\n\n/* Navigation style */\nnav {\n display: flex;\n align-items: center;\n}\n\n/* Navigation in Header.js style */\n.nav-link {\n margin: 0 10px;\n font-size: 20px;\n text-decoration: none; /* Remove underline from links */\n color: #333; /* Dark gray color for the links */\n transition: color 0.3s ease; /* Smooth color transition */\n}\n\n.nav-link:hover {\n color: #007BFF; /* Change color to blue when hovering */\n}\n\n/* Table header style */\n.table-header {\n border: 1px solid #ddd;\n padding: 5px;\n padding-right: 10px;\n padding-left: 10px;\n background-color: #4CAF50;\n color: white;\n text-align: left;\n}\n\n/* Table footer style */\n.table-footer {\n border: 1px solid #ddd;\n padding: 5px;\n padding-right: 10px;\n padding-left: 10px;\n background-color: #7dac7f;\n color: white;\n text-align: left;\n}\n\n/* Table content style */\n.table-content {\n border: 1px solid #ddd;\n padding: 5px;\n padding-right: 10px;\n padding-left: 10px;\n text-align: left;\n font-size: 14px;\n}\n\n/* Table content style */\n.table-content-even {\n background-color: #bdbdbd;\n}\n\n/* Table content style */\n.table-content-odd {\n background-color: #9e9e9e;\n}\n\n/* Table content style for selected rows*/\n.table-content-selected {\n background-color: #5f8c9e;\n}\n\n/* Color for selected text */\n.text-color-selected {\n color: #09516d;\n}\n\n/* Table style */\nh3 {\n margin: 0;\n}\n\n/* Table style */\ntable {\n border-collapse: collapse;\n width: 100%;\n box-shadow: 5px 5px 10px #888; \n}\n\n@media (max-width: 600px) {\n .header {\n flex-direction: column;\n }\n\n nav {\n margin-top: 20px;\n }\n}\n/*\nth, td {\n border: 1px solid #ddd;\n padding: 5px;\n text-align: left;\n}\n\nth {\n background-color: #4CAF50;\n color: white;\n}\n\ntr:nth-child(odd) {\n background-color: #9e9e9e;\n}\n\ntr:nth-child(even) {\n background-color: #bdbdbd;\n}\n\n*/\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/frontend/src/App.css b/frontend/src/App.css
index fd68725d..625486cc 100644
--- a/frontend/src/App.css
+++ b/frontend/src/App.css
@@ -130,6 +130,11 @@ nav {
text-align: left;
}
+.table-body {
+ max-height: 100px; /* Replace with your desired maximum height */
+ overflow-y: auto;
+}
+
/* Table content style */
.table-content {
border: 1px solid #ddd;
diff --git a/package.json b/package.json
index b187732f..660028a0 100644
--- a/package.json
+++ b/package.json
@@ -67,7 +67,6 @@
"express": "^4.18.3",
"matter-history": "^1.0.11",
"node-ansi-logger": "^1.9.2",
- "node-persist-manager": "^1.0.4",
- "wtfnode": "^0.9.1"
+ "node-persist-manager": "^1.0.4"
}
}
diff --git a/src/cli.ts b/src/cli.ts
index ee82e084..a89b4d89 100644
--- a/src/cli.ts
+++ b/src/cli.ts
@@ -23,7 +23,7 @@
*/
/* eslint-disable no-console */
-import wtf from 'wtfnode';
+//import wtf from 'wtfnode';
import { Matterbridge } from './matterbridge.js';
let instance: Matterbridge | undefined;
@@ -42,13 +42,13 @@ function registerHandlers() {
async function shutdown() {
console.log('CLI: received shutdown event, exiting...');
- wtf.dump();
+ //wtf.dump();
process.exit(0);
}
async function restart() {
console.log('CLI: received restart event, loading...');
- wtf.dump();
+ //wtf.dump();
instance = await Matterbridge.loadInstance(true);
registerHandlers();
}
diff --git a/src/matterbridge.ts b/src/matterbridge.ts
index c32cac31..39ab836a 100644
--- a/src/matterbridge.ts
+++ b/src/matterbridge.ts
@@ -29,6 +29,7 @@ import { fileURLToPath, pathToFileURL } from 'url';
import { promises as fs } from 'fs';
import { ExecException, exec, spawn } from 'child_process';
import { Server } from 'http';
+import EventEmitter from 'events';
import express from 'express';
import os from 'os';
import path from 'path';
@@ -42,9 +43,6 @@ import { QrCodeSchema } from '@project-chip/matter-node.js/schema';
import { StorageBackendDisk, StorageBackendJsonFile, StorageContext, StorageManager } from '@project-chip/matter-node.js/storage';
import { requireMinNodeVersion, getParameter, getIntParameter, hasParameter } from '@project-chip/matter-node.js/util';
import { CryptoNode } from '@project-chip/matter-node.js/crypto';
-// eslint-disable-next-line @typescript-eslint/no-unused-vars
-import { logEndpoint } from '@project-chip/matter-node.js/device';
-import EventEmitter from 'events';
/*