homebridge-eosstb 2.4.0-alpha.45 → 2.4.0-alpha.46
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/CHANGELOG.md +3 -0
- package/index.js +12 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -51,6 +51,9 @@ Channel name: overwrite not allowed - can we disable in HomeKit. Yes, but preven
|
|
|
51
51
|
CHALLENGE
|
|
52
52
|
The mostWatchedChannelList is not working
|
|
53
53
|
|
|
54
|
+
## 2.4.0-alpha.46 (2026-05-09)
|
|
55
|
+
- Fixed the issue with volume commands
|
|
56
|
+
|
|
54
57
|
## 2.4.0-alpha.45 (2026-05-09)
|
|
55
58
|
- Added some debugging to the volume commands to trace an issue
|
|
56
59
|
|
package/index.js
CHANGED
|
@@ -7775,6 +7775,8 @@ class StbDevice {
|
|
|
7775
7775
|
: "Up",
|
|
7776
7776
|
);
|
|
7777
7777
|
|
|
7778
|
+
let tripleVolDownPress = Infinity; // default prevents false triple-press detection
|
|
7779
|
+
|
|
7778
7780
|
// triple rapid VolDown presses triggers setMute
|
|
7779
7781
|
if (volumeSelectorValue === Characteristic.VolumeSelector.DECREMENT) {
|
|
7780
7782
|
// Guard: ensure array is properly initialised
|
|
@@ -7782,9 +7784,18 @@ class StbDevice {
|
|
|
7782
7784
|
this.lastVolDownKeyPress = [0, 0, 0];
|
|
7783
7785
|
}
|
|
7784
7786
|
|
|
7785
|
-
//
|
|
7787
|
+
// Self-limiting shift of array values
|
|
7786
7788
|
this.lastVolDownKeyPress.unshift(Date.now());
|
|
7787
7789
|
this.lastVolDownKeyPress = this.lastVolDownKeyPress.slice(0, 3); // keep only last 3
|
|
7790
|
+
|
|
7791
|
+
// Now assign the calculated value to the outer variable
|
|
7792
|
+
tripleVolDownPress = this.lastVolDownKeyPress[0] - this.lastVolDownKeyPress[2];
|
|
7793
|
+
|
|
7794
|
+
this.log.debug(
|
|
7795
|
+
"%s: setVolume: Timediff between volDownKeyPress[0] and volDownKeyPress[2]: %s ms",
|
|
7796
|
+
this.name,
|
|
7797
|
+
tripleVolDownPress,
|
|
7798
|
+
);
|
|
7788
7799
|
|
|
7789
7800
|
}
|
|
7790
7801
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"displayName": "Homebridge EOSSTB",
|
|
4
4
|
"description": "Add your set-top box to Homekit (for Telenet BE, Sunrise CH, UPC SK, Virgin Media GB & IE, Ziggo NL)",
|
|
5
5
|
"author": "Jochen Siegenthaler (https://github.com/jsiegenthaler/)",
|
|
6
|
-
"version": "2.4.0-alpha.
|
|
6
|
+
"version": "2.4.0-alpha.46",
|
|
7
7
|
"platformname": "eosstb",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"axios": "^1.16.0",
|