homebridge-denon-tv 4.3.0-beta.2 → 4.3.0
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/README.md +1 -1
- package/config.schema.json +1 -1
- package/package.json +1 -1
- package/src/denondevice.js +1 -1
- package/src/mqtt.js +1 -1
- package/src/restful.js +4 -4
package/README.md
CHANGED
|
@@ -98,7 +98,7 @@ Tested with Denon AVR-X6300H, Denon AVR-X2700H, Denon AVR-3311CI, Marantz SR8012
|
|
|
98
98
|
| `infoButtonCommand` | Here select the function of `I` button in RC app. |
|
|
99
99
|
| `refreshInterval` | Here set the data refresh interval. |
|
|
100
100
|
| `enableRestFul` | If enabled, RESTful server will start automatically and respond to any path request. |
|
|
101
|
-
| `restFulPort` | Here set the listening `Port` for RESTful server, every zone need
|
|
101
|
+
| `restFulPort` | Here set the listening `Port` for RESTful server, every zone need own port. |
|
|
102
102
|
| `restFulDebug` | If enabled, deep log will be present in homebridge console for RESTFul server. |
|
|
103
103
|
| `enableMqtt` | If enabled, MQTT Broker will start automatically and publish all awailable PV installation data. |
|
|
104
104
|
| `mqttDebug` | If enabled, deep log will be present in homebridge console for MQTT. |
|
package/config.schema.json
CHANGED
|
@@ -4626,7 +4626,7 @@
|
|
|
4626
4626
|
"type": "integer",
|
|
4627
4627
|
"placeholder": 3000,
|
|
4628
4628
|
"required": true,
|
|
4629
|
-
"description": "Here set the listening Port for RESTful server.",
|
|
4629
|
+
"description": "Here set the listening Port for RESTful server, every zone need own port.",
|
|
4630
4630
|
"condition": {
|
|
4631
4631
|
"functionBody": "return model.devices[arrayIndices].enableRestFul === true;"
|
|
4632
4632
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Denon TV",
|
|
3
3
|
"name": "homebridge-denon-tv",
|
|
4
|
-
"version": "4.3.0
|
|
4
|
+
"version": "4.3.0",
|
|
5
5
|
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Denon/Marantz AV Receivers.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
package/src/denondevice.js
CHANGED
|
@@ -118,7 +118,7 @@ class DenonDevice extends EventEmitter {
|
|
|
118
118
|
this.mqtt = new Mqtt({
|
|
119
119
|
host: this.mqttHost,
|
|
120
120
|
port: this.mqttPort,
|
|
121
|
-
prefix: `${this.
|
|
121
|
+
prefix: `${this.mqttPrefix}/${this.name}`,
|
|
122
122
|
auth: this.mqttAuth,
|
|
123
123
|
user: this.mqttUser,
|
|
124
124
|
passwd: this.mqttPasswd,
|
package/src/mqtt.js
CHANGED
|
@@ -43,7 +43,7 @@ class MQTTCLIENT extends EventEmitter {
|
|
|
43
43
|
const fullTopic = `${this.mqttPrefix}/${topic}`;
|
|
44
44
|
const publishMessage = JSON.stringify(message, null, 2);
|
|
45
45
|
await this.mqttClient.publish(fullTopic, publishMessage);
|
|
46
|
-
const debug = this.mqttDebug ? this.emit('debug', `MQTT publish: ${fullTopic}: ${
|
|
46
|
+
const debug = this.mqttDebug ? this.emit('debug', `MQTT publish: ${fullTopic}: ${publishMessage}`) : false;
|
|
47
47
|
} catch (error) {
|
|
48
48
|
this.emit('error', `MQTT Publish error: ${error}`);
|
|
49
49
|
};
|
package/src/restful.js
CHANGED
|
@@ -9,10 +9,10 @@ class RestFul extends EventEmitter {
|
|
|
9
9
|
this.restFulDebug = config.debug;
|
|
10
10
|
|
|
11
11
|
this.restFulData = {
|
|
12
|
-
info: 'This data is not available
|
|
13
|
-
state: 'This data is not available
|
|
14
|
-
picture: 'This data is not available
|
|
15
|
-
surround: 'This data is not available
|
|
12
|
+
info: 'This data is not available at this time for this zone.',
|
|
13
|
+
state: 'This data is not available at this time for this zone.',
|
|
14
|
+
picture: 'This data is not available at this time for this zone.',
|
|
15
|
+
surround: 'This data is not available at this time for this zone.'
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
this.connect();
|