homebridge-smartsystem 6.4.6 → 6.4.7
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/log.txt +61 -0
- package/package.json +1 -1
- package/server/smartapp.js +3 -3
- package/server/smartapp.ts +3 -3
package/log.txt
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
...
|
|
2
|
+
accessory: getState was called for SB 1 - Lamp-Bottom -> 1
|
|
3
|
+
smartapp: HTTP-Switch(true) -> http://localhost:3001/api/demo/haha?set=true
|
|
4
|
+
smartapp: The request to http://localhost:3001/api/demo/haha?set=true, error:
|
|
5
|
+
accessory: getState was called for SB 1 - Lamp-Top -> 1
|
|
6
|
+
accessory: setPower: *** waiting *** false
|
|
7
|
+
accessory: setPower: false
|
|
8
|
+
smartapp: The request to http://192.168.0.96/light/0?brightness=75&turn=off, error: connect EHOSTUNREACH 192.168.0.96:80
|
|
9
|
+
smartapp: The request to http://192.168.0.96/light/0?brightness=75&turn=off, error: connect EHOSTUNREACH 192.168.0.96:80
|
|
10
|
+
master: 192.168.0.97: receiveRegister(1) = 3450
|
|
11
|
+
accessory: setPower: *** waiting *** false
|
|
12
|
+
accessory: setPower: false
|
|
13
|
+
master: 192.168.0.97: receiveRegister(12) = 696
|
|
14
|
+
power: smappee > RealTime totals: Power = 4350, Export = 72508338000, Import = 532857808800
|
|
15
|
+
master: 192.168.0.97: receiveRegister(2) = 914
|
|
16
|
+
power: p1 > RealTime totals: Power = 915, Export = 15971.894, Import = 60105.418
|
|
17
|
+
master: 192.168.0.97: Received heartbeat at Tue May 20 2025 10:20:19 GMT+0200 (Central European Summer Time)
|
|
18
|
+
master: 192.168.0.5: Received heartbeat at Tue May 20 2025 10:20:19 GMT+0200 (Central European Summer Time)
|
|
19
|
+
power: shelly > RealTime totals: Power = 132.24, Export = 0, Import = 265734.9
|
|
20
|
+
master: 192.168.0.97: receiveRegister(1) = 3450
|
|
21
|
+
master: 192.168.0.97: receiveRegister(12) = 914
|
|
22
|
+
accessory: get CurrentPosition was called of Salon Top
|
|
23
|
+
accessory: get PositionState was called of Salon Top -> 0
|
|
24
|
+
accessory: get Characteristic.TargetPosition was called
|
|
25
|
+
accessory: get CurrentPosition was called of Tim Small
|
|
26
|
+
accessory: get PositionState was called of Tim Small -> 0
|
|
27
|
+
accessory: get Characteristic.TargetPosition was called
|
|
28
|
+
...
|
|
29
|
+
accessory: getBrightness was called for SB 1 - Red LED -> 75
|
|
30
|
+
accessory: getState was called for SB 1 - Lamp-Bottom -> 1
|
|
31
|
+
smartapp: HTTP-Switch(true) -> http://localhost:3001/api/demo/haha?set=true
|
|
32
|
+
smartapp: The request to http://localhost:3001/api/demo/haha?set=true, error:
|
|
33
|
+
accessory: getState was called for SB 1 - Lamp-Top -> 1
|
|
34
|
+
accessory: setBrightness 54
|
|
35
|
+
accessory: setBrightness 55
|
|
36
|
+
accessory: setBrightness 73
|
|
37
|
+
accessory: setBrightness 63
|
|
38
|
+
master: 192.168.0.97: receiveRegister(2) = 757
|
|
39
|
+
accessory: setBrightness 100
|
|
40
|
+
[20/05/2025, 10:20:36] TypeError: Cannot read properties of undefined (reading 'message')
|
|
41
|
+
at ClientRequest.<anonymous> (/var/lib/homebridge/node_modules/homebridge-smartsystem/server/smartapp.js:706:91)
|
|
42
|
+
at ClientRequest.emit (node:events:518:28)
|
|
43
|
+
at Socket.emitRequestTimeout (node:_http_client:863:9)
|
|
44
|
+
at Object.onceWrapper (node:events:632:28)
|
|
45
|
+
at Socket.emit (node:events:530:35)
|
|
46
|
+
at Socket._onTimeout (node:net:609:8)
|
|
47
|
+
at listOnTimeout (node:internal/timers:588:17)
|
|
48
|
+
at processTimers (node:internal/timers:523:7)
|
|
49
|
+
[20/05/2025, 10:20:36] Got SIGTERM, shutting down Homebridge...
|
|
50
|
+
[20/05/2025, 10:20:36] TypeError: Cannot read properties of undefined (reading 'message')
|
|
51
|
+
at ClientRequest.<anonymous> (/var/lib/homebridge/node_modules/homebridge-smartsystem/server/smartapp.js:706:91)
|
|
52
|
+
at ClientRequest.emit (node:events:518:28)
|
|
53
|
+
at Socket.emitRequestTimeout (node:_http_client:863:9)
|
|
54
|
+
at Object.onceWrapper (node:events:632:28)
|
|
55
|
+
at Socket.emit (node:events:530:35)
|
|
56
|
+
at Socket._onTimeout (node:net:609:8)
|
|
57
|
+
at listOnTimeout (node:internal/timers:588:17)
|
|
58
|
+
at processTimers (node:internal/timers:523:7)
|
|
59
|
+
master: 192.168.0.97: receiveRegister(1) = 3359
|
|
60
|
+
[20/05/2025, 10:20:41] [HB Supervisor] Homebridge process ended. Code: 143, signal: null.
|
|
61
|
+
[20/05/2025, 10:20:46] [HB Supervisor] Restarting Homebridge...
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-smartsystem",
|
|
3
3
|
"displayname": "Duotecno Bridge",
|
|
4
|
-
"version": "6.4.
|
|
4
|
+
"version": "6.4.7",
|
|
5
5
|
"description": "SmartServer (Proxy Websockets to TCP sockets, Smappee MQTT, Duotecno IP Nodes, Homekit interface)",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": "Johan Coppieters",
|
package/server/smartapp.js
CHANGED
|
@@ -700,15 +700,15 @@ class SmartApp extends webapp_1.WebApp {
|
|
|
700
700
|
req.write(formdata);
|
|
701
701
|
}
|
|
702
702
|
req.on("error", (e) => {
|
|
703
|
-
(0, logger_1.log)("smartapp", "The request to " + url + ", error: " + e.message);
|
|
703
|
+
(0, logger_1.log)("smartapp", "The request to " + url + ", error: " + (e ? e.message : "unknown"));
|
|
704
704
|
});
|
|
705
705
|
req.on("timeout", (e) => {
|
|
706
|
-
(0, logger_1.log)("smartapp", "The request to " + url + ", timeout: " + e.message);
|
|
706
|
+
(0, logger_1.log)("smartapp", "The request to " + url + ", timeout: " + (e ? e.message : "unknown"));
|
|
707
707
|
});
|
|
708
708
|
req.end();
|
|
709
709
|
}
|
|
710
710
|
catch (e) {
|
|
711
|
-
(0, logger_1.log)("smartapp", "** http error ** " + e.message + " **");
|
|
711
|
+
(0, logger_1.log)("smartapp", "** http error ** " + (e ? e.message : "unknown") + " **");
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
//////////////
|
package/server/smartapp.ts
CHANGED
|
@@ -759,15 +759,15 @@ export class SmartApp extends WebApp {
|
|
|
759
759
|
req.write(formdata);
|
|
760
760
|
}
|
|
761
761
|
req.on("error", (e) => {
|
|
762
|
-
log("smartapp", "The request to " + url + ", error: " + e.message);
|
|
762
|
+
log("smartapp", "The request to " + url + ", error: " + (e ? e.message : "unknown"));
|
|
763
763
|
});
|
|
764
764
|
req.on("timeout", (e) => {
|
|
765
|
-
log("smartapp", "The request to " + url + ", timeout: " + e.message);
|
|
765
|
+
log("smartapp", "The request to " + url + ", timeout: " + (e ? e.message : "unknown"));
|
|
766
766
|
});
|
|
767
767
|
req.end();
|
|
768
768
|
|
|
769
769
|
} catch(e) {
|
|
770
|
-
log("smartapp", "** http error ** " + e.message + " **");
|
|
770
|
+
log("smartapp", "** http error ** " + (e ? e.message : "unknown") + " **");
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
773
|
|