homebridge-eosstb 2.4.0-alpha.37 → 2.4.0-alpha.38

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
@@ -42,6 +42,10 @@ Channel name: overwrite not allowed - can we disable in HomeKit. Yes, but preven
42
42
  CHALLENGE
43
43
  The mostWatchedChannelList is not working
44
44
 
45
+ ## 2.4.0-alpha.38 (2026-03-07)
46
+
47
+ - changes to settargetmediastate & setMediaState
48
+
45
49
  ## 2.4.0-alpha.37 (2026-03-07)
46
50
 
47
51
  - changes to settargetmediastate
package/index.js CHANGED
@@ -5137,7 +5137,7 @@ class StbPlatform {
5137
5137
  }
5138
5138
 
5139
5139
  // set the media state of the settopbox via mqtt
5140
- // controlled by speedRate
5140
+ // media state is controlled by speedRate
5141
5141
  // speedRate can be one of: -64 -30 -6 -2 0 2 6 30 64. 0=Paused, 1=Play, >1=FastForward, <0=Rewind
5142
5142
  setMediaState(deviceId, deviceName, channelId, speedRate) {
5143
5143
  try {
@@ -5151,6 +5151,7 @@ class StbPlatform {
5151
5151
  );
5152
5152
  }
5153
5153
  if (this.mqttUsername) {
5154
+ const topic = `${this.mqttUsername}/${deviceId}`;
5154
5155
  const payload = JSON.stringify({
5155
5156
  id: randomUUID(),
5156
5157
  type: "CPE.pushToTV",
@@ -5165,7 +5166,11 @@ class StbPlatform {
5165
5166
  speed: speedRate,
5166
5167
  },
5167
5168
  });
5168
- this.mqttPublishMessage(`${this.mqttUsername}/${deviceId}`, payload, {
5169
+ if (this.debugLevel > 0) {
5170
+ this.log.warn("setMediaState: publishing to topic:", topic);
5171
+ }
5172
+ this.log.warn(payload);
5173
+ this.mqttPublishMessage(topic, payload, {
5169
5174
  qos: 2,
5170
5175
  retain: true,
5171
5176
  });
@@ -8193,8 +8198,6 @@ class StbDevice {
8193
8198
  targetMediaState,
8194
8199
  CHAR_NAMES.TargetMediaState[targetMediaState + 1],
8195
8200
  );
8196
-
8197
- this.log(CHAR_NAMES)
8198
8201
  // }
8199
8202
 
8200
8203
  if (!logChangeOnly) {
@@ -8209,7 +8212,7 @@ class StbDevice {
8209
8212
  // PAUSE 1 - 0 Paused
8210
8213
  // STOP 2 - 0 Paused
8211
8214
  const newBoxMediaState = targetMediaState === Characteristic.TargetMediaState.PLAY ? 1 : 0;
8212
- const newBoxMediaStateName = newBoxMediaState === 1 ? "Play" : "Pauseb";
8215
+ const newBoxMediaStateName = newBoxMediaState === 1 ? "Play" : "Paused";
8213
8216
 
8214
8217
  //if (this.debugLevel >= 0) {
8215
8218
  this.log(
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.37",
6
+ "version": "2.4.0-alpha.38",
7
7
  "platformname": "eosstb",
8
8
  "dependencies": {
9
9
  "axios": "^1.13.6",