homebridge-denon-tv 3.18.0 → 3.18.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 +8 -0
- package/README.md +15 -6
- package/index.js +4 -2
- package/package.json +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## Note - after update to 3.15.x need remove the accessory frome Home app and add it again.
|
|
8
8
|
|
|
9
|
+
## [3.18.2] - (23.11.2022)
|
|
10
|
+
## Changes
|
|
11
|
+
- bump dependencies
|
|
12
|
+
|
|
13
|
+
## [3.18.1] - (26.10.2022)
|
|
14
|
+
## Changes
|
|
15
|
+
- fix Mute Sensor state after power off
|
|
16
|
+
|
|
9
17
|
## [3.18.0] - (26.10.2022)
|
|
10
18
|
## Changes
|
|
11
19
|
- added Power Motion Sensor for use with automations
|
package/README.md
CHANGED
|
@@ -66,12 +66,12 @@ This plugin is based upon the official documentation for communicating with and
|
|
|
66
66
|
| `enableDebugMode` | If enabled, deep log will be present in homebridge console. |
|
|
67
67
|
| `disableLogInfo` | If enabled, disable log info, all values and state will not be displayed in Homebridge log console. |
|
|
68
68
|
| `disableLogDeviceInfo` | If enabled, add ability to disable log device info by every connections device to the network. |
|
|
69
|
-
| `masterPower` | If enabled, then the
|
|
70
|
-
| `sensorPower`| If enabled, then Power will be exposed as a Motion Sensor to use with automations. |
|
|
71
|
-
| `masterVolume`| If enabled, then the
|
|
72
|
-
| `sensorVolume`| If enabled, then Volume will be exposed as a Motion Sensor to use with automations. |
|
|
73
|
-
| `masterMute`| If enabled, then the
|
|
74
|
-
| `sensorMute`| If enabled, then Mute will be exposed as a Motion Sensor to use with automations. |
|
|
69
|
+
| `masterPower` | If enabled, then the Power switch for that zone (typically you would only use this for the Main Zone) will turn the entire receiver `ON` or `OFF/STANDBY` rather than just the zone itself |
|
|
70
|
+
| `sensorPower`| If enabled, then the Power will be exposed as a `Motion Sensor` to use with automations. |
|
|
71
|
+
| `masterVolume`| If enabled, then the Volume for that zone (typically you would only use this for the Main Zone) will set the entire receiver `UP` or `DOWN` rather than just the zone itself |
|
|
72
|
+
| `sensorVolume`| If enabled, then the Volume will be exposed as a `Motion Sensor` to use with automations. |
|
|
73
|
+
| `masterMute`| If enabled, then the Mute switch for that zone (typically you would only use this for the Main Zone) will muted the entire receiver `ON` or `OFF` rather than just the zone itself |
|
|
74
|
+
| `sensorMute`| If enabled, then the Mute will be exposed as a `Motion Sensor` to use with automations. |
|
|
75
75
|
| `volumeControl` | Here choice what a additional volume control mode You want to use (None, Lightbulb, Fan). |
|
|
76
76
|
| `infoButtonCommand` | Here select the function of `I` button in RC app. |
|
|
77
77
|
| `inputs.name` | Here set *Input Name* which You want expose to the *Homebridge/HomeKit*. |
|
|
@@ -162,8 +162,11 @@ This plugin is based upon the official documentation for communicating with and
|
|
|
162
162
|
"zoneControl" : 1,
|
|
163
163
|
"volumeControl": 0,
|
|
164
164
|
"masterPower": false,
|
|
165
|
+
"sensorPower": false,
|
|
165
166
|
"masterVolume": false,
|
|
167
|
+
"sensorVolume": false,
|
|
166
168
|
"masterMute": false,
|
|
169
|
+
"sensorMute": false,
|
|
167
170
|
"infoButtonCommand": "MNINF",
|
|
168
171
|
"disableLogInfo": false,
|
|
169
172
|
"disableLogDeviceInfo": false,
|
|
@@ -207,8 +210,11 @@ This plugin is based upon the official documentation for communicating with and
|
|
|
207
210
|
"zoneControl" : 2,
|
|
208
211
|
"volumeControl": 0,
|
|
209
212
|
"masterPower": false,
|
|
213
|
+
"sensorPower": false,
|
|
210
214
|
"masterVolume": false,
|
|
215
|
+
"sensorVolume": false,
|
|
211
216
|
"masterMute": false,
|
|
217
|
+
"sensorMute": false,
|
|
212
218
|
"infoButtonCommand": "MNINF",
|
|
213
219
|
"disableLogInfo": false,
|
|
214
220
|
"disableLogDeviceInfo": false,
|
|
@@ -252,8 +258,11 @@ This plugin is based upon the official documentation for communicating with and
|
|
|
252
258
|
"zoneControl" : 3,
|
|
253
259
|
"volumeControl": 0,
|
|
254
260
|
"masterPower": false,
|
|
261
|
+
"sensorPower": false,
|
|
255
262
|
"masterVolume": false,
|
|
263
|
+
"sensorVolume": false,
|
|
256
264
|
"masterMute": false,
|
|
265
|
+
"sensorMute": false,
|
|
257
266
|
"infoButtonCommand": "MNINF",
|
|
258
267
|
"disableLogInfo": false,
|
|
259
268
|
"disableLogDeviceInfo": false,
|
package/index.js
CHANGED
|
@@ -280,8 +280,9 @@ class denonTvDevice {
|
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
if (this.sensorMuteService) {
|
|
283
|
+
const state = power ? this.mute : false;
|
|
283
284
|
this.sensorMuteService
|
|
284
|
-
.updateCharacteristic(Characteristic.MotionDetected,
|
|
285
|
+
.updateCharacteristic(Characteristic.MotionDetected, state)
|
|
285
286
|
}
|
|
286
287
|
|
|
287
288
|
if (this.switchServices) {
|
|
@@ -698,6 +699,7 @@ class denonTvDevice {
|
|
|
698
699
|
}
|
|
699
700
|
};
|
|
700
701
|
|
|
702
|
+
//prepare sensor service
|
|
701
703
|
if (this.sensorPower) {
|
|
702
704
|
this.log.debug('prepareSensorPowerService')
|
|
703
705
|
this.sensorPowerService = new Service.MotionSensor(`${this.sZoneName} Power Sensor`, `Power Sensor`);
|
|
@@ -725,7 +727,7 @@ class denonTvDevice {
|
|
|
725
727
|
this.sensorMuteService = new Service.MotionSensor(`${this.sZoneName} Mute Sensor`, `Mute Sensor`);
|
|
726
728
|
this.sensorMuteService.getCharacteristic(Characteristic.MotionDetected)
|
|
727
729
|
.onGet(async () => {
|
|
728
|
-
const state = this.mute;
|
|
730
|
+
const state = this.power ? this.mute : false;
|
|
729
731
|
return state;
|
|
730
732
|
});
|
|
731
733
|
accessory.addService(this.sensorMuteService);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Denon TV",
|
|
3
3
|
"name": "homebridge-denon-tv",
|
|
4
|
-
"version": "3.18.
|
|
4
|
+
"version": "3.18.2",
|
|
5
5
|
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Denon/Marantz AV Receivers.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
|
@@ -13,10 +13,6 @@
|
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/grzegorz914/homebridge-denon-tv/issues"
|
|
15
15
|
},
|
|
16
|
-
"funding": {
|
|
17
|
-
"type": "paypal",
|
|
18
|
-
"url": "https://paypal.me/GrzegorzKaczor"
|
|
19
|
-
},
|
|
20
16
|
"main": "index.js",
|
|
21
17
|
"files": [
|
|
22
18
|
"src",
|
|
@@ -33,7 +29,7 @@
|
|
|
33
29
|
},
|
|
34
30
|
"dependencies": {
|
|
35
31
|
"async-mqtt": "^2.6.3",
|
|
36
|
-
"axios": "^1.
|
|
32
|
+
"axios": "^1.2.0",
|
|
37
33
|
"xml2js": ">=0.4.23"
|
|
38
34
|
},
|
|
39
35
|
"keywords": [
|