UNPKG

homebridge-denon-tv

Version:

Homebridge plugin to control Denon/Marantz AV Receivers.

1,419 lines (1,418 loc) • 255 kB
{ "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](https://github.com/grzegorz914/homebridge-denon-tv/wiki#adding-to-homekit).", "footerDisplay": "For documentation please see [GitHub repository](https://github.com/grzegorz914/homebridge-denon-tv).", "schema": { "type": "object", "properties": { "name": { "title": "Platform", "type": "string", "default": "Denon TV" }, "devices": { "type": "array", "title": "Devices", "items": { "type": "object", "title": "Device", "properties": { "name": { "title": "Name", "type": "string", "placeholder": "AV Receiver" }, "host": { "title": "IP/Hostname", "type": "string", "placeholder": "192.168.1.5 or denon.local", "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)(\\.([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?))*)$" }, "port": { "title": "Port", "type": "integer", "placeholder": 8080 }, "generation": { "title": "Generation", "type": "integer", "minimum": 0, "maximum": 2, "default": 0, "description": "Here select generation of Your device.", "anyOf": [ { "title": "2010 - 2012", "enum": [ 0 ] }, { "title": "2013 - 2022", "enum": [ 1 ] }, { "title": "2023 and newer", "enum": [ 2 ] } ] }, "zoneControl": { "title": "Zone/Mode Control", "type": "integer", "minimum": -1, "maximum": 4, "default": -1, "description": "Here select which Zone You want control.", "anyOf": [ { "title": "Disabled", "enum": [ -1 ] }, { "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 ] } ] }, "inputs": { "title": "Inputs", "type": "object", "properties": { "getFromDevice": { "title": "Load Inputs", "type": "boolean", "description": "If enabled, all Inputs will be loaded direct from device.", "condition": { "functionBody": "return model.devices[arrayIndices].zoneControl !== 3;" } }, "getFavoritesFromDevice": { "title": "Load Favorites", "type": "boolean", "description": "If enabled, all Favorites will be loaded direct from device, only if exist.", "condition": { "functionBody": "return model.devices[arrayIndices].generation > 0 && model.devices[arrayIndices].zoneControl < 3;" } }, "getQuickSmartSelectFromDevice": { "title": "Load Quick/Smart Select", "type": "boolean", "description": "If enabled, all Quick/Smart Select will be loaded direct from device, only if exist.", "condition": { "functionBody": "return model.devices[arrayIndices].generation > 0 && model.devices[arrayIndices].zoneControl < 3;" } }, "displayOrder": { "title": "Display Order", "type": "integer", "minimum": 0, "maximum": 4, "description": "Here select display order of the inputs list.", "anyOf": [ { "title": "Disabled", "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 ] } ] }, "data": { "type": "array", "items": { "title": "Input", "type": "object", "properties": { "name": { "title": "Name", "type": "string", "placeholder": "Name", "description": "Here set Your own name." }, "reference": { "title": "Reference", "type": "string", "description": "Here select input.", "anyOf": [ { "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": "DIGITAL IN", "enum": [ "DIGITALIN1" ] }, { "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 SELECT MEMORY 4", "enum": [ "SMART4 MEMORY" ] }, { "title": "SMART SELECT MEMORY 5", "enum": [ "SMART5 MEMORY" ] } ] } } }, "condition": { "functionBody": "return model.devices[arrayIndices].inputs.getFromDevice === false && model.devices[arrayIndices].zoneControl !== 3;" } } } }, "surrounds": { "title": "Surrounds", "type": "object", "properties": { "displayOrder": { "title": "Display Order", "type": "integer", "minimum": 0, "maximum": 4, "description": "Here select display order of the surrounds list.", "anyOf": [ { "title": "Disabled", "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 ] } ] }, "data": { "type": "array", "items": { "title": "Surround", "type": "object", "properties": { "name": { "title": "Name", "type": "string", "placeholder": "Surround name", "description": "Here set Your own name." }, "reference": { "title": "Surround", "type": "string", "description": "Here select surround mode.", "anyOf": [ { "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" ] } ] } } } } } }, "buttons": { "type": "array", "items": { "title": "Button", "type": "object", "properties": { "displayType": { "title": "Display Type", "type": "integer", "minimum": 0, "maximum": 2, "description": "Here select characteristic type to be exposed in HomeKit app.", "anyOf": [ { "title": "Disabled", "enum": [ 0 ] }, { "title": "Outlet", "enum": [ 1 ] }, { "title": "Switch", "enum": [ 2 ] } ] }, "name": { "title": "Name", "type": "string", "placeholder": "Button name", "description": "Here set Your own name." }, "reference": { "title": "Function", "type": "string", "description": "Here select function.", "anyOf": [ { "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",