homebridge-eosstb 2.4.0-alpha.44 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/index.js +15 -1
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -51,6 +51,12 @@ 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
+
57
+ ## 2.4.0-alpha.45 (2026-05-09)
58
+ - Added some debugging to the volume commands to trace an issue
59
+
54
60
  ## 2.4.0-alpha.44 (2026-05-09)
55
61
  - Fixed some log level issues
56
62
  - Fixed issue with Remove volumeDown causing Unhandled error thrown inside write handler for characteristic
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
- // self-limiting,shift of array values:
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
 
@@ -7822,6 +7833,9 @@ class StbDevice {
7822
7833
  }
7823
7834
 
7824
7835
  try {
7836
+ if (this.debugLevel > 0) {
7837
+ this.log.warn("%s: setVolume: Sending command %s", this.name, command);
7838
+ }
7825
7839
  await new Promise((resolve, reject) => {
7826
7840
  exec(command, (error, _stdout, stderr) => {
7827
7841
  if (error) reject(stderr.trim());
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.44",
6
+ "version": "2.4.0-alpha.46",
7
7
  "platformname": "eosstb",
8
8
  "dependencies": {
9
9
  "axios": "^1.16.0",