diff --git a/CHANGELOG.md b/CHANGELOG.md index 73a69b9..8381f06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### NOTE!!! ## After update to 2.x.x the plugin settings (xboxLiveId) need to be updated. +## [2.3.9] - (28.11.2022) +## Changed +- fix [#143](https://github.com/grzegorz914/homebridge-xbox-tv/issues/143) +- update dependencies + ## [2.3.8] - (02.11.2022) ## Changed - fix error with 2.3.7 diff --git a/index.js b/index.js index 508d7d2..52534e6 100644 --- a/index.js +++ b/index.js @@ -237,7 +237,7 @@ class XBOXDEVICE { const devInfo = JSON.stringify(obj, null, 2); const writeDevInfo = await fsPromises.writeFile(this.devInfoFile, devInfo); const debug = this.enableDebugMode ? this.log(`Device: ${this.host} ${this.name}, debug saved Info: ${devInfo}`) : false; - const mqtt = this.mqttEnabled ? this.mqtt.send('Info', obj) : false; + const mqtt = this.mqttEnabled ? this.mqtt.send('Info', devInfo) : false; } catch (error) { this.log.error('Device: %s %s, device info error: %s', this.host, this.name, error); }; @@ -283,7 +283,7 @@ class XBOXDEVICE { this.mute = mute; this.mediaState = mediaState; this.inputIdentifier = inputIdentifier; - const mqtt = this.mqttEnabled ? this.mqtt.send('State', obj) : false; + const mqtt = this.mqttEnabled ? this.mqtt.send('State', JSON.stringify(obj, null, 2)) : false; }) .on('error', (error) => { this.log.error(`Device: ${this.host} ${this.name}, ${error}`); diff --git a/package-lock.json b/package-lock.json index aab0e31..8546a91 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "homebridge-xbox-tv", - "version": "2.3.8", + "version": "2.3.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "homebridge-xbox-tv", - "version": "2.3.8", + "version": "2.3.9", "license": "MIT", "dependencies": { "@homebridge/plugin-ui-utils": ">=0.0.19", "async-mqtt": "^2.6.3", "elliptic": "^6.5.4", "hex-to-binary": ">=1.0.1", - "jsrsasign": "^10.5.27", + "jsrsasign": "^10.6.1", "ping": "^0.4.2", "uuid": ">=9.0.0", "uuid-parse": ">=1.1.0", @@ -1204,9 +1204,9 @@ } }, "node_modules/jsrsasign": { - "version": "10.5.27", - "resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.5.27.tgz", - "integrity": "sha512-1F4LmDeJZHYwoVvB44jEo2uZL3XuwYNzXCDOu53Ui6vqofGQ/gCYDmaxfVZtN0TGd92UKXr/BONcfrPonUIcQQ==", + "version": "10.6.1", + "resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.6.1.tgz", + "integrity": "sha512-emiQ05haY9CRj1Ho/LiuCqr/+8RgJuWdiHYNglIg2Qjfz0n+pnUq9I2QHplXuOMO2EnAW1oCGC1++aU5VoWSlw==", "funding": { "url": "https://github.com/kjur/jsrsasign#donations" } @@ -2983,9 +2983,9 @@ } }, "jsrsasign": { - "version": "10.5.27", - "resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.5.27.tgz", - "integrity": "sha512-1F4LmDeJZHYwoVvB44jEo2uZL3XuwYNzXCDOu53Ui6vqofGQ/gCYDmaxfVZtN0TGd92UKXr/BONcfrPonUIcQQ==" + "version": "10.6.1", + "resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.6.1.tgz", + "integrity": "sha512-emiQ05haY9CRj1Ho/LiuCqr/+8RgJuWdiHYNglIg2Qjfz0n+pnUq9I2QHplXuOMO2EnAW1oCGC1++aU5VoWSlw==" }, "leven": { "version": "2.1.0", diff --git a/package.json b/package.json index bafdf22..0aea4ac 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "displayName": "Xbox TV", "name": "homebridge-xbox-tv", - "version": "2.3.8", + "version": "2.3.9", "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Xbox game consoles.", "license": "MIT", "author": "grzegorz914", @@ -33,7 +33,7 @@ "async-mqtt": "^2.6.3", "elliptic": "^6.5.4", "hex-to-binary": ">=1.0.1", - "jsrsasign": "^10.5.27", + "jsrsasign": "^10.6.1", "uuid": ">=9.0.0", "uuid-parse": ">=1.1.0", "xbox-webapi": "^1.4.1",