homebridge-smartsystem 7.1.0 → 7.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/package.json +2 -4
- package/server/proxy.js +3 -2
- package/server/smartapp.js +1 -1
- package/server/views/proxy.ejs +1 -2
package/README.md
CHANGED
|
@@ -322,6 +322,10 @@ Homebridge UI version
|
|
|
322
322
|
- 4: fixed a bug when shelly has empty list of ip addresses
|
|
323
323
|
- 5: better error handling in the proxy.ts + show connection in the /proxy page
|
|
324
324
|
|
|
325
|
+
### v.7.1.x - jan 2026
|
|
326
|
+
- 0: master + config ports in the proxy
|
|
327
|
+
- 1: fix for reading the proxy config
|
|
328
|
+
- 2: missing port number in unique id for master port
|
|
325
329
|
|
|
326
330
|
## Hardware
|
|
327
331
|
A Raspberry Pi that connects to a Duotecno IP Node
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-smartsystem",
|
|
3
3
|
"displayname": "Duotecno Bridge",
|
|
4
|
-
"version": "7.1.
|
|
4
|
+
"version": "7.1.2",
|
|
5
5
|
"description": "SmartServer (Proxy TCP sockets to the cloud, Smappee MQTT, Duotecno IP Nodes, Homekit interface)",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": "Johan Coppieters",
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
"build": "npx tsc --build",
|
|
14
14
|
"unpublish": "npm unpublish --force homebridge-smartsystem@6.8.17",
|
|
15
15
|
"prepublishOnly": "npm run build",
|
|
16
|
-
"publish": "npm publish"
|
|
17
|
-
"version:patch": "npm version patch && npm publish",
|
|
18
|
-
"version:minor": "npm version minor && npm publish"
|
|
16
|
+
"to-publish": "npm publish"
|
|
19
17
|
},
|
|
20
18
|
"engines": {
|
|
21
19
|
"node": "^18.20.4 || ^20.15.1 || ^22",
|
package/server/proxy.js
CHANGED
|
@@ -129,8 +129,9 @@ function cleanStart(restart = false) {
|
|
|
129
129
|
let connectionsStarted = 0;
|
|
130
130
|
// Start connection for the master device if uniqueId is configured
|
|
131
131
|
if (config.uniqueId && config.masterAddress) {
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
const masterId = `${config.uniqueId}:${config.masterPort}`;
|
|
133
|
+
log(`[PROXY] Starting proxy for master device: ${masterId}`);
|
|
134
|
+
makeNewCloudConnection(config.masterAddress, config.masterPort, config.cloudServer, config.cloudPort, masterId);
|
|
134
135
|
connectionsStarted++;
|
|
135
136
|
}
|
|
136
137
|
else if (config.uniqueId) {
|
package/server/smartapp.js
CHANGED
|
@@ -322,7 +322,7 @@ class SmartApp extends webapp_1.WebApp {
|
|
|
322
322
|
///////////
|
|
323
323
|
doProxy(context) {
|
|
324
324
|
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
-
let config = this.
|
|
325
|
+
let config = this.read("proxy") || proxy_1.kEmptyProxy;
|
|
326
326
|
if (context.action === "save") {
|
|
327
327
|
// save the proxy config
|
|
328
328
|
config.cloudServer = context.getParam({ name: "cloudServer", type: "string" });
|
package/server/views/proxy.ejs
CHANGED
|
@@ -42,8 +42,7 @@
|
|
|
42
42
|
Master Device
|
|
43
43
|
</h2>
|
|
44
44
|
<p class="grey-text" style="margin-bottom: 2rem;">
|
|
45
|
-
Configure your local master device with 2 ports
|
|
46
|
-
<small>Access gateway via: http://[cloud server]/connect/[unique id]:gateway</small>
|
|
45
|
+
Configure your local master device with 2 ports.</small>
|
|
47
46
|
</p>
|
|
48
47
|
|
|
49
48
|
<div class="row" style="margin-top: 1rem;">
|