homebridge-denon-tv
Version:
Homebridge plugin to control Denon/Marantz AV Receivers.
1,526 lines (1,525 loc) • 246 kB
JSON
{
"pluginAlias": "DenonTv",
"pluginType": "platform",
"singular": true,
"fixArrays": true,
"strictValidation": true,
"headerDisplay": "This plugin works with Denon/Marantz AV Receivers. Devices are exposed to HomeKit as separate accessories and each needs to be manually paired.",
"footerDisplay": "For documentation please see [GitHub repository](https://github.com/grzegorz914/homebridge-denon-tv).",
"schema": {
"type": "object",
"properties": {
"devices": {
"type": "array",
"items": {
"type": "object",
"title": "Device",
"properties": {
"name": {
"title": "Name",
"type": "string",
"placeholder": "AV Receiver",
"required": true
},
"host": {
"title": "IP/Hostname",
"type": "string",
"placeholder": "192.168.1.5",
"format": "hostname",
"required": true
},
"port": {
"title": "Port",
"type": "integer",
"placeholder": 8080,
"required": true
},
"generation": {
"title": "Generation",
"type": "integer",
"minimum": 0,
"maximum": 2,
"default": 0,
"description": "Here select generation of Your device.",
"oneOf": [
{
"title": "2010 - 2012",
"enum": [
0
]
},
{
"title": "2013 - 2022",
"enum": [
1
]
},
{
"title": "2023 and newer",
"enum": [
2
]
}
],
"required": true
},
"zoneControl": {
"title": "Zone/Mode Control",
"type": "integer",
"minimum": 0,
"maximum": 4,
"default": 0,
"description": "Here select which Zone You want control.",
"oneOf": [
{
"title": "Main Zone",
"enum": [
0
]
},
{
"title": "Zone 2",
"enum": [
1
]
},
{
"title": "Zone 3",
"enum": [
2
]
},
{
"title": "Surrounds",
"enum": [
3
]
},
{
"title": "Pass Through Inputs",
"enum": [
4
]
}
],
"required": true
},
"disableAccessory": {
"title": "Disable Accessory",
"type": "boolean",
"default": false,
"description": "Here You can disable this accessory.",
"required": true
},
"getInputsFromDevice": {
"title": "Load Inputs From Device",
"type": "boolean",
"default": false,
"description": "If enabled, all Inputs will be loaded direct from device.",
"required": false,
"condition": {
"functionBody": "return model.devices[arrayIndices].zoneControl <= 2;"
}
},
"getFavoritesFromDevice": {
"title": "Load Favorites",
"type": "boolean",
"default": false,
"description": "If enabled, all Favorites will be loaded direct from device, only if exist.",
"condition": {
"functionBody": "return model.devices[arrayIndices].getInputsFromDevice == true && model.devices[arrayIndices].generation >= 1 && model.devices[arrayIndices].zoneControl <= 2;"
},
"required": false
},
"getQuickSmartSelectFromDevice": {
"title": "Load Quick/Smart Select",
"type": "boolean",
"default": false,
"description": "If enabled, all Quick/Smart Select will be loaded direct from device, only if exist.",
"condition": {
"functionBody": "return model.devices[arrayIndices].getInputsFromDevice == true && model.devices[arrayIndices].generation >= 1 && model.devices[arrayIndices].zoneControl <= 2;"
},
"required": false
},
"inputsDisplayOrder": {
"title": "Display Order",
"type": "integer",
"minimum": 0,
"maximum": 4,
"default": 0,
"description": "Here select display order of the inputs list.",
"oneOf": [
{
"title": "None",
"enum": [
0
]
},
{
"title": "Ascending by Name",
"enum": [
1
]
},
{
"title": "Descending by Name",
"enum": [
2
]
},
{
"title": "Ascending by Reference",
"enum": [
3
]
},
{
"title": "Descending by Reference",
"enum": [
4
]
}
],
"required": true
},
"inputs": {
"type": "array",
"items": {
"title": "Input",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"placeholder": "Name",
"description": "Here set Your own name.",
"required": false
},
"reference": {
"title": "Reference",
"type": "string",
"default": "SAT/CBL",
"description": "Here select input.",
"oneOf": [
{
"title": "SOURCE (Only Z2/Z3)",
"enum": [
"SOURCE"
]
},
{
"title": "PHONO",
"enum": [
"PHONO"
]
},
{
"title": "CD",
"enum": [
"CD"
]
},
{
"title": "DVD",
"enum": [
"DVD"
]
},
{
"title": "BLU-RAY",
"enum": [
"BD"
]
},
{
"title": "TV AUDIO",
"enum": [
"TV"
]
},
{
"title": "SAT/CBL",
"enum": [
"SAT/CBL"
]
},
{
"title": "MEDIA PLAYER",
"enum": [
"MPLAY"
]
},
{
"title": "GAME",
"enum": [
"GAME"
]
},
{
"title": "GAME 1",
"enum": [
"GAME1"
]
},
{
"title": "GAME 2",
"enum": [
"GAME2"
]
},
{
"title": "TUNER",
"enum": [
"TUNER"
]
},
{
"title": "AUX",
"enum": [
"AUX"
]
},
{
"title": "AUX 1",
"enum": [
"AUX1"
]
},
{
"title": "AUX 2",
"enum": [
"AUX2"
]
},
{
"title": "AUX 3",
"enum": [
"AUX3"
]
},
{
"title": "AUX 4",
"enum": [
"AUX4"
]
},
{
"title": "AUX 5",
"enum": [
"AUX5"
]
},
{
"title": "AUX 6",
"enum": [
"AUX6"
]
},
{
"title": "AUX 7",
"enum": [
"AUX7"
]
},
{
"title": "V.AUX",
"enum": [
"V.AUX"
]
},
{
"title": "AUX A (Marantz Only)",
"enum": [
"AUXA"
]
},
{
"title": "AUX B (Marantz Only)",
"enum": [
"AUXB"
]
},
{
"title": "AUX C (Marantz Only)",
"enum": [
"AUXC"
]
},
{
"title": "M-XPORT (Marantz Only)",
"enum": [
"M-XPORT"
]
},
{
"title": "DVR",
"enum": [
"DVR"
]
},
{
"title": "DOCK",
"enum": [
"DOCK"
]
},
{
"title": "NET/USB",
"enum": [
"NET/USB"
]
},
{
"title": "USB/IPOD",
"enum": [
"USB/IPOD"
]
},
{
"title": "CDR",
"enum": [
"CDR"
]
},
{
"title": "VCR",
"enum": [
"VCR"
]
},
{
"title": "HDP",
"enum": [
"HDP"
]
},
{
"title": "NETWORK/AIRPLAY/HEOS",
"enum": [
"NET"
]
},
{
"title": "BLUETOOTH",
"enum": [
"BT"
]
},
{
"title": "8K",
"enum": [
"8K"
]
},
{
"title": "iRADIO",
"enum": [
"IRADIO"
]
},
{
"title": "MEDIA SERVER",
"enum": [
"SERVER"
]
},
{
"title": "SPOTIFY",
"enum": [
"SPOTIFY"
]
},
{
"title": "FLICKR",
"enum": [
"FLICKR"
]
},
{
"title": "HD RADIO (NA Only)",
"enum": [
"HDRADIO"
]
},
{
"title": "SIRIUS (NA Only)",
"enum": [
"SIRIUS"
]
},
{
"title": "SIRIUSXM (NA Only)",
"enum": [
"SIRIUSXM"
]
},
{
"title": "RHAPSODY (NA Only)",
"enum": [
"RHAPSODY"
]
},
{
"title": "PANDORA (NA Only)",
"enum": [
"PANDORA"
]
},
{
"title": "NAPSTER (EU and NA Only)",
"enum": [
"NAPSTER"
]
},
{
"title": "LAST.FM (EU Only)",
"enum": [
"LASTFM"
]
},
{
"title": "USB START PLAYBACK",
"enum": [
"USB"
]
},
{
"title": "IPOD START PLAYBACK",
"enum": [
"IPD"
]
},
{
"title": "iRADIO START PLAYBACK",
"enum": [
"IRP"
]
},
{
"title": "FAVORITES START PLAYBACK",
"enum": [
"FVP"
]
},
{
"title": "ONE TOUCH START PLAYBACK",
"enum": [
"OTP"
]
},
{
"title": "FAVORITES",
"enum": [
"FAVORITES"
]
},
{
"title": "FAVORITE 1",
"enum": [
"FAVORITE1"
]
},
{
"title": "FAVORITE 2",
"enum": [
"FAVORITE2"
]
},
{
"title": "FAVORITE 3",
"enum": [
"FAVORITE3"
]
},
{
"title": "FAVORITE 4",
"enum": [
"FAVORITE4"
]
},
{
"title": "FAVORITE MEMORY 1",
"enum": [
"FAVORITE1 MEMORY"
]
},
{
"title": "FAVORITE MEMORY 2",
"enum": [
"FAVORITE2 MEMORY"
]
},
{
"title": "FAVORITE MEMORY 3",
"enum": [
"FAVORITE3 MEMORY"
]
},
{
"title": "FAVORITE MEMORY 4",
"enum": [
"FAVORITE4 MEMORY"
]
},
{
"title": "FAVORITE 1 (Marantz Only)",
"enum": [
"FV 01"
]
},
{
"title": "FAVORITE 2 (Marantz Only)",
"enum": [
"FV 02"
]
},
{
"title": "FAVORITE 3 (Marantz Only)",
"enum": [
"FV 03"
]
},
{
"title": "FAVORITE 4 (Marantz Only)",
"enum": [
"FV 04"
]
},
{
"title": "FAVORITE 5 (Marantz Only)",
"enum": [
"FV 05"
]
},
{
"title": "FAVORITE 6 (Marantz Only)",
"enum": [
"FV 06"
]
},
{
"title": "FAVORITE 7 (Marantz Only)",
"enum": [
"FV 07"
]
},
{
"title": "FAVORITE 8 (Marantz Only)",
"enum": [
"FV 08"
]
},
{
"title": "FAVORITE 9 (Marantz Only)",
"enum": [
"FV 09"
]
},
{
"title": "FAVORITE 10 (Marantz Only)",
"enum": [
"FV 10"
]
},
{
"title": "FAVORITE 11 (Marantz Only)",
"enum": [
"FV 11"
]
},
{
"title": "FAVORITE 12 (Marantz Only)",
"enum": [
"FV 12"
]
},
{
"title": "FAVORITE 13 (Marantz Only)",
"enum": [
"FV 13"
]
},
{
"title": "FAVORITE 13 (Marantz Only)",
"enum": [
"FV 14"
]
},
{
"title": "FAVORITE 15 (Marantz Only)",
"enum": [
"FV 15"
]
},
{
"title": "FAVORITE 16 (Marantz Only)",
"enum": [
"FV 16"
]
},
{
"title": "FAVORITE 17 (Marantz Only)",
"enum": [
"FV 17"
]
},
{
"title": "FAVORITE 18 (Marantz Only)",
"enum": [
"FV 18"
]
},
{
"title": "FAVORITE 19 (Marantz Only)",
"enum": [
"FV 19"
]
},
{
"title": "FAVORITE 20 (Marantz Only)",
"enum": [
"FV 20"
]
},
{
"title": "FAVORITE 21 (Marantz Only)",
"enum": [
"FV 21"
]
},
{
"title": "FAVORITE 22 (Marantz Only)",
"enum": [
"FV 22"
]
},
{
"title": "FAVORITE 23 (Marantz Only)",
"enum": [
"FV 23"
]
},
{
"title": "FAVORITE 24 (Marantz Only)",
"enum": [
"FV 24"
]
},
{
"title": "FAVORITE 25 (Marantz Only)",
"enum": [
"FV 25"
]
},
{
"title": "QUICK SELECT 1",
"enum": [
"QUICK1"
]
},
{
"title": "QUICK SELECT 2",
"enum": [
"QUICK2"
]
},
{
"title": "QUICK SELECT 3",
"enum": [
"QUICK3"
]
},
{
"title": "QUICK SELECT 4",
"enum": [
"QUICK4"
]
},
{
"title": "QUICK SELECT 5",
"enum": [
"QUICK5"
]
},
{
"title": "QUICK SELECT MEMORY 1",
"enum": [
"QUICK1 MEMORY"
]
},
{
"title": "QUICK SELECT MEMORY 2",
"enum": [
"QUICK2 MEMORY"
]
},
{
"title": "QUICK SELECT MEMORY 3",
"enum": [
"QUICK3 MEMORY"
]
},
{
"title": "QUICK SELECT MEMORY 4",
"enum": [
"QUICK4 MEMORY"
]
},
{
"title": "QUICK SELECT MEMORY 5",
"enum": [
"QUICK5 MEMORY"
]
},
{
"title": "SMART SELECT 1",
"enum": [
"SMART1"
]
},
{
"title": "SMART SELECT 2",
"enum": [
"SMART2"
]
},
{
"title": "SMART SELECT 3",
"enum": [
"SMART3"
]
},
{
"title": "SMART SELECT 4",
"enum": [
"SMART4"
]
},
{
"title": "SMART SELECT 5",
"enum": [
"SMART5"
]
},
{
"title": "SMART SELECT MEMORY 1",
"enum": [
"SMART1 MEMORY"
]
},
{
"title": "SMART SELECT MEMORY 2",
"enum": [
"SMART2 MEMORY"
]
},
{
"title": "SMART SELECT MEMORY 3",
"enum": [
"SMART3 MEMORY"
]
},
{
"title": "SMART SELECTMEMORY 4",
"enum": [
"SMART4 MEMORY"
]
},
{
"title": "SMART SELECTMEMORY 5",
"enum": [
"SMART5 MEMORY"
]
}
],
"required": false
}
}
}
},
"surrounds": {
"type": "array",
"items": {
"title": "Surrounds",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"placeholder": "Surround name",
"description": "Here set Your own name.",
"required": false
},
"reference": {
"title": "Surround",
"type": "string",
"default": "STEREO",
"description": "Here select surround mode.",
"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": "AUTO",
"enum": [
"AUTO"
]
},
{
"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"
]
}
],
"required": false
}
}
}
},
"passThroughInputs": {
"type": "array",
"items": {
"title": "Input",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"placeholder": "Name",
"description": "Here set Your own name.",
"required": false
},
"reference": {
"title": "Reference",
"type": "string",
"default": "SAT/CBL",
"description": "Here select input.",
"oneOf": [
{
"title": "CD",
"enum": [
"CD"
]
},
{
"title": "DVD",
"enum": [
"DVD"
]
},
{
"title": "BLU-RAY",
"enum": [
"BD"
]
},
{
"title": "TV AUDIO",
"enum": [
"TV"
]
},
{
"title": "SAT/CBL",
"enum": [
"SAT/CBL"
]
},
{
"title": "MEDIA PLAYER",
"enum": [
"MPLAY"
]
},
{
"title": "GAME",
"enum": [
"GAME"
]
},
{
"title": "GAME 1",
"enum": [
"GAME1"
]
},
{
"title": "GAME 2",
"enum": [
"GAME2"
]
},
{
"title": "AUX",
"enum": [
"AUX"
]
},
{
"title": "AUX 1",
"enum": [
"AUX1"
]
},
{
"title": "8K",
"enum": [
"8K"
]
}
],
"required": false
}
}
}
},
"buttons": {
"type": "array",
"items": {
"title": "Button",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"placeholder": "Button name",
"description": "Here set Your own name.",
"required": false
},
"reference": {
"title": "Function",
"type": "string",
"default": "0PWON",
"oneOf": [
{
"title": "MASTER POWER ON",
"enum": [
"0PWON"
]
},
{
"title": "MASTER POWER STANDBY",
"enum": [
"0PWSTANDBY"
]
},
{
"title": "MASTER VOLUME UP",
"enum": [
"0MVUP"
]
},
{
"title": "MASTER VOLUME DOWN",
"enum": [
"0MVDOWN"
]
},
{
"title": "MASTER MUTE ON",
"enum": [
"0MUON"
]
},
{
"title": "MASTER MUTE OFF",
"enum": [
"0MUOFF"
]
},
{
"title": "ALL ZONE STEREO ON",
"enum": [
"0MNZST ON"
]
},
{
"title": "ALL ZONE STEREO OFF",
"enum": [
"0MNZST OFF"
]
},
{
"title": "ZM POWER ON",
"enum": [
"0ZMON"
]
},
{
"title": "ZM POWER OFF",
"enum": [
"0ZMOFF"
]
},
{
"title": "ZM ECO MODE ON",
"enum": [
"0ECOON"
]
},
{
"title": "ZM ECO MODE AUTO",
"enum": [
"0ECOAUTO"
]
},
{
"title": "ZM ECO MODE OFF",
"enum": [
"0ECOOFF"
]
},
{
"title": "ZM AUTO STANDBY 15MIN",
"enum": [
"0STBY15M"
]
},
{
"title": "ZM AUTO STANDBY 30MIN",
"enum": [
"0STBY30M"
]
},
{
"title": "ZM AUTO STANDBY 60MIN",
"enum": [
"0STBY60M"
]
},
{
"title": "ZM AUTO STANDBY OFF",
"enum": [
"0STBYOFF"
]
},
{
"title": "ZM SLEEP 10MIN",
"enum": [
"0SLP010"
]
},
{
"title": "ZM SLEEP 20MIN",
"enum": [
"0SLP020"
]
},
{
"title": "ZM SLEEP 30MIN",
"enum": [
"0SLP030"
]
},
{
"title": "ZM SLEEP 1H",
"enum": [
"0SLP060"
]
},
{
"title": "ZM SLEEP 2H",
"enum": [
"0SLP120"
]
},
{
"title": "ZM SLEEP OFF",
"enum": [
"0SLPOFF"
]
},
{
"title": "ZM INPUT PHONO",
"enum": [
"0SIPHONO"
]
},
{
"title": "ZM INPUT CD",
"enum": [
"0SICD"
]
},
{
"title": "ZM INPUT DVD",
"enum": [
"0SIDVD"
]
},
{
"title": "ZM INPUT BLU-RAY",
"enum": [
"0SIBD"
]
},
{
"title": "ZM INPUT TV AUDIO",
"enum": [
"0SITV"
]
},
{
"title": "ZM INPUT SAT/CBL",
"enum": [
"0SISAT/CBL"
]
},
{
"title": "ZM INPUT MEDIA PLAYER",
"enum": [
"0SIMPLAY"
]
},
{
"title": "ZM INPUT GAME",
"enum": [
"0SIGAME"
]
},
{
"title": "ZM INPUT GAME 1",
"enum": [
"0SIGAME1"
]
},
{
"title": "ZM INPUT GAME 2",
"enum": [
"0SIGAME2"
]
},
{
"title": "ZM INPUT TUNER",
"enum": [
"0SITUNER"
]
},
{
"title": "ZM INPUT AUX",
"enum": [
"0SIAUX"
]
},
{
"title": "ZM INPUT AUX 1",
"enum": [
"0SIAUX1"
]
},
{
"title": "ZM INPUT AUX 2",
"enum": [
"0SIAUX2"
]
},
{
"title": "ZM INPUT AUX 3",
"enum": [
"0SIAUX3"
]
},
{
"title": "ZM INPUT AUX 4",
"enum": [
"0SIAUX4"
]
},
{
"title": "ZM INPUT AUX 5",
"enum": [
"0SIAUX5"
]
},
{
"title": "ZM INPUT AUX 6",
"enum": [
"0SIAUX6"
]
},
{
"title": "ZM INPUT AUX 7",
"enum": [
"0SIAUX7"
]
},
{
"title": "ZM INPUT V.AUX",
"enum": [
"0SIV.AUX"
]
},
{
"title": "ZM INPUT AUX A (Marantz Only)",
"enum": [
"0SIAUXA"
]
},
{
"title": "ZM INPUT AUX B (Marantz Only)",
"enum": [
"0SIAUXB"
]
},
{
"title": "ZM INPUT AUX C (Marantz Only)",
"enum": [
"0SIAUXC"
]
},
{
"title": "ZM INPUT M-XPORT (Marantz Only)",
"enum": [
"0SIM-XPORT"
]
},
{
"title": "ZM INPUT DVR",
"enum": [
"0SIDVR"
]
},
{
"title": "ZM INPUT DOCK",
"enum": [
"0SIDOCK"
]
},
{
"title": "ZM INPUT NET/USB",
"enum": [
"0SINET/USB"
]
},
{
"title": "ZM INPUT USB/IPOD",
"enum": [
"0SIUSB/IPOD"
]
},
{
"title": "ZM INPUT CDR",
"enum": [
"0SICDR"
]
},
{
"title": "ZM INPUT VCR",
"enum": [
"0SIVCR"
]
},
{
"title": "ZM INPUT HDP",
"enum": [
"0SIHDP"
]
},
{
"title": "ZM INPUT NETWORK/AIRPLAY/HEOS",
"enum": [
"0SINET"
]
},
{
"title": "ZM INPUT BLUETOOTH",
"enum": [
"0SIBT"
]
},
{
"title": "ZM INPUT 8K",
"enum": [
"0SI8K"
]
},
{
"title": "ZM INPUT iRADIO",
"enum": [
"0SIIRADIO"
]
},
{
"title": "ZM INPUT MEDIA SERVER",
"enum": [
"0SISERVER"
]
},
{
"title": "ZM INPUT SPOTIFY",
"enum": [
"0SISPOTIFY"
]
},
{
"title": "ZM INPUT HD RADIO (NA Only)",
"enum": [
"0SIHDRADIO"
]
},
{
"title": "ZM INPUT SIRIUS (NA Only)",
"enum": [
"0SISIRIUS"
]
},
{
"title": "ZM INPUT SIRIUSXM (NA Only)",
"enum": [
"0SISIRIUSXM"
]
},
{
"title": "ZM INPUT RHAPSODY (NA Only)",
"enum": [
"0SIRHAPSODY"
]
},
{
"title": "ZM INPUT PANDORA (NA Only)",
"enum": [
"0SIPANDORA"
]
},
{
"title": "ZM INPUT NAPSTER (EU and NA Only)",
"enum": [
"0SINAPSTER"
]
},
{
"title": "ZM INPUT LAST.FM (EU Only)",
"enum": [
"0SILASTFM"
]
},
{
"title": "ZM USB START PLAYBACK",
"enum": [
"0SIUSB"
]
},