Skip to content

Commit

Permalink
release 4.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Jan 16, 2024
1 parent a8729f2 commit 1fb1593
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 91 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## The properties *inputs.displayType* and *surrounds.displayType* are removed.
## Note - after update to 3.15.x need remove the accessory frome Home app and add it again.

## [4.7.0] - (15.01.2024)
## Note - after update to 4.7.x buttons, sensors, volume display type need to be configure again using config UI.
## Changes
- removed *mode* reference from manually configured *inputs*, not dedded anymore
- fixed explicit *generation* resolution for old device *0*, thanks @DonutEspresso
- fixed legacy volume control mode display if set to lightbulb
- fixed [#227](https://github.com/grzegorz914/homebridge-denon-tv/issues/227)
- bump dependencies
- config schema updated
- cleanup

## [4.6.0] - (14.01.2024)
## Changes
- added support for new API of AVR like AVC-X4800H or Marantz PM7000N, closes [#211](https://github.com/grzegorz914/homebridge-denon-tv/issues/211)
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,26 +69,25 @@ Tested Denon AVR-2112CI, AVR-3311CI, AVR-X6300H, AVR-X2700H, AVC-X4800H, Marantz
| `port` | Here set the API communication port, if `8080` is not working try to use port `80` which some receivers use alternatively. |
| `zoneControl` | Selects which zone will be controlled by this section `0 - Main Zone`, `1 - Zone 2`, `2 - Zone 3`, `3 - Surround Mode`. |
| `generation` | Here select generation of Your device, old `0 - AVR-3311CI`, middle `1 - AVR-X6300H`, new `2 - AVC-X4800H`. |
| `getInputsFromDevice` | If enabled, source *Inputs* will be loaded direct from device. |
| `getInputsFromDevice` | If enabled, *Inputs* will be loaded direct from device. |
| `getFavoritesFromDevice` | If enabled, *Favorites* will be loaded to the inputs list if exist. |
| `getQuickSmartSelectFromDevice` | If enabled, *Quick/Smart Select* will be loaded to the inputs list if exist. |
| `inputsDisplayOrder` | Here select display order of the inputs list, `None`, `Ascending by Name`, `Descending by Name`, `Ascending by Reference`, `Ascending by Reference`. |
| `inputsDisplayOrder` | Here select display order of the inputs list, `0 - None`, `1 - Ascending by Name`, `2 - Descending by Name`, `3 - Ascending by Reference`, `4 - Ascending by Reference`. |
| `inputs.name` | Here set *Input Name* which You want expose to the *Homebridge/HomeKit*. |
| `inputs.reference` | Choose from available inputs, the inputs that should be published to and appear in HomeKit app in the device tile as inputs list |
| `inputs.mode` | Choose from available inputs mode. |
| `surrounds.name` | Here set *Surround Mode Name* which You want expose to the *Homebridge/HomeKit*. |
| `surrounds.reference` | Here choice *Surround Mode*, the mode that should be published to and appear in HomeKit app in the extra tile as Surrounds List. |
| `buttons.name` | Here set *Button Name* which You want expose to the *Homebridge/HomeKit*. |
| `buttons.reference` | Here choice function for additional control button for Main Zone. |
| `buttons.displayType` | Here select display type in HomeKit app, possible `-1 - None/Disabled`, `0 - Outlet`, `1 - Switch`.|
| `buttons.displayType` | Here select characteristic type to be exposed in HomeKit app, possible `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`.|
| `buttons.namePrefix` | Here enable/disable the accessory name as a prefix for button name.|
| `sensorPower`| If enabled, then the Power will be exposed as a `Contact Sensor` to use with automations. |
| `sensorVolume`| If enabled, then the Volume will be exposed as a `Contact Sensor` to use with automations. |
| `sensorMute`| If enabled, then the Mute will be exposed as a `Contact Sensor` to use with automations. |
| `sensorInput`| If enabled, then the Input will be exposed as a `Contact Sensor` to use with automations. |
| `sensorInputs.name` | Here set own *Name* which You want expose to the *Homebridge/HomeKit* for this sensor. |
| `sensorInputs.reference` | Here set *Reference* like `CBL/SAT`, `GAME` to be exposed as `Contact Sensor` active on switch to this Input. |
| `sensorInputs.displayType` | Here select sensor type to be exposed in HomeKit app, `-1 - None/Disabled`, `0 - Motion Sensor`, `1 - Occupancy Sensor`, `2 - Contact Sensor`. |
| `sensorInputs.displayType` | Here select characteristic type to be exposed in HomeKit app, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`. |
| `sensorInputs.namePrefix` | Here enable/disable the accessory name as a prefix for sensor name.|
| `enableDebugMode` | If enabled, deep log will be present in homebridge console. |
| `disableLogInfo` | If enabled, disable log info, all values and state will not be displayed in Homebridge log console. |
Expand All @@ -97,7 +96,7 @@ Tested Denon AVR-2112CI, AVR-3311CI, AVR-X6300H, AVR-X2700H, AVC-X4800H, Marantz
| `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 |
| `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 |
| `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 |
| `volumeControl` | Here choice what a additional volume control mode You want to use (`-1 - None/Disabled`, `0 - Lightbulb`, `1 - Fan`). |
| `volumeControl` | Here choice what a additional volume control mode You want to use (`0 - None/Disabled`, `1 - Lightbulb`, `2 - Fan`). |
| `infoButtonCommand` | Here select the function of `I` button in RC app. |
| `refreshInterval` | Here set the data refresh interval. |
| `enableRestFul` | If enabled, RESTful server will start automatically and respond to any path request. |
Expand Down
67 changes: 19 additions & 48 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"type": "integer",
"minimum": 0,
"maximum": 2,
"default": 1,
"default": 0,
"description": "Here select generation of Your device.",
"oneOf": [
{
Expand Down Expand Up @@ -125,7 +125,7 @@
}
},
"inputsDisplayOrder": {
"title": "Inputs Display Order",
"title": "Display Order",
"type": "integer",
"minimum": 0,
"maximum": 4,
Expand Down Expand Up @@ -641,32 +641,6 @@
}
],
"required": true
},
"mode": {
"title": "Mode",
"type": "string",
"description": "Here select input mode.",
"oneOf": [
{
"title": "INPUT",
"enum": [
"SI"
]
},
{
"title": "FAVORITE",
"enum": [
"ZM"
]
},
{
"title": "QUICK/SMART SELECT",
"enum": [
"MS"
]
}
],
"required": true
}
}
},
Expand Down Expand Up @@ -4446,29 +4420,29 @@
"required": true
},
"displayType": {
"title": "Display Type",
"title": "Type",
"type": "integer",
"oneOf": [
{
"title": "None/Disabled",
"enum": [
-1
0
]
},
{
"title": "Outlet",
"enum": [
0
1
]
},
{
"title": "Switch",
"enum": [
1
2
]
}
],
"description": "Here select display type in HomeKit app.",
"description": "Here select characteristic type to be exposed in HomeKit app.",
"required": true
},
"namePrefix": {
Expand Down Expand Up @@ -4536,29 +4510,29 @@
{
"title": "None/Disabled",
"enum": [
-1
0
]
},
{
"title": "Motion Sensor",
"enum": [
0
1
]
},
{
"title": "Occupancy Sensor",
"enum": [
1
2
]
},
{
"title": "Contact Sensor",
"enum": [
2
3
]
}
],
"description": "Here select sensor type to be exposed in HomeKit app.",
"description": "Here select characteristic type to be exposed in HomeKit app.",
"required": true
},
"namePrefix": {
Expand Down Expand Up @@ -4648,27 +4622,27 @@
"volumeControl": {
"title": "Volume Control Mode",
"type": "integer",
"minimum": -1,
"maximum": 1,
"default": -1,
"minimum": 0,
"maximum": 2,
"default": 0,
"description": "Here select what a volume control mode You want to use. If select *None/Disabled* only hardware buttons in RC app can be used to control volume.",
"oneOf": [
{
"title": "None/Disabled",
"enum": [
-1
0
]
},
{
"title": "Lightbulb",
"enum": [
0
1
]
},
{
"title": "Fan",
"enum": [
1
2
]
}
],
Expand Down Expand Up @@ -4831,8 +4805,7 @@
"title": "{{ value.name || 'input' }}",
"items": [
"devices[].inputs[].name",
"devices[].inputs[].reference",
"devices[].inputs[].mode"
"devices[].inputs[].reference"
]
}
],
Expand Down Expand Up @@ -4928,8 +4901,6 @@
"key": "devices[]",
"title": "Device",
"items": [
"devices[].supportOldAvr",
"devices[].supportNewAvr",
"devices[].masterPower",
"devices[].masterVolume",
"devices[].masterMute",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "Denon TV",
"name": "homebridge-denon-tv",
"version": "4.6.0",
"version": "4.7.0",
"description": "Homebridge plugin to control Denon/Marantz AV Receivers.",
"license": "MIT",
"author": "grzegorz914",
Expand Down
34 changes: 14 additions & 20 deletions sample-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,24 @@
"inputs": [
{
"name": "Xbox One",
"reference": "GAME",
"mode": "SI"
"reference": "GAME"
},
{
"name": "Television",
"reference": "TV",
"mode": "SI"
"reference": "TV"
}
],
"buttons": [
{
"name": "MASTER POWER ON",
"reference": "0PWON",
"displayType": -1,
"displayType": 0,
"namePrefix": false
},
{
"name": "ZM POWER ON",
"reference": "0ZMON",
"displayType": -1,
"displayType": 0,
"namePrefix": false
}
],
Expand All @@ -62,7 +60,7 @@
{
"name": "Tuner Sat",
"reference": "CBL/SAT",
"displayType": -1,
"displayType": 0,
"namePrefix": false
}
],
Expand Down Expand Up @@ -100,20 +98,18 @@
"inputs": [
{
"name": "Xbox One",
"reference": "GAME",
"mode": "SI"
"reference": "GAME"
},
{
"name": "Television",
"reference": "TV",
"mode": "SI"
"reference": "TV"
}
],
"buttons": [
{
"name": "Z2 POWER ON",
"reference": "1ON",
"displayType": -1
"displayType": 0
}
],
"sensorPower": false,
Expand All @@ -124,7 +120,7 @@
{
"name": "Tuner Sat",
"reference": "CBL/SAT",
"displayType": -1
"displayType": 0
}
],
"enableDebugMode": false,
Expand Down Expand Up @@ -161,20 +157,18 @@
"inputs": [
{
"name": "Xbox One",
"reference": "GAME",
"mode": "SI"
"reference": "GAME"
},
{
"name": "Television",
"reference": "TV",
"mode": "SI"
"reference": "TV"
}
],
"buttons": [
{
"name": "Z3 POWER ON",
"reference": "1ON",
"displayType": -1
"displayType": 0
}
],
"sensorPower": false,
Expand All @@ -185,7 +179,7 @@
{
"name": "Tuner Sat",
"reference": "CBL/SAT",
"displayType": -1
"displayType": 0
}
],
"enableDebugMode": false,
Expand Down Expand Up @@ -230,7 +224,7 @@
{
"name": "MASTER POWER ON",
"reference": "0PWON",
"displayType": -1
"displayType": 0
}
],
"sensorPower": false,
Expand Down
6 changes: 6 additions & 0 deletions src/constans.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@
"USB",
"APPLICATION"
],
"InputMode": {
"INPUT": "SI",
"FAVOR": "ZM",
"QUICK": "MS",
"SMART": "MS"
},
"SoundModeConversion": {
"MOVIE": "MOVIE",
"MUSIC": "MUSIC",
Expand Down
Loading

0 comments on commit 1fb1593

Please sign in to comment.