Skip to content

Commit

Permalink
release 4.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Apr 3, 2024
1 parent 46c617a commit 03cc66a
Show file tree
Hide file tree
Showing 6 changed files with 308 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Note - after update to 4.7.x buttons, sensors, volume display type need to be configure again using config UI.
## Note - after update to 3.15.x need remove the accessory frome Home app and add it again.

## [4.11.0] - (03.04.2024)
## Changes
- added custom sensors based on surrounds reference
- fixed [#253](https://github.com/grzegorz914/homebridge-denon-tv/issues/253)
- config schema updated
- cleanup

## [4.10.0] - (04.03.2024)
## Changes
- added support to subscribe MQTT and control device
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,16 @@ Tested Denon AVR-2112CI, AVR-3311CI, AVR-X6300H, AVR-X2700H, AVC-X4800H, Marantz
| `sensorVolume`| If enabled, then the Volume will be exposed as a `Contact Sensor`, fired on every Volume change. |
| `sensorMute`| If enabled, then the Mute will be exposed as a `Contact Sensor`, fired if Mmute ON. |
| `sensorInput`| If enabled, then the Input will be exposed as a `Contact Sensor`, fired on every Input change. |
| `sensorInputs`| Her create custom Inputs sensor, sensors will be exposed as a `Contact Sensor`, fired if switch to it. |
| `sensorInputs`| Her create custom Inputs sensor, sensors will be exposed as a `Contact/Motion/Ocupncy Sensor`, fired if switch to it. |
| `sensorInputs.name` | Here set own `Name` which You want expose to the `Homebridge/HomeKit` for this sensor. |
| `sensorInputs.reference` | Here select reference, fired if switch to this reference. |
| `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.|
| `sensorSurrounds`| Her create custom Sound Mode sensor, sensors will be exposed as a `Contact/Motion/Ocupncy Sensor`, fired if switch to it. |
| `sensorSurrounds.name` | Here set own `Name` which You want expose to the `Homebridge/HomeKit` for this sensor. |
| `sensorSurrounds.reference` | Here select reference, fired if switch to this reference. |
| `sensorSurrounds.displayType` | Here select characteristic type to be exposed in HomeKit app, `0 - None/Disabled`, `1 - Motion Sensor`, `2 - Occupancy Sensor`, `3 - Contact Sensor`. |
| `sensorSurrounds.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. |
| `disableLogDeviceInfo` | If enabled, add ability to disable log device info by every connections device to the network. |
Expand Down
225 changes: 223 additions & 2 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5549,7 +5549,7 @@
]
},
{
"title": " M-XPORT (Marantz Only)",
"title": "M-XPORT (Marantz Only)",
"enum": [
"M-XPORT"
]
Expand Down Expand Up @@ -5941,6 +5941,201 @@
}
}
},
"sensorSurrounds": {
"type": "array",
"items": {
"title": "Surround",
"type": "object",
"description": "Here create sensors based on reference, fired if switch to it.",
"properties": {
"name": {
"title": "Name",
"type": "string",
"placeholder": "Name",
"description": "Here set Your own name.",
"required": true
},
"reference": {
"title": "Reference",
"type": "string",
"oneOf": [
{
"title": "MOVIE",
"enum": [
"MOVIE"
]
},
{
"title": "MUSIC",
"enum": [
"MUSIC"
]
},
{
"title": "GAME",
"enum": [
"GAME"
]
},
{
"title": "DIRECT",
"enum": [
"DIRECT"
]
},
{
"title": "PURE DIRECT",
"enum": [
"PURE DIRECT"
]
},
{
"title": "STEREO",
"enum": [
"STEREO"
]
},
{
"title": "DOLBY DIGITAL",
"enum": [
"DOLBY DIGITAL"
]
},
{
"title": "DTS SURROUND",
"enum": [
"DTS SURROUND"
]
},
{
"title": "AURO 3D",
"enum": [
"AURO3D"
]
},
{
"title": "AURO 2D",
"enum": [
"AURO2DSURR"
]
},
{
"title": "MCH STEREO",
"enum": [
"MCH STEREO"
]
},
{
"title": "WIDE SCREEN",
"enum": [
"WIDE SCREEN"
]
},
{
"title": "SUPER STADIUM",
"enum": [
"SUPER STADIUM"
]
},
{
"title": "ROCK ARENA",
"enum": [
"ROCK ARENA"
]
},
{
"title": "JAZZ CLUB",
"enum": [
"JAZZ CLUB"
]
},
{
"title": "CLASSIC CONCERT",
"enum": [
"CLASSIC CONCERT"
]
},
{
"title": "MONO MOVIE",
"enum": [
"MONO MOVIE"
]
},
{
"title": "MATRIX",
"enum": [
"MATRIX"
]
},
{
"title": "VIDEO GAME",
"enum": [
"VIDEO GAME"
]
},
{
"title": "VIRTUAL",
"enum": [
"VIRTUAL"
]
},
{
"title": "NEURAL",
"enum": [
"NEURAL"
]
},
{
"title": "STANDARD",
"enum": [
"STANDARD"
]
}
],
"description": "Here select reference.",
"required": true
},
"displayType": {
"title": "Type",
"type": "integer",
"oneOf": [
{
"title": "None/Disabled",
"enum": [
0
]
},
{
"title": "Motion Sensor",
"enum": [
1
]
},
{
"title": "Occupancy Sensor",
"enum": [
2
]
},
{
"title": "Contact Sensor",
"enum": [
3
]
}
],
"description": "Here select characteristic type to be exposed in HomeKit app.",
"required": true
},
"namePrefix": {
"title": "Prefix",
"type": "boolean",
"description": "Here enable/disable the accessory name as a prefix for sensor name.",
"required": true
}
}
}
},
"enableDebugMode": {
"title": "Debug",
"type": "boolean",
Expand Down Expand Up @@ -6339,7 +6534,33 @@
"devices[].sensorInputs[].namePrefix"
]
}
]
],
"condition": {
"functionBody": "return model.devices[arrayIndices].zoneControl <= 2;"
}
},
{
"key": "devices[]",
"type": "section",
"title": "Custom Sensors",
"expandable": true,
"expanded": false,
"items": [
{
"key": "devices[].sensorSurrounds",
"type": "tabarray",
"title": "{{ value.name || 'sensor' }}",
"items": [
"devices[].sensorSurrounds[].name",
"devices[].sensorSurrounds[].reference",
"devices[].sensorSurrounds[].displayType",
"devices[].sensorSurrounds[].namePrefix"
]
}
],
"condition": {
"functionBody": "return model.devices[arrayIndices].zoneControl === 3;"
}
}
]
},
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.10.9",
"version": "4.11.0",
"description": "Homebridge plugin to control Denon/Marantz AV Receivers.",
"license": "MIT",
"author": "grzegorz914",
Expand Down
8 changes: 8 additions & 0 deletions sample-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@
"namePrefix": false
}
],
"sensorSurrounds": [
{
"name": "Movie",
"reference": "MOVIE",
"displayType": 0,
"namePrefix": false
}
],
"enableDebugMode": false,
"disableLogInfo": false,
"disableLogDeviceInfo": false,
Expand Down
Loading

0 comments on commit 03cc66a

Please sign in to comment.