homebridge-eosstb 2.1.0 → 2.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/CHANGELOG.md CHANGED
@@ -10,6 +10,14 @@ Please restart Homebridge after every plugin update.
10
10
  * Implement refreshToken capabilities
11
11
 
12
12
 
13
+ ## 2.1.2 (2023-01-08)
14
+ * Fixed bug causing the plugin to crash when logging an error in getRecordingState and refreshDeviceChannelList
15
+
16
+
17
+ ## 2.1.1 (2023-01-05)
18
+ * Fixed bug where InputSourceType and InputDeviceType values were not correctly read
19
+
20
+
13
21
  ## 2.1.0 (2023-01-03)
14
22
  * Added KeyMacro support
15
23
  * Added custom characteristics: Current Channel Id and Current Channel Name, useful in automations
package/README.md CHANGED
@@ -261,7 +261,7 @@ Example extended configuration as used on the author with his EOSSTB set-top box
261
261
  },
262
262
  "channels": [
263
263
  {
264
- "channelKeyMacro": "TV MediaTopMenu wait(1000) ArrowRight ArrowRight Enter wait(1000) ArrowDown wait(1500) Enter wait(2000) Enter",
264
+ "channelKeyMacro": "TV MediaTopMenu wait(2000) ArrowRight ArrowRight Enter wait(1000) ArrowDown wait(1500) Enter wait(2000) Enter",
265
265
  "channelName": "Last Played Radio"
266
266
  },
267
267
  {
package/index.js CHANGED
@@ -2556,7 +2556,7 @@ class stbPlatform {
2556
2556
  } else {
2557
2557
  errReason = error;
2558
2558
  }
2559
- this.log,warn('%s', (errReason || ''));
2559
+ this.log.warn('%s', (errReason || ''));
2560
2560
  this.log.debug(`getRecordingState error:`, error);
2561
2561
  return false, error;
2562
2562
  });
@@ -3948,7 +3948,7 @@ class stbDevice {
3948
3948
  // this slot needs to be occupied by a keyMacro
3949
3949
  k = i - firstKeyMacroSlot
3950
3950
  this.log.debug("%s: Index %s: Loading channel %s keyMacro %s %s", this.name, i, i+1, k+1, keyMacros[k].channelName);
3951
- this.log,debug("%s: Index %s: Load this keyMacro: %s", this.name, i, keyMacros[k]);
3951
+ this.log.debug("%s: Index %s: Load this keyMacro: %s", this.name, i, keyMacros[k]);
3952
3952
  channel = {
3953
3953
  "id": '$KeyMacro' + (k+1),
3954
3954
  "name": keyMacros[k].channelName,
@@ -4714,7 +4714,7 @@ class stbDevice {
4714
4714
  if (this.config.debugLevel > 1) {
4715
4715
  this.log.warn('%s: getInputSourceType returning %s [%s]', this.name, this.currentInputSourceType, Object.keys(Characteristic.InputSourceType)[this.currentInputSourceType + 1]);
4716
4716
  }
4717
- callback(null, 0);
4717
+ callback(null, this.currentInputSourceType);
4718
4718
  }
4719
4719
 
4720
4720
  // get InputDeviceType state
@@ -4724,7 +4724,7 @@ class stbDevice {
4724
4724
  if (this.config.debugLevel > 1) {
4725
4725
  this.log.warn('%s: getInputDeviceType returning %s [%s]', this.name, this.currentInputDeviceType, Object.keys(Characteristic.InputDeviceType)[this.currentInputDeviceType + 1]);
4726
4726
  }
4727
- callback(null, 0);
4727
+ callback(null, this.currentInputDeviceType);
4728
4728
  }
4729
4729
 
4730
4730
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Homebridge EOSSTB",
4
4
  "description": "homebridge-plugin - Add your set-top box to Homekit (for Magenta AT, Telenet BE, Sunrise CH, Virgin Media GB & IE, Ziggo NL)",
5
5
  "author": "Jochen Siegenthaler (https://github.com/jsiegenthaler/)",
6
- "version": "2.1.0",
6
+ "version": "2.1.2",
7
7
  "platformname": "eosstb",
8
8
  "dependencies": {
9
9
  "axios-cookiejar-support": "^4.0.6",