Git Product home page Git Product logo

homebridge-denon-tv's People

Contributors

alapitz avatar chetstone avatar dependabot[bot] avatar emilp avatar ericandrechek avatar grzegorz914 avatar intrepidsilence avatar jlian avatar versionbayjc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-denon-tv's Issues

amp-assign speaker configuration?

Very useful plugin - thank you. Have begun using it (with a Denon X3600H).

I'm interested in trying to contribute some work to enable the plugin to adjust the speaker layout on the fly. This can be done through the amp-assign settings in the receiver's web interface (see the image attached), where it is helpful to be able to quickly swap between some of these settings (in my case "9.1ch" vs "7.1ch + ZONE2"). While I'm an experienced programmer, I'm new to Homebridge and javascript. Any advice on how to get started with experimenting with additions to this plugin?

Speakers

Receivers not found by Home app

Hi @grzegorz914,

First and foremost, thanks for your work on both this and your Xbox Homebridge plugins. I set both of them up earlier this week and they were working great.

Previously, to get the Home app to recognize changes to the receiver or Xbox accessories (Different inputs, apps, etc.) I needed to remove them from home and re-add them through the “Add Accessories” flow in the Home app. Today, I attempted to do the same, but neither my receiver nor Xbox appeared to be added in Home. Both still show up correctly in Homebridge and respond to on/off commands.

The only differences I can identify between today and previous attempts are that I upgraded homebridge (1.0.4 -> 1.1) and this plugin today, perhaps there’s been a recent change that’s causing issue with the discovery process?

Here’s some outputs from the startup process:

[5/17/2020, 17:18:23] [DenonTv] -------- Home Theater -------- 
[5/17/2020, 17:18:23] [DenonTv] Manufacturer: Denon 
[5/17/2020, 17:18:23] [DenonTv] Model: AVR-X2600H 
[5/17/2020, 17:18:23] [DenonTv] Zones: 2 
[5/17/2020, 17:18:23] [DenonTv] Api version: 0301 
[5/17/2020, 17:18:23] [DenonTv] Serialnumber: 0005CD80D15C 
[5/17/2020, 17:18:23] [DenonTv] Firmware: 00 
[5/17/2020, 17:18:23] [DenonTv] ----------------------------------

I’ve also used the homebridge ui to build the config.json, here’s the slimmed down version I’ve been using while trying to reconnect the device into Home:

{
            "devices": [
                {
                    "name": "Home Theater",
                    "host": "10.0.0.75",
                    "port": 8080,
                    "zoneControl": 0,
                    "allZonesControl": false,
                    "volumeControl": false,
                    "switchInfoMenu": true,
                    "inputs": [
                        {
                            "name": "DVD",
                            "reference": "DVD",
                            "type": "HDMI",
                            "mode": "SI"
                        }
                    ]
                }
            ],
            "platform": "DenonTv"
        },

Thanks again for your work, any help in figuring out why Home can’t see the receiver is greatly appreciated.

No configuration found for homebridge-denon-tv

Hi! I’m sure it must be something to do with my Config but I can’t work out why it’s not finding it on initialisation, please help?

[4/18/2020, 14:32:11] [Denon AVR] No configuration found for homebridge-denon-tv
[4/18/2020, 14:32:11] [Denon AVR] Initializing DenonTv platform...

"platforms" : [
{
"devices" : {
"host" : "192.168.0.98",
"name" : "AV Receiver",
"switchInfoMenu" : "true",
"port" : "8080"
},
"inputs" : [
{
"name" : "Xbox One",
"reference" : "GAME"
}
],
"name" : "Denon AVR",
"platform" : "DenonTv"
},

default port is important to change

thanks for you plugin, I would suggest to edit your help page and state that its important to check what port the different AV models are using. the default port 8080 is not working

for my X3300 I had to switch to port 80

Default Homekit Config Code?

I somehow see a "Volume-1480" Device that I can add to HomeKit (Volume is the name I configured, the -1480 is added automatically) but HomeKit app is asking a 8 digit code

i don't get it where I can define a code. please advice, thank you very much

Broken power off since 3.0.2

Since version 3.0.2 the power off state is not working for me. Also when I try to power off my AVR (X4400h) through Home app, the Denon homebridge service will be unresponsive for a couple of seconds in the Home app. With 3.0.1 everything works fine.
Here is my config:

            "platform": "DenonTv",
            "devices": [
                {
                    "name": "AVR",
                    "host": "xxx.xxx.xxx.xxx",
                    "port": 8080,
                    "zoneControl": 0,
                    "volumeControl": 1,
                    "switchInfoMenu": true,
                    "inputs": [
                        {
                            "name": "AppleTV",
                            "reference": "SAT/CBL",
                            "type": "HDMI",
                            "mode": "SI"
                        }
                    ]
                }
            ]

Volume switch on/off to mute/unmute

Hey,

Great plugin.

Could you change the Volume switch so that the on/off state of the switch mutes or unmutes the volume in addition to the brightness controlling the volume level.

Also, once implemented could you automatically set the state of the volume switch to off when the receiver is off.

Best Regards

Guy

Input change failed

Hi Grzegorz,
I upgraded today to the Version 2.4.0.
I very like the new possibility to change volume as well. great work!
while testing everything, I found out, that input change is not working anymore.
The log file shows my change requests, but the denon does not pick it up. Switch flips back to old Input.
vice versa looks ok, any change at the Denon (x2500h) is showing up in the homebridge and the homekit device.
I did not try removing and adding the Device at Homekit so far.

And switchInfoMenu= true crash the homebridge while pressing the "I" button in the iOS RC menu. I turned it off. I can open another issue if you want.

config is:

    {
        "platform": "DenonTv",
        "devices": [
            {
                "name": "Verstärker",
                "host": "192.168.7.133",
                "port": 8080,
                "zoneControl": 0,
                "allZonesControl": false,
                "volumeControl": true,
                "switchInfoMenu": false,
                "inputs": [
                    {
                        "name": "Plex",
                        "reference": "BD"
                    },
                    {
                        "name": "TV Audio",
                        "reference": "TV"
                    },
                    {
                        "name": "PS3",
                        "reference": "GAME"
                    },
                    {
                        "name": "AppleTV",
                        "reference": "MPLAY"
                    },
                    {
                        "name": "Chromecast",
                        "reference": "DVD"
                    },
                    {
                        "name": "Spotify",
                        "reference": "SPOTIFY"
                    },
                    {
                        "name": "Internet",
                        "reference": "NET"
                    },
                    {
                        "name": "Aux",
                        "reference": "AUX1"
                    },
                    {
                        "name": "Bluetooth",
                        "reference": "BT"
                    }
                ]
            }
        ]
    }

Error Connecting

Device: 192.168.. Denon, getDeviceInfo eror: Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:205:27) {
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read',
config: [Object],
request: [Writable],
response: undefined,
isAxiosError: true,
toJSON: [Function]
}, state: Offline

Spotify Input playback

hey guys. I notice that the doc refers to RC app for playback. I am wondering if It I s possible to send a play command to the Marantz once the Spotify input has been selected

Thanks

Only one Input available in Home App

I've copied the config from your example:

{ "devices": [ { "name": "Testooo", "host": "192.168.178.43", "port": 80, "refreshInterval": 5, "zoneControl": 0, "volumeControl": 1, "switchInfoMenu": false, "inputs": [ { "name": "Xbox One", "reference": "GAME", "type": "HDMI", "mode": "SI" }, { "name": "Television", "reference": "TV", "type": "HDMI", "mode": "SI" }, { "name": "Sat Receiver", "reference": "SAT/CBL", "type": "HDMI", "mode": "SI" } ] } ], "platform": "DenonTv" }

I see the device as a receiver in my home app, however in the selection window I can only see XBOX One as single Input to choose from. In the Group there are additional tiles "Sat Receiver" and "Television" however I cannot interact with them. Did I do somthing wrong?

Wiki Improvement

Hi Grzegorz,
thanks for the latest released Plugins (homebridge-denon-tv, homebridge-lgwebos-tv) - thats really great - I really appreciate your work!
One thing I always miss in plugin descriptions, are the description of full possibilities, like Input definitions.
Can you extend the Wiki with those Inputs?
Also helpful is a description what is possible, e.g. I can control volume via voice command because it is now a TV Service with its features.

I took definitions from https://www.openhab.org/addons/bindings/denon1/ and tried some.

   {
        "platform": "DenonTv",
        "devices": [
            {
                "name": "AV Receiver",
                "host": "1.2.3.4",
                "port": 8080,
                "switchInfoMenu": true,
                "inputs": [
                    {
                        "name": "Plex",
                        "reference": "BD"
                    },
                    {
                        "name": "TV Audio",
                        "reference": "TV"
                    },
                    {
                        "name": "PS3",
                        "reference": "GAME"
                    },
                    {
                        "name": "AppleTV",
                        "reference": "MPLAY"
                    },
                    {
                        "name": "Chromecast",
                        "reference": "DVD"
                    },
                    {
                        "name": "Tuner Sat",
                        "reference": "SAT/CBL"
                    },
                    {
                        "name": "Spotify",
                        "reference": "SPOTIFY"
                    },
                    {
                        "name": "Internet",
                        "reference": "NET"
                    }
                ]
            }
        ]
    }

Best regards
Stefan

Tile in homekit.

Do not display the tile in homekit, in homebridge it is shown instead
In addition there is also this error
[AV receiver] Can not acces device: 192.168.1.5. Might be due to a wrong settings in config, error ReferenceError: volume is not defined:

All Zone Stereo: enhancement

Congratulations for your work! Would it be possible to add a switch for the All Zone Stereo?
The commands in telnet are MNZST ON and MNZST OFF.
I've tried these commands on a telnet terminal in my X3500 and worked fine.

Thank you!!

Unable to power off, auto power on afterwards

Hi Grzegorz,
with v2.5.10 and 2.4.1 I can power the Denon on, but when power off, it switches off and then it turns back on. The log output shows set OFF, set ON, set OFF, set ON
A power on shows ON, OFF, ON.

Any idea?

log:

manual power off via Remote:
May 20 20:09:03 homebridge homebridge[6518]: [5/20/2020, 8:09:03 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, get current Power state successful: ON
May 20 20:09:03 homebridge homebridge[6518]: [5/20/2020, 8:09:03 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, get current Input successful: TV
May 20 20:09:03 homebridge homebridge[6518]: [5/20/2020, 8:09:03 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, get current Volume level successful: -45 dB
May 20 20:09:03 homebridge homebridge[6518]: [5/20/2020, 8:09:03 PM] [Verstärker Lautstärke] Receiver MainZone Volume power state is 1
May 20 20:09:27 homebridge homebridge[6518]: [5/20/2020, 8:09:27 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, set new Power state successful: OFF

power on via Homekit:
May 20 20:10:50 homebridge homebridge[6518]: [5/20/2020, 8:10:50 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, set new Power state successful: ON
May 20 20:10:51 homebridge homebridge[6518]: [5/20/2020, 8:10:51 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, set new Power state successful: OFF
May 20 20:10:53 homebridge homebridge[6518]: [5/20/2020, 8:10:53 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, set new Power state successful: ON

open device via Homekit:
May 20 20:14:12 homebridge homebridge[6518]: [5/20/2020, 8:14:12 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, get current Volume level successful: -45 dB
May 20 20:14:12 homebridge homebridge[6518]: [5/20/2020, 8:14:12 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, get current Input successful: TV
May 20 20:14:12 homebridge homebridge[6518]: [5/20/2020, 8:14:12 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, get current Power state successful: ON
May 20 20:14:12 homebridge homebridge[6518]: [5/20/2020, 8:14:12 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, get current Volume level successful: -45 dB
May 20 20:14:12 homebridge homebridge[6518]: [5/20/2020, 8:14:12 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, get current Input successful: TV
May 20 20:14:12 homebridge homebridge[6518]: [5/20/2020, 8:14:12 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, get current Power state successful: ON

power off via Homekit:
May 20 20:14:26 homebridge homebridge[6518]: [5/20/2020, 8:14:26 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, set new Power state successful: OFF
May 20 20:14:27 homebridge homebridge[6518]: [5/20/2020, 8:14:27 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, set new Power state successful: ON
May 20 20:14:29 homebridge homebridge[6518]: [5/20/2020, 8:14:29 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, set new Power state successful: OFF
May 20 20:14:31 homebridge homebridge[6518]: [5/20/2020, 8:14:31 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, set new Power state successful: ON

config:
{
"devices": [
{
"name": "Verstärker",
"host": "192.168.7.133",
"port": 8080,
"zoneControl": 0,
"volumeControl": true,
"switchInfoMenu": false,
"inputs": [
{
"name": "Plex",
"reference": "BD",
"type": "HDMI",
"mode": "SI"
},
{
"name": "TV Audio",
"reference": "TV",
"type": "HDMI",
"mode": "SI"
},
{
"name": "PS3",
"reference": "GAME",
"type": "HDMI",
"mode": "SI"
},
{
"name": "AppleTV",
"reference": "MPLAY",
"type": "HDMI",
"mode": "SI"
},
{
"name": "Chromecast",
"reference": "DVD",
"type": "HDMI",
"mode": "SI"
},
{
"name": "Spotify",
"reference": "SPOTIFY",
"type": "HDMI",
"mode": "SI"
},
{
"name": "Internet",
"reference": "NET",
"type": "HDMI",
"mode": "SI"
},
{
"name": "Aux",
"reference": "AUX1",
"type": "HDMI",
"mode": "SI"
},
{
"name": "Bluetooth",
"reference": "BT",
"type": "HDMI",
"mode": "SI"
}
]
}
],
"platform": "DenonTv"
}

Second Slider

Add a second slider to keep input and sound modes separate.

AVR not showing up as TV

Good afternoon,

Sadly enough my X3400-H is not showing as a TV in Homebridge nor in Hoobs. Is this a known issue? Have the same problem with the homebridge-denon-heos plugin.

Hopefully there is an easy fix :).

Kind regards, Danton

Unable to Select Input

I can power on and off. If I select a input, I get this:

[Homebridge] [2/25/2020, 2:34:05 PM] [DenonTv] Device: 192.168.10.44, set new Input successfull: function() {
if (called) {
throw new Error("This callback function has already been called by someone else; it can only be called one time.");
}
else {
called = true;
return func.apply(this, arguments);
}
}
[Homebridge] [2/25/2020, 2:34:05 PM] TypeError: callback is not a function
at Request._callback (/home/hoobs/.hoobs/node_modules/homebridge-denon-tv/index.js:439:6)
at Request.self.callback (/home/hoobs/.hoobs/node_modules/request/request.js:185:22)
at Request.emit (events.js:223:5)
at Request. (/home/hoobs/.hoobs/node_modules/request/request.js:1161:10)
at Request.emit (events.js:223:5)
at IncomingMessage. (/home/hoobs/.hoobs/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:312:28)
at IncomingMessage.emit (events.js:228:7)
at endReadableNT (_stream_readable.js:1185:12)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
[Homebridge] [2/25/2020, 2:34:05 PM] Got SIGTERM, shutting down service...

This is my code:

    {
        "platform": "DenonTv",
        "plugin_map": {
            "plugin_name": "homebridge-denon-tv"
        },
        "devices": [
            {
                "name": "DenDenon",
                "host": "192.168.XX.XX",
                "port": 8080,
                "switchInfoMenu": true,
                "inputs": [
                    {
                        "name": "Apple TV",
                        "reference": "GAME"
                    },
                    {
                        "name": "Blu-ray",
                        "reference": "BD"
                    },
                    {
                        "name": "DirecTV",
                        "reference": "SAT/CBL"
                    },
                    {
                        "name": "Roku",
                        "reference": "MPLAY"
                    }
                ]
            }
        ]
    }

Cannot find Mute button

@grzegorz914 Congratulations and thanks for creating such a well-designed plugin! I am surprised at how well it works on my aging AVR-3312I.

I cannot find a mute button on the Home app tile. Is this an issue with the Home app or is it there somewhere and I'm just not seeing it?

Along the same lines, I am able to see a "legacy" or "additional" volume control by setting volumeControl to 1, but if I set it to 0 should there be a "modern" or "non-legacy" volume control somewhere I'm not seeing?

Thanks

Add white spaces in to inputreference

you can remove the white space control of the input reference string (row 259 index.js) my Denon AVR2312 has "Internet Radio" and "Media Server" inputs

ReferenceError: powerState is not defined - crashing homebridge

Maybe I need to update my config to something? Haven't touched the config for a couple of weeks. This is with current versions of everything.

[5/25/2020, 11:03:39 AM] [DenonTv] Device: 192.168.1.93 Denon Main Zone, get current Power state successful: OFF
[5/25/2020, 11:03:39 AM] [DenonTv] Device: 192.168.1.93 Denon Main Zone, get current Input successful: Apple TV MPLAY
[5/25/2020, 11:03:39 AM] ReferenceError: powerState is not defined
at denonTvDevice.getMute (/usr/local/lib/node_modules/homebridge-denon-tv/index.js:463:15)
at Mute.emit (events.js:310:20)
at Mute.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
at Mute.Characteristic._this.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:462:12)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1215:22
at Array.forEach ()
at Accessory._this._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1143:10)
at HAPServer.emit (events.js:310:20)
at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:756:12)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:280:24)
at IncomingMessage.emit (events.js:310:20)
at endReadableNT (_stream_readable.js:1187:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[5/25/2020, 11:03:39 AM] [DenonTv] Device: 192.168.1.93 Denon Main Zone, get current Volume level successful: -30 dB
[5/25/2020, 11:03:39 AM] ReferenceError: powerState is not defined
at denonTvDevice.getMute (/usr/local/lib/node_modules/homebridge-denon-tv/index.js:463:15)
at Mute.emit (events.js:310:20)
at Mute.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
at Mute.Characteristic._this.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:462:12)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1215:22
at Array.forEach ()
at Accessory._this._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1143:10)
at HAPServer.emit (events.js:310:20)
at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:756:12)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:280:24)
at IncomingMessage.emit (events.js:310:20)
at endReadableNT (_stream_readable.js:1187:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[5/25/2020, 11:03:39 AM] [DenonTv] Device: 192.168.1.93 Zone 2 Zone 2, get current Power state successful: OFF
[5/25/2020, 11:03:39 AM] [DenonTv] Device: 192.168.1.93 Zone 2 Zone 2, get current Input successful: Music NET
[5/25/2020, 11:03:39 AM] [DenonTv] Device: 192.168.1.93 Zone 2 Zone 2, get current Volume level successful: -40 dB
[5/25/2020, 11:03:39 AM] Got SIGTERM, shutting down Homebridge...

Marantz SR6013 - Volume in Homebridge Config UI X but not Homekit

Hi there. I managerd to get the base working where I can see the Receiver in the Accessories page of Homebridge Config UI X and I also se a volume accessory there that works fine. When I add the accessory to Homekit I only get one buton that turns the receiver on and off and if i long press I can try to change the input but I do not get a way to change the volume. What am I missing?

Here is my platform config:

{
            "platform": "DenonTv",
            "devices": [
                {
                    "name": "AV Receiver",
                    "host": "192.168.15.46",
                    "port": 8080,
                    "switchInfoMenu": true,
                    "inputs": [
                        {
                            "name": "PS4",
                            "reference": "BD"
                        },
                        {
                            "name": "TV Audio",
                            "reference": "TV"
                        },
                        {
                            "name": "AppleTV",
                            "reference": "MPLAY"
                        },
                        {
                            "name": "PS3",
                            "reference": "DVD"
                        },
                        {
                            "name": "Cable",
                            "reference": "SAT/CBL"
                        },
                        {
                            "name": "Phono",
                            "reference": "Phono"
                        },
                        {
                            "name": "HTPC",
                            "reference": "AUX2"
                        }
                    ]
                }
            ]
        }

Thanks in advance!

Changelog Maintenance

Would it be ok to ask that you keep the changelog up with commits? It would be great to know what changed before applying an update. Also, there is some difference in your package and others that use config-ui-x when doing updates. Other packages display the changelog before applying to update, your displays it after. Would you consider changing it to work the other way?

Thanks in advance!

No device showing up in Homekit

I have several other things working with homebridge, but I have been unable to get my Denon AVR-X2100W to work. I think my config is right and I can see the device showing up in the log files, but it does not show up in Homekit.

Am I just being silly?

Config:

 "platform": "DenonTv",
            "devices": [
                {
                    "name": "Denon",
                    "host": "192.168.3.159",
                    "port": 80,
                    "zoneControl": 0,
                    "volumeControl": false,
                    "switchInfoMenu": true,
                    "inputs": [
                        {
                            "name": "Media player",
                            "reference": "MPLAY",
                            "type": "SI"
                        },
                        {
                            "name": "DVD",
                            "reference": "DVD",
                            "type": "SI"
                        }
                    ]
                }
            ]

Logs:
[5/7/2020, 3:35:53 PM] [DenonTv] Device: 192.168.3.159 Denon Main Zone, state: Online
[5/7/2020, 3:35:54 PM] [DenonTv] -------- Denon --------
[5/7/2020, 3:35:54 PM] [DenonTv] Manufacturer: Denon
[5/7/2020, 3:35:54 PM] [DenonTv] Model: *AVR-X2100W
[5/7/2020, 3:35:54 PM] [DenonTv] Zones: 2
[5/7/2020, 3:35:54 PM] [DenonTv] Api version: 0300
[5/7/2020, 3:35:54 PM] [DenonTv] Serialnumber: xxxxxxxxxxxx
[5/7/2020, 3:35:54 PM] [DenonTv] Firmware: 00
[5/7/2020, 3:35:54 PM] [DenonTv] ----------------------------------

Changing the name in Home App results in lost connection

Hi,

When I change the namen of the Denon device in the iOS Home App and restart HomeBridge, the device is marked with "No Response". To solve this, I have to delete the device a add it again. To add it, I have to give it a new name in the config because otherwise the devide does not show up.

Is this a known problem? Other device in my homebride instance (more than 40) do not behave like this.

When I keep the name in the Confg file and in the Home app the same, there is no problem.

Best regards
Christoph

Zone 2: auto-start, or create separate on/off switch?

Is there a way to:
(a) auto-start Main Zone + Zone 2 (together), or
(b) create a on/off switch for Zone 2?

I've tried reading the javascript for clues, but am not a programmer :( Thanks for creating such a wonderful plugin!

Tiles Only showing up in Homebridge

Hello, I have a AVR-X3500H I see all the settings in the homebridge web UI but they don't appear in homekit. I uninstalled and reinstalled and it's the same issue. The log shows it connects properly and the controls work via homebridge but nothing shows up in Homekit

HOOBS not finding config file

Hello

Your plugin doesn't appear to be working with HOOBS v3.1.20.

After installing the plugin, the config window displays the following:

[]

I would usually expect to see something along the lines of:

{ "platform": "DenonTv", "devices": [ }

I tried copying and pasting the sample config file. However when I try and start the homebridge service, I get the following error message and my other plugins don't work:

[Homebridge] [4/6/2020, 5:35:21 PM] [DenonTv] Initializing DenonTv platform...
[Homebridge] [4/6/2020, 5:35:21 PM] [DenonTv] No configuration found for homebridge-denontv-tv

Thanks, Miguel

Missing name

Hello,

After reading all issues I still am looking for an solution to my problem.

I tried different names from Denon to Marantz to reciever etc...

Starting ' Hoobs' / homebridge I see this in mij log file:
Log:
31/10/2020, 12:34:02 [DenonTv] Initializing DenonTv platform...
31/10/2020, 12:34:02 [DenonTv] Device Name Missing
31/10/2020, 12:34:02 External port pool ran out of ports. Fallback to random assign.

My confiq:

[
{
"platform": "DenonTv",
"devices": [
{
"name": "Denon",
"host": "0.0.0.0",
"port": 80,
"refreshInterval": 5,
"zoneControl": 0,
"volumeControl": 0,
"switchInfoMenu": true,
"inputs": [
{
"name": "Television",
"reference": "TV",
"type": "HDMI",
"mode": "SI"
},
{
"name": "Stereo",
"reference": "STEREO",
"type": "OTHER",
"mode": "MS"
},
{
"name": "Multi Channel Stereo",
"reference": "MCH STEREO",
"type": "OTHER",
"mode": "MS"
},
{
"name": "Digital Input AUTO",
"reference": "AUTO",
"type": "OTHER",
"mode": "DC"
}
],
"manufacturer": "Manufacturer",
"modelName": "Model",
"serialNumber": "Serial Number",
"firmwareRevision": "Firmware Revision"
}
]
}
]

homebridge crash after volume change

Hi Grzegorz
with V2.5.10 I see homebridge crashing/restarting after volume change:

log:

May 20 19:54:17 homebridge homebridge[6367]: [5/20/2020, 7:54:17 PM] [DenonTv] Device: 192.168.7.133 Verstärker, devInfoFile saved successful in: /var/lib/homebridge/denonTv/
May 20 19:54:24 homebridge homebridge[6367]: [5/20/2020, 7:54:24 PM] [LgWebOsTv] Device: 192.168.7.171 LG TV, get current Power state successfull, state: OFF
May 20 19:54:24 homebridge homebridge[6367]: [5/20/2020, 7:54:24 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, get current Power state successful: ON
May 20 19:54:24 homebridge homebridge[6367]: [5/20/2020, 7:54:24 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, get current Input successful: TV
May 20 19:54:24 homebridge homebridge[6367]: [5/20/2020, 7:54:24 PM] [DenonTv] Device: 192.168.7.133 Verstärker Main Zone, get current Volume level successful: -45 dB
May 20 19:54:24 homebridge homebridge[6367]: [5/20/2020, 7:54:24 PM] [Verstärker Lautstärke] Receiver MainZone Volume power state is 1
May 20 19:54:33 homebridge homebridge[6367]: [5/20/2020, 7:54:33 PM] ReferenceError: stste is not defined
May 20 19:54:33 homebridge homebridge[6367]: at denonTvDevice.setMute (/usr/local/lib/node_modules/homebridge-denon-tv/index.js:440:21)
May 20 19:54:33 homebridge homebridge[6367]: at Mute.emit (events.js:310:20)
May 20 19:54:33 homebridge homebridge[6367]: at Mute.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
May 20 19:54:33 homebridge homebridge[6367]: at Mute.Characteristic._this.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:625:12)
May 20 19:54:33 homebridge homebridge[6367]: at TelevisionSpeaker.Service._this.setCharacteristic (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Service.ts:318:35)
May 20 19:54:33 homebridge homebridge[6367]: at On. (/usr/local/lib/node_modules/homebridge-denon-tv/index.js:330:25)
May 20 19:54:33 homebridge homebridge[6367]: at On.emit (events.js:310:20)
May 20 19:54:33 homebridge homebridge[6367]: at On.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
May 20 19:54:33 homebridge homebridge[6367]: at On.Characteristic._this.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:625:12)
May 20 19:54:33 homebridge homebridge[6367]: at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1437:24
May 20 19:54:33 homebridge homebridge[6367]: at Array.forEach ()
May 20 19:54:33 homebridge homebridge[6367]: at Accessory._this._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1279:10)
May 20 19:54:33 homebridge homebridge[6367]: at HAPServer.emit (events.js:310:20)
May 20 19:54:33 homebridge homebridge[6367]: at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
May 20 19:54:33 homebridge homebridge[6367]: at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:812:12)
May 20 19:54:33 homebridge homebridge[6367]: at IncomingMessage. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:280:24)
May 20 19:54:33 homebridge homebridge[6367]: [5/20/2020, 7:54:33 PM] Got SIGTERM, shutting down Homebridge...

config:
{
"devices": [
{
"name": "Verstärker",
"host": "192.168.7.133",
"port": 8080,
"zoneControl": 0,
"volumeControl": true,
"switchInfoMenu": false,
"inputs": [
{
"name": "Plex",
"reference": "BD",
"type": "HDMI",
"mode": "SI"
},
{
"name": "TV Audio",
"reference": "TV",
"type": "HDMI",
"mode": "SI"
},
{
"name": "PS3",
"reference": "GAME",
"type": "HDMI",
"mode": "SI"
},
{
"name": "AppleTV",
"reference": "MPLAY",
"type": "HDMI",
"mode": "SI"
},
{
"name": "Chromecast",
"reference": "DVD",
"type": "HDMI",
"mode": "SI"
},
{
"name": "Spotify",
"reference": "SPOTIFY",
"type": "HDMI",
"mode": "SI"
},
{
"name": "Internet",
"reference": "NET",
"type": "HDMI",
"mode": "SI"
},
{
"name": "Aux",
"reference": "AUX1",
"type": "HDMI",
"mode": "SI"
},
{
"name": "Bluetooth",
"reference": "BT",
"type": "HDMI",
"mode": "SI"
}
]
}
],
"platform": "DenonTv"
}

How to change the volume?

Thanks for the excellent plugin. Have installed. Hooked up to homekit fine. And can turn on/off and change input for my Denon X3600H using the "TV" accessory in the Home app on my phone.

But I don't understand how "Volume/Mute can be changed using hardware buttons on iPhone/iPad." ??

Thanks!

Receiver not supported?

My Receiver (Denon AVR-X2300W) isn´t working.

[DenonTv] Device: 10.20.30.100, name: AV Receiver, state: Offline

I tried both Ports 80 and 8080. The Receiver dosn´t support HEOS. Does this Plugin only support heos Receivers?

Turn on All Zones

When I use this plugin it turns on all the zones. If possible would love to see the home kit devices (one for each zone) or for the single device to ignore zone 2.

Multi Zone use case

My Setup is as follows:

Equipment:
Denon AVR x2100w
Apple TV
Optoma Projector
iPhone / iPad (Airplay Source)

Rooms:
Cinema Room: 5.1 speaker setup with Apple TV playing Video through the AVR to a Projector
Patio: 2 Chanels from AVR

Use Case
I want to have the kids watch a movie in the Cinema Room on the Apple TV while the adults are on the patio listening to Airplay music from an iPhone or iPad.

I can achieve this using the Denon Remote App, but would like to activate it from homekit.

I just cant seem to find the right settings to control to different zones at the same time.

can't get input slider to work

Hello
I'm getting crazy here I can't figure out why the input selection doesn't work here. Power On/Off and volume control works fine.
Here's my test config:

"devices": [ { "name": "Receiver", "host": "192.168.0.108", "port": 8080, "zoneControl": 0, "volumeControl": true, "switchInfoMenu": false, "inputs": [ { "name": "GAME", "reference": "GAME", "type": "HDMI", "mode": "SI" }, { "name": "MPLAY", "reference": "MPLAY", "type": "HDMI", "mode": "SI" } ] } ], "platform": "DenonTv" } ]

Log output looks fine:
[5/14/2020, 21:41:16] [DenonTv] Device: 192.168.0.108 Receiver Main Zone, set new Input successful: GAME GAME [5/14/2020, 21:41:21] [DenonTv] Device: 192.168.0.108 Receiver Main Zone, set new Input successful: MPLAY MPLAY

may I also ask here whether the parameters "type" and "mode" are mandatory? What do they do exactly?

Thank's for the great work!

TypeError: Cannot read property 'item' of null

Hi Grzegorz.
I'm having problems with the latest version (1.1.70).

Environment:
Homebridge version 0.4.50
installed on Raspberry PI W zero;
System Raspbian 10.
Node.js Version | v13.6.0
Npm Versionv6.13.7

Denon-TV plugin configured properly:
in Platforms:

{ "devices": [ { "name": "Denon", "host": "192.168.1.102", "port": 8080, "switchInfoMenu": true, "inputs": [ { "name": "Xbox", "reference": "Game" }, { "name": "AppleTV", "reference": "Media Player" }, { "name": "TV", "reference": "CBL/SAT" }, { "name": "TV Audio", "reference": "TV Audio" } ] } ], "platform": "DenonTv" }
From Logs I can read that there is someting with getPowerState(callback) and getInput(callback) on index.js file.

In my opinion, parsing XML of status from my device is failing.
The XML it selfs contains (http://192.168.1.102/goform/formMainZone_MainZoneXmlStatusLite.xml):

<item> <Power> <value>OFF</value> </Power> <InputFuncSelect> <value>TV</value> </InputFuncSelect> <VolumeDisplay> <value>Absolute</value> </VolumeDisplay> <MasterVolume> <value>-55.0</value> </MasterVolume> <Mute> <value>off</value> </Mute> </item>

THE ERRORS I'm getting are:

[2/23/2020, 2:06:28 PM] TypeError: Cannot read property 'item' of null at /usr/local/lib/node_modules/homebridge-denon-tv/index.js:284:26 at Parser.<anonymous> (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:304:18) at Parser.emit (events.js:321:20) at Parser.exports.Parser.Parser.parseString (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:314:16) at Parser.parseString (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:5:59) at exports.parseString (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:369:19) at Request._callback (/usr/local/lib/node_modules/homebridge-denon-tv/index.js:283:51) at Request.self.callback (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/request/request.js:185:22) at Request.emit (events.js:321:20) at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/request/request.js:1154:10) [2/23/2020, 2:06:28 PM] TypeError: Cannot read property 'item' of null at /usr/local/lib/node_modules/homebridge-denon-tv/index.js:379:34 at Parser.<anonymous> (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:304:18) at Parser.emit (events.js:321:20) at Parser.exports.Parser.Parser.parseString (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:314:16) at Parser.parseString (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:5:59) at exports.parseString (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:369:19) at Request._callback (/usr/local/lib/node_modules/homebridge-denon-tv/index.js:378:51) at Request.self.callback (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/request/request.js:185:22) at Request.emit (events.js:321:20) at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/request/request.js:1154:10) [2/23/2020, 2:06:28 PM] Got SIGTERM, shutting down Homebridge...

and:

[2/23/2020, 2:07:18 PM] TypeError: Cannot read property 'item' of null at /usr/local/lib/node_modules/homebridge-denon-tv/index.js:379:34 at Parser.<anonymous> (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:304:18) at Parser.emit (events.js:321:20) at Parser.exports.Parser.Parser.parseString (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:314:16) at Parser.parseString (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:5:59) at exports.parseString (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:369:19) at Request._callback (/usr/local/lib/node_modules/homebridge-denon-tv/index.js:378:51) at Request.self.callback (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/request/request.js:185:22) at Request.emit (events.js:321:20) at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/request/request.js:1154:10) [2/23/2020, 2:07:18 PM] TypeError: Cannot read property 'item' of null at /usr/local/lib/node_modules/homebridge-denon-tv/index.js:284:26 at Parser.<anonymous> (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:304:18) at Parser.emit (events.js:321:20) at Parser.exports.Parser.Parser.parseString (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:314:16) at Parser.parseString (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:5:59) at exports.parseString (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/xml2js/lib/parser.js:369:19) at Request._callback (/usr/local/lib/node_modules/homebridge-denon-tv/index.js:283:51) at Request.self.callback (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/request/request.js:185:22) at Request.emit (events.js:321:20) at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-denon-tv/node_modules/request/request.js:1154:10) [2/23/2020, 2:07:18 PM] Got SIGTERM, shutting down Homebridge...

Denon AVR-X2200W not working

$ sudo npm install -g homebridge-denon-tv
+ [email protected]

/goform/formMainZone_MainZoneXmlStatusLite.xml

<item>
  <Power>
    <value>ON</value>
  </Power>
  <InputFuncSelect>
    <value>NET</value>
  </InputFuncSelect>
  <VolumeDisplay>
    <value>Absolute</value>
  </VolumeDisplay>
  <MasterVolume>
    <value>-48.0</value>
  </MasterVolume>
  <Mute>
    <value>off</value>
  </Mute>
</item>

Logfile

[5/3/2020, 3:10:01 PM] [DenonTv] Device: 192.168.0.30, name: AV Receiver, state: Online
[5/3/2020, 3:10:04 PM] TypeError: Cannot read property 'item' of null
    at parseString (/usr/local/lib/node_modules/homebridge-denon-tv/index.js:176:32)

quick select

thanks for the plugin, looks very promising!
Would you consider adding Denon quick select buttons? (They change the input AND some audio setting preconfigured by the user, so I prefer them over the normal input switches).

Best regards

Could we get a polling rate feature in this application?

I noticed that this package is generating quite a lot of load on the raspberry pi.
Looking at the logs from the package it is polling every 3 seconds the state of the Denon AVR.
This is fine however not necessary for my use case. Could we introduce a polling setting which allows us to change this 3 seconds?

Broken input switch combined with power on

When using a scene that switches on the receiver and also switches it to an input, the input doesn't get switched and the scene needs to be activated again while it's on to correctly switch. I switched back to 3.0.1 at the moment, it works in that version.

Lots of ETIMEDOUT errors

A few days ago I updated, and now get these errors logged every second (so thousands and thousands of them!). Is this a problem with my Denon (which seems to be working just fine) or something has changed with this nice plugin? Other devices on homebridge are working just fine.

[9/9/2020, 2:17:17 PM] [DenonTv] Device: 192.168.1.93 Zone 2, getDeviceInfo eror: Error: read ETIMEDOUT
at TCP.onStreamRead (internal/stream_base_commons.js:205:27) {
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'read',
config: [Object],
request: [Writable],
response: undefined,
isAxiosError: true,
toJSON: [Function]
}, state: Offline
[9/9/2020, 2:17:17 PM] [DenonTv] Device: 192.168.1.93 Zone 1, getDeviceInfo eror: Error: read ETIMEDOUT
at TCP.onStreamRead (internal/stream_base_commons.js:205:27) {
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'read',
config: [Object],
request: [Writable],
response: undefined,
isAxiosError: true,
toJSON: [Function]
}, state: Offline
[9/9/2020, 2:17:20 PM] [DenonTv] Device: 192.168.1.93 Zone 1, getDeviceInfo eror: Error: read ETIMEDOUT
at TCP.onStreamRead (internal/stream_base_commons.js:205:27) {
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'read',
config: [Object],
request: [Writable],
response: undefined,
isAxiosError: true,
toJSON: [Function]
}, state: Offli

get deviceinfo error

Device 192.168.x.x Receiver, getDeviceInfo parse string error: TypeError: Cannot read property 'BrandCode' of undefined
at denonTvDevice.getDeviceInfo (/homebridge/node_modules/homebridge-denon-tv/index.js:341:63)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)

I have receiver AVR-4311.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.