Coder Social home page Coder Social logo

martvvliet / homebridge-denon-heos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nneubauer/homebridge-denon

48.0 48.0 11.0 47.91 MB

Homebridge plugin for denon/marantz receivers. Possible to add the receivers as TV service, which enables the possibility to use the remote on the receiver and switch inputs with one block in your homekit screen. Als supports absolute volume control through a light bulb.

License: MIT License

JavaScript 100.00%

homebridge-denon-heos's People

Contributors

martvvliet avatar patrickdawson avatar xkonni 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

Watchers

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

homebridge-denon-heos's Issues

Marantz volume buttons keep resetting room placement on homebridge server restart

Hi Martvvliet,

I wasnt sure how else to contact you but I needed some support for this plugin as I'm having some weird issues at the moment. Whenever I restart my homebridge server the volume items in "Home" keep resetting their "room" which makes it a pain to change everytime. Any help/direction would be greatly appreciated!

Thank you!
Tomer

Not compatible with Homebridge 1.x?

After upgrading your plugin to the latest version (2.5.3) and Homebridge to 1.0.3 I get this:

[4/30/2020, 08:00:00] [DenonAVR] Could not register switch with name: AVR on Apple TV
[4/30/2020, 08:00:00] [DenonAVR] Could not register switch with name: AVR on TV
[4/30/2020, 08:00:00] [DenonAVR] Could not add TV accessory.
[4/30/2020, 08:00:00] [DenonAVR] Could not register volume control with name: Receiver Volume
[4/30/2020, 08:00:00] [DenonAVR] Could not register switch with name: AVR on Apple TV
[4/30/2020, 08:00:00] [DenonAVR] Could not register switch with name: AVR on TV
[4/30/2020, 08:00:00] [DenonAVR] Could not add TV accessory.
[4/30/2020, 08:00:00] [DenonAVR] Could not register volume control with name: Receiver Volume

Not all switches showing

Hi;

Finding an odd issue were switches aren't showing. I currently have 5 swtiches and a soft volume control (fan) set in the config. However it only shows the first 4 switches, and doesn't show the last switch (Vinyl) or the volume control. If I reboot the HB I get this in the log

[10/20/2020, 11:56:48] [DenonAVR] New switch configured: TV Audio
[10/20/2020, 11:56:48] [DenonAVR] New switch configured: Apple TV
[10/20/2020, 11:56:48] [DenonAVR] New switch configured: Xbox
[10/20/2020, 11:56:48] [DenonAVR] New switch configured: Playstation
[10/20/2020, 11:56:48] [DenonAVR] Configured switch found: Vinyl
[10/20/2020, 11:56:48] [DenonAVR] Configured volumeControl found: Amp Volume

However, if I then reboot the HB again I get the following message

[10/20/2020, 11:59:03] [DenonAVR] Configured switch found: TV Audio
[10/20/2020, 11:59:03] [DenonAVR] Configured switch found: Apple TV
[10/20/2020, 11:59:03] [DenonAVR] Configured switch found: Xbox
[10/20/2020, 11:59:03] [DenonAVR] Configured switch found: Playstation
[10/20/2020, 11:59:03] [DenonAVR] New switch configured: Vinyl
[10/20/2020, 11:59:03] [DenonAVR] New volumeControl configured: Amp Volume

...and now I get the Vinyl switch, the Amp Volume "fan", but lose the first 4 switches!!!

Any thoughts?

"switches": [
{
"name": "TV Audio",
"ip": "192.168.0.110",
"inputID": "TV"
},
{
"name": "Apple TV",
"ip": "192.168.0.110",
"inputID": "MPLAY"
},
{
"name": "Xbox",
"ip": "192.168.0.110",
"inputID": "GAME"
},
{
"name": "Playstation",
"ip": "192.168.0.110",
"inputID": "BD"
},
{
"name": "Vinyl",
"ip": "192.168.0.110",
"inputID": "CD"
}
],
"volumeControl": [
{
"name": "Amp Volume",
"ip": "192.168.0.110",
"controlType": "fan",
"volumeLimit": 80
}
],

since upgrade to 2.8.3 I get an error could not add TV accessory

[5/22/2020, 11:41:22 PM] [DenonAVR] Using http control on port 8080 with receiver: 192.168.1.150
[5/22/2020, 11:41:22 PM] [DenonAVR] DEBUG: setDenonInformation: 192.168.1.150. Device info set: false
[5/22/2020, 11:41:22 PM] [DenonAVR] DEBUG: setupTvService zone: 1: Denon Amp
[5/22/2020, 11:41:22 PM] [DenonAVR] DEBUG: setupTvSpeakerService zone: 1: Denon Amp
[5/22/2020, 11:41:22 PM] [DenonAVR] DEBUG: setupInputSourcesService zone: 1: Denon Amp
[5/22/2020, 11:41:22 PM] [DenonAVR] DEBUG: publishExternalAccessories zone: 1: Denon Amp
[5/22/2020, 11:41:22 PM] [DenonAVR] ERROR: Could not add TV accessory.

I tried turning on Debug, but it didn't show any more info.

Homebridge v1.1.0

Issue connecting to Denon

Hello,

Have had my Denon set up in Homebridge flawlessly for a couple of weeks now, but today I have started getting No Response in HomeKit and this error in my Homebridge log:

[6/3/2020, 3:33:44 PM] [DenonAVR] Cannot connect
(node:19813) UnhandledPromiseRejectionWarning: Error: Cannot connect
    at Socket.<anonymous> (/usr/local/lib/node_modules/homebridge-denon-heos/node_modules/telnet-client/lib/index.js:87:25)
    at Object.onceWrapper (events.js:411:28)
    at Socket.emit (events.js:305:20)
    at Socket._onTimeout (net.js:477:8)
    at listOnTimeout (internal/timers.js:537:17)
    at processTimers (internal/timers.js:481:7)

(node:19813) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:19813) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:19813) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'attempts' of undefined
    at connect (/usr/local/lib/node_modules/homebridge-denon-heos/index.js:740:2)
    at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-denon-heos/index.js:591:17)
    at listOnTimeout (internal/timers.js:537:17)
    at processTimers (internal/timers.js:481:7)

(node:19813) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

Any ideas what it may be? Nothing has changed in the config and the Denon still works with the official Denon app.

Thanks in advance.

[2020-10-22 12:34:07] [DenonAVR] ERROR: Can't connect to receiver with ip: 192.168.XXX.YYY and port: 8080

Hi,
i have a new Denon Receiver X2700H since yesterday.
I have configured your plugin (see below), but i get the error in the subject.
If i try this: http://192.168.XXX.YYY:8080/goform/formMainZone_MainZoneXmlStatusLite.xml
i get the correct answer.
So what is wrong?
Thank you for your answer.
Peter
{
"platform": "DenonAVR",
"pollInterval": 3,
"devices": [
{
"name": "Denon Receiver",
"ip": "192.168.XXX.YYY",
"switchInfoMenu": true,
"defaultInputID": "SAT/CBL",
"zone": 1,
"port": 8080,
"inputs": [
{
"inputID": "MPLAY",
"name": "Apple TV",
"defaultVolume": 32
},
{
"inputID": "IRADIO",
"name": "Radio"
},
{
"inputID": "SAT/CBL",
"name": "VU+"
}
]
}
]
},

NET input no sound

I add a switch with NET input, but Internet radio not start play automatically
In I switch with remote controller on internet radio, it start play the last radio station automatically
If I switch on NET input and then I push PLAY button on remote controller -> Music :)

Why?

Unable to add Denon input via accessory after config change

Hi, I added denon receiver input to home app.
That worked fine, exept i configured wrong inputs.
So i deletet denon receiver from home, changed config and now are trying to re-add the receiver.
Volume is there and working gread but I'm unable to add the input choises.

What am i doing wrong?

Please help :)

"auto" port not working - neither is hardcoding 80

Hi

I have upgraded to 2.0.6 - and am now getting the following error on startup

Jan 20 11:23:17 monitor homebridge[26556]: [20/01/2020, 11:23:17 am] [DenonAVR] Error while getting information of receiver with IP: 10.1.1.12. Error: connect ECONNREFUSED 10.1.1.12:60006 Jan 20 11:23:17 monitor homebridge[26556]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1136:16) { Jan 20 11:23:17 monitor homebridge[26556]: errno: -111, Jan 20 11:23:17 monitor homebridge[26556]: code: 'ECONNREFUSED', Jan 20 11:23:17 monitor homebridge[26556]: syscall: 'connect', Jan 20 11:23:17 monitor homebridge[26556]: address: '10.1.1.12', Jan 20 11:23:17 monitor homebridge[26556]: port: 60006 Jan 20 11:23:17 monitor homebridge[26556]: } Jan 20 11:23:17 monitor homebridge[26556]: [20/01/2020, 11:23:17 am] [DenonAVR] Error while getting information of receiver with IP: 10.1.1.12. Error: connect ECONNREFUSED 10.1.1.12:60006 Jan 20 11:23:17 monitor homebridge[26556]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1136:16) { Jan 20 11:23:17 monitor homebridge[26556]: errno: -111, Jan 20 11:23:17 monitor homebridge[26556]: code: 'ECONNREFUSED', Jan 20 11:23:17 monitor homebridge[26556]: syscall: 'connect', Jan 20 11:23:17 monitor homebridge[26556]: address: '10.1.1.12', Jan 20 11:23:17 monitor homebridge[26556]: port: 60006 Jan 20 11:23:17 monitor homebridge[26556]: }

I have tired both 'auto' and '80' as the port - but it keeps defauling to port 60006.

{ "platform": "DenonAVR", "pollInterval": 3, "devices": [ { "name": "Denon Receiver", "ip": "10.1.1.12", "port": "auto", "switchInfoMenu": true, "inputs": [ { "inputID": "MPLAY", "name": "MythTV" },

Thanks.

Switch is not deleted

The switch is not deleted in the Home app after deleting it from the configuration file

Problem with Denon x2400h

Hey,
I don't get the plugin to work.
I use hoobs.
My config is

{
"platform": "DenonAVR",
"plugin_map": {
"plugin_name": "homebridge-denon-heos"
},
"pollInterval": 3,
"debugToInfo": false,
"devices": [
{
"name": "Denon Receiver",
"ip": "192.168.178.30",
"inputs": [
{
"inputID": "BD",
"name": "XBOX",
"defaultVolume": 35
}
]
}
]
}

The Receiver doesn't even show up in my HomeKit.

Would be nice if you can help me.

No Light Bulb for volume control

I installed the @latest version today, change my config, but there is no volume control added (Light Bulb)
In the logging I can't see any errors.
Receiver: Denon AVR-X2500H
Config:
{ "platform": "DenonAVR", "pollInterval": 3, "devices": [ { "name": "Denon Receiver", "ip": "192.168.2.5", "switchInfoMenu": true, "port": 8080, "volumeControl": [ { "name": "Denon Volume", "ip": "192.168.2.5", "volumeLimit": 60, "port": 8080 } ], "inputs": [ { "inputID": "SAT/CBL", "name": "KPN TV" }, { "inputID": "DVD", "name": "Kodi 4" }, { "inputID": "BD", "name": "Apple TV 4K" }, { "inputID": "SPOTIFY", "name": "Spotify" }, { "inputID": "NET", "name": "HEOS" } ] } ] },

Hombridge stopps working after new plugin-update

After the latest update of the plugin, hombridge stops.

Here ist my configuration and the logs:

{
"server": {
"port": 8080,
"origin": "*",
"autostart": 0,
"home_setup_id": "X-HM://0023ISYWYHHK5",
"polling_seconds": 5
},
"client": {
"default_route": "status",
"inactive_logoff": 30,
"theme": "hoobs-light",
"locale": "de",
"temp_units": "celsius",
"country_code": "DE",
"postal_code": "32130"
},
"bridge": {
"name": "HOOBS",
"port": 51826,
"pin": "031-45-154",
"username": "5F:8E:1A:C3:39:9E"
},
"description": "",
"ports": {},
"accessories": [],
"platforms": [
{
"platform": "BlinkSecurityPlatform",
"name": "Blink System",
"username": "",
"password": "",
"discovery": false,
"plugin_map": {
"plugin_name": "homebridge-blinkcameras"
}
},
{
"platform": "WeatherPlus",
"service": "darksky",
"key": "",
"locationGeo": [
52.1416496,
8.5580984
],
"interval": 4,
"conditionCategory": "detailed",
"forecast": [
0,
1,
2,
3,
4,
5,
6,
7
],
"language": "de",
"nameNow": "",
"plugin_map": {
"plugin_name": "homebridge-weather-plus"
},
"units": "si"
},
{
"platform": "Hue",
"plugin_map": {
"plugin_name": "hue"
},
"name": "Hue",
"forceCt": true,
"nativeHomeKitLights": true,
"nativeHomeKitSensors": false,
"nupnp": true,
"resource": false,
"users": {
""
},
"lights": true,
"wallSwitch": true,
"heartrate": 2,
"anyOn": true,
"hosts": "192.168.13.48",
"forceHttp": true
},
{
"platform": "FritzPlatform",
"devices": {
"FRITZ!Box 7590": {
"active": true,
"host": "192.168.13.1",
"port": 49000,
"username": "admin",
"password": "",
"type": "dsl",
"master": true,
"mesh": true,
"readOnly": false,
"options": {
"reconnect": true,
"wifi2": [
true,
false
],
"wifi5": [
true,
false
],
"wifiGuest": [
true,
false
],
"wps": [
true,
false
],
"aw": [
true,
false
],
"deflection": [
true,
false
],
"led": [
true,
false
],
"lock": [
true,
false
]
}
},
"FRITZ-Repeater-unten": {
"active": true,
"host": "192.168.13.23",
"port": 49000,
"username": "admin",
"password": "",
"type": "repeater",
"readOnly": false,
"options": {
"wifi2": [
true,
false
],
"wifi5": [
true,
false
],
"wifiGuest": [
true,
false
],
"wps": [
true,
false
],
"led": [
true,
false
]
}
},
"FRITZ!Repeater oben": {
"active": true,
"host": "192.168.13.25",
"port": 49000,
"username": "admin",
"password": "",
"type": "repeater",
"readOnly": false,
"options": {
"wifi2": [
true,
false
],
"wifi5": [
true,
false
],
"wifiGuest": [
true,
false
],
"wps": [
true,
false
],
"led": [
true,
false
]
}
},
"FRITZ!Repeater 2400": {
"active": true,
"host": "192.168.13.54",
"port": 49000,
"username": "admin",
"password": "",
"type": "repeater",
"readOnly": false,
"options": {
"wifi2": [
true,
false
],
"wifi5": [
true,
false
],
"wifiGuest": [
true,
false
],
"wps": [
true,
false
],
"led": [
true,
false
]
}
}
},
"smarthome": {
"Test Contact Sensor": {
"active": false,
"ain": "01234567890",
"devType": "contact"
},
"Test Thermostat Device": {
"active": false,
"ain": "01234567890",
"heatValue": 5,
"coolValue": 5,
"windowSensor": false,
"devType": "thermostat"
},
"Test Outlet Device": {
"active": false,
"ain": "01234567890",
"tempSensor": false,
"devType": "switch"
}
},
"callmonitor": {
"active": false,
"ip": "0.0.0.0",
"port": 1012
},
"presence": {
"user": [
{
"active": true,
"name": "",
"address": "192.168.13.39"
}
],
"anyone": true,
"offDelay": 10,
"onDelay": 10,
"ping": false
},
"wol": [
{
"active": false,
"name": "Test Device",
"address": "00:00:00:00:00:00"
}
],
"phoneBook": {
"active": false
},
"alarm": {
"active": false,
"duration": 30
},
"wakeup": {
"active": false,
"duration": 30
},
"ringlock": {
"active": false,
"DECTphones": 1,
"start": "11:00",
"end": "22:00"
},
"broadband": {
"active": false,
"measureTime": 5
},
"extReboot": {
"active": false
},
"telegram": {
"active": false
},
"polling": 10,
"timeout": 10,
"clearCache": false,
"debug": false,
"disableAutoSearch": true,
"disableAutoConfig": true,
"plugin_map": {
"plugin_name": "homebridge-fritz-platform"
}
},
{
"platform": "OpenWebIfTv",
"plugin_map": {
"plugin_name": "homebridge-openwebif-tv"
}
},
{
"platform": "DenonAVR",
"plugin_map": {
"plugin_name": "homebridge-denon-heos"
},
"debugToInfo": false,
"devices": [
{
"name": "Marantz Receiver",
"ip": "192.168.13.43",
"switchInfoMenu": true,
"inputs": [
{
"inputID": "SAT/CBL",
"name": "VU+",
"defaultVolume": 45
},
{
"inputID": "MPLAY",
"name": "Apple TV",
"defaultVolume": 45
},
{
"inputID": "SPOTIFY",
"name": "Spotify",
"defaultVolume": 45
},
{
"inputID": "BD",
"name": "Blu-Ray",
"defaultVolume": 45
},
{
"inputID": "TV",
"name": "TV"
}
]
}
],
"switches": [
{
"name": "AVR on Apple TV",
"ip": "192.168.13.43",
"port": 8080,
"inputID": "MPLAY",
"pollAllInput": false
},
{
"name": "AVR on VU+",
"ip": "192.168.13.43",
"port": 8080,
"inputID": "SAT/CBL",
"defaultVolume": 45,
"pollAllInput": false
},
{
"name": "AVR on BlueRay",
"ip": "192.168.13.43",
"port": 8080,
"inputID": "BD",
"defaultVolume": 45,
"pollAllInput": false
}
],
"volumeControl": [
{
"name": "Receiver Volume",
"ip": "192.168.13.43",
"volumeLimit": 60,
"port": 8080
}
],
"pollInterval": 3
}
]
}

logs(2).txt
logs(3).txt

Home App requests an 8 digit code

Great plugin, thanks.
It works great as switches, and now I'm trying to add my receiver (Marantz SR5012) as a Device (TV) but the Home app requests an 8 digit code.
Is there a defualt code?

Request for changing types

I believe that there are support for audio receiver in iOS 13 and 14, is it possible to add receiver as audio receiver instead of TV?

Request: Auto discover

The Denon-Marantz plugin can auto discover.

Any chance you can add that capability? Just less configuration :-)

Volume bulb not visible

I added the volume control after update to 2.2.1, but the control is not shown.
I still have the volume control based on another plugin (marantz-volume) with same settings that works fine.
Any idea?

Can’t Change Input

Hello! I got the plug-in up and running and the on and off feature works great, however it won’t change inputs whenever I try inside the home app. Any ideas why?

Homebridge 0.6.0 beta - failed to register plugin

When contributing to homebridge 0.6.0 beta test - see homebridge/homebridge#2459 - your plugin failed to register :“plugin incorrectly registered an external accessory using the platform name (homebridge-denon-heos) and not the plugin identifier. please report to the developer!

It works on 0.4.53 with latest 2.4.0. Can you please crosscheck? Thanks!

Device does not appear in Home App

I have installed the latest version 2.0.6 and configured is with the following.

{ "platform": "DenonAVR", "pollInterval": 3, "devices": [ { "name": "Denon AVR", "ip": "192.168.7.210", "port": 80, "switchInfoMenu": false, "inputs": [ { "inputID": "BD", "name": "Apple TV" }, { "inputID": "GAME", "name": "Control4" }, { "inputID": "SAT/CBL", "name": "Cable" }, { "inputID": "DVD", "name": "Blu-ray" } ] } ] }

I get the error that others are getting:

Error while getting information of receiver with IP: 192.168.7.210. Error: connect ECONNREFUSED 192.168.7.210:60006 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1134:16) { errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: 'connect', address: '192.168.7.210', port: 60006 }

However, I am never seeing the device in the Home app. I have several other plugins on this Homebridge instance, and those accessories are showing, but no matter the configuration change I make, I never see the Denon AVR. (X1300H)

I have also removed cached accessories file and restarted the app, but no changes.

Replace discovery and device control with heos-api

heos-api seems to be an established library to communicate with Heos/Denon.
It might be a good idea to use this library and use a possible more stable telnet implementation that is not suffering the stability issues that you experienced. Telnet control is also possible. Since I found these less stable than the HTTP commands, I still prefer the HTTP commands.
It will also be easier for homebridge-denon-heos to focus on bridging homebridge with heos through the library whenever there are changes or new features in the protocol.

Zone2 support

I was looking at multi-zone support. I see that multiple platforms are already supported.

Would it be possible to tweak multi-platform support so that each platform can be configured with a URL? The default URL could be "formMainZone_MainZoneXmlStatusLite.xml" and this could be manually changed to "formMainZone_MainZoneXmlStatusLite.xml?_=&ZoneName=ZONE2" by anyone wanting a second zone?

If this doesn't work then maybe this issue can be a placeholder for someone to come up with something that does :)

Volume accessory keeps getting replaced

Hi,

I frequently have to move my lightbulb volume control into the correct room, reset the icon, remove from favourites & status. It seems to get removed and replaced occasionally. I haven't been able to determine why. It's not every restart of homebridge but maybe when up update something? All other accessories (I have lots) are fine but this one keeps getting reset??

            "volumeControl": [
                {
                    "name": "Dining Amp Volume",
                    "ip": "192.168.188.11",
                    "port": "80",
                    "volumeLimit": 60,
                    "zone": 2
                }
            ]

Error adding TV Accesssory

Hi;

Getting the following error when trying to add a TV accessory on a x2400H model

ERROR: Could not add TV accessory.

Also adding more than one switch shows only the last one added

No Denon receiver with IP: 192.168.188.11 found in network. Using manual port: 80.

Hi,

I'm getting this error when I try to run the plugin:

Jan 31 15:24:26 pi4 homebridge[5109]: [1/31/2020, 3:24:26 PM] [DenonAVR] No Denon receiver with IP: 192.168.188.11 found in network. Using manual port: 80.

And no new devices in my home app.

The IP address is definitely correct for my AVR-X3200W...

http://192.168.188.11:80/goform/formMainZone_MainZoneXmlStatusLite.xml


<?xml version="1.0" encoding="utf-8" ?>
<item>
<Power><value>ON</value></Power>
<InputFuncSelect><value>NET</value></InputFuncSelect>
<VolumeDisplay><value>Absolute</value></VolumeDisplay>
<MasterVolume><value>-29.0</value></MasterVolume>
<Mute><value>off</value></Mute>
</item>

Volume setting beyond lightbulbs

Firstly, thanks for a great plug-in!

I noticed homebridge now supports a few new types including "Speaker", "SmartSpeaker" and "TelevisionSpeaker". Could any of these function as a better way to control volume than the lightbulb approach? I see the last two both have 0-100 volume characteristics so that looks quite promising.

I know second zones are also on the roadmap. I have two zones and I'm really looking forward to the day when I can easily independently set the zone input sources and volumes via homebridge without any clunky workarounds.

Cheers

ERROR: Could not add TV accessory

Hi,

Thanks for creating plugin. I get the error Could not add TV accessory after config and I dont know why.
Screenshot 2020-08-25 at 19 36 52

I get the Volume Control and a input switch, but only Volume control works. Input swith times out with not responding.
Receiver Denon AVR-X7200W

Simple config as of now, only added via web UI:
{
"debugToInfo": false,
"devices": [
{
"name": "Denon Receiver",
"ip": "10.0.x.x",
"zone": 1,
"switchInfoMenu": true,
"defaultInputID": "MPLAY",
"inputs": [
{
"defaultVolume": 40
},
{
"inputID": "SPOTIFY",
"name": "Spotify",
"defaultVolume": 42
}
]
}
],
"switches": [
{
"name": "Denon Receiver Input",
"ip": "10.0.x.x",
"zone": 1,
"pollAllInput": true,
"defaultVolume": 40
}
],
"volumeControl": [
{
"name": "Receiver volume",
"ip": "10.0.x.x",
"zone": 1,
"volumeAsFan": false,
"volumeLimit": 70
}
],
"platform": "DenonAVR"
},

Note!! I verified that my receiver uses port 80.

Reading current status issue 2.3.0

I have a Denon AVR-1913 and a Denon AVR-X1200W. Both utilize port 80 for HTTP control and is configured in the json file.

After upgrading to 2.3.0 and 2.3.1, the tiles in the Home app do not properly reflect the status of the receiver. For example, if the receiver is on and set to the AUX input, the tile will reflect that the receiver is off. Volume control shows as off as well.

If I tap the tile, the tile in the Home app will then show that the receiver is on. Inputs and volume will switch correctly. However, if I make a change on the receiver itself, that change is never reflected in the home tile app, even if I force close and reopen the Home app.

Going back to version 2.2.1, the tiles will properly reflect the current state of the input and volume level of the receiver, regardless if I change it on the receiver or the Home app.

No Device/Switches available in HomeApp?

Hi,

i have now connection and i have configured one device and some switches.
After Reboot homebridge there are no elements visible and in the logfile is no error, only this:
Logfile:
[2020-10-23 12:01:54] [DenonAVR] ------------------------------
[2020-10-23 12:01:54] [DenonAVR] Receiver discovered in network:
[2020-10-23 12:01:54] [DenonAVR] IP Address: 192.168.113.33
[2020-10-23 12:01:54] [DenonAVR] Port: 8080
[2020-10-23 12:01:54] [DenonAVR] Model: Denon AVR-X2700H
[2020-10-23 12:01:54] [DenonAVR] Serialnumber: DBBZ092008037
[2020-10-23 12:01:54] [DenonAVR] Firmware: 1.562.281
[2020-10-23 12:01:54] [DenonAVR] ------------------------------
[2020-10-23 12:01:55] DrDenon BB16 is running on port 36861.
[2020-10-23 12:01:55] Please add [DrDenon BB16] manually in Home app. Setup Code: 031-45-154

Any idea?
Thank you,
Peter

Config:
{
"platform": "DenonAVR",
"pollInterval": 3,
"devices": [
{
"name": "DrDenon",
"ip": "192.168.113.33",
"switchInfoMenu": true,
"defaultInputID": "SAT/CBL",
"zone": 1,
"port": 8080,
"inputs": [
{
"inputID": "MPLAY",
"name": "Apple TV",
"defaultVolume": 32
},
{
"inputID": "IRADIO",
"name": "Radio"
},
{
"inputID": "SAT/CBL",
"name": "VU+"
}
],
"switches": [
{
"name": "AVR on Apple TV",
"ip": "192.168.113.33",
"port": 8080,
"inputID": "MPLAY",
"pollAllInput": false
},
{
"name": "AVR on iRadio",
"ip": "192.168.113.33",
"port": 8080,
"inputID": "IRADIO",
"defaultVolume": 35
},
{
"name": "AVR Zone 2",
"ip": "192.168.113.33",
"port": 8080,
"zone": 2,
"inputID": "TUNER"
}
]
}
]
},

Not working

Hey, looks like the plugin is not working.

Unhandled rejection Error: socket not writable at /usr/lib/node_modules/homebridge-denon-heos/node_modules/telnet-client/lib/index.js:260:16 at Promise._execute (/usr/lib/node_modules/homebridge-denon-heos/node_modules/bluebird/js/release/debuggability.js:384:9) at Promise._resolveFromExecutor (/usr/lib/node_modules/homebridge-denon-heos/node_modules/bluebird/js/release/promise.js:518:18) at new Promise (/usr/lib/node_modules/homebridge-denon-heos/node_modules/bluebird/js/release/promise.js:103:10) at Telnet.send (/usr/lib/node_modules/homebridge-denon-heos/node_modules/telnet-client/lib/index.js:216:12) at legacyClient.setPowerStateTelNet (/usr/lib/node_modules/homebridge-denon-heos/index.js:1337:31) at legacyClient.setPowerStateLegacy (/usr/lib/node_modules/homebridge-denon-heos/index.js:1247:9) at Characteristic.On.emit (events.js:310:20) at Characteristic.On.Characteristic.setValue (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:321:10) at Bridge.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:882:22) at Array.forEach (<anonymous>) at Bridge.Accessory._handleSetCharacteristics (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:822:8) at HAPServer.emit (events.js:310:20) at HAPServer._handleCharacteristics (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:974:10) at HAPServer.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) at IncomingMessage.emit (events.js:310:20)

What am I doing wrong?

My config:

`"platforms": [
{
"platform": "DenonAVR",
"devices": [
{
"name": "Denon Receiver",
"ip": "10.0.2.112",
"switchInfoMenu": true,
"inputs": [
{
"inputID": "SAT/CBL",
"name": "TV"
},
{
"inputID": "DVD",
"name": "Apple TV"
},
{
"inputID": "NET",
"name": "Internet Radio"
},
{
"inputID": "AUX1",
"name": "AUX"
}
]
}
],
"switches": [
{
"name": "AVR on Apple TV",
"ip": "10.0.2.112",
"inputID": "DVD",
"pollAllInput": false
},
{
"name": "AVR on TV",
"ip": "10.0.2.112",
"inputID": "SAT/CBL"
}
],
"volumeControl": [
{
"name": "Receiver Volume",
"ip": "10.0.2.112",
"volumeLimit": 60
}
]
}

Error loading plugin

This is with homebridge 0.4.53

Load hombridge-denon-heos.DenonAVR
[4/25/2020, 12:14:46 PM] TypeError: Cannot read property 'debugTrace' of null
at new denonClient (/usr/local/lib/node_modules/homebridge-denon-heos/index.js:74:20)
at Server._loadDynamicPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:358:30)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:92:8)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47

Crashing on start

Load hombridge-denon-heos.DenonAVR [4/26/2020, 10:05:37] TypeError: Cannot read property 'debugTrace' of null at new denonClient (/usr/lib/node_modules/homebridge-denon-heos/index.js:74:20) at Server._loadDynamicPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:358:30) at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:92:8) at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:59:10) at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (internal/modules/cjs/loader.js:1156:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10) at Module.load (internal/modules/cjs/loader.js:1000:32) at Function.Module._load (internal/modules/cjs/loader.js:899:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) at internal/main/run_main_module.js:18:47

Re-adding accessory after plugin changes

I believe it is expected to have to re-add the accessory via the Home app after doing some tweaks/changes in the config of the plugin.
I scratched my head for 5 minutes looking at a "not responding" tile before thinking about adding a new accessory, and there it was.

Suggestion is to make it a bit more obvious that that step is needed. Unless of course it is a bug, and it's possible to modify the same accessory without having to add it again.

Thanks for a great plugin!

New receiver icon in iOS 14?

Hi there,

I see some people on Reddit mentioned they are seeing the receiver icon using this very plugin (here and here). It doesn't seem to be the case for me (on iOS 14 of course), am I missing something?

Thanks!

Input Selection using TV Accessory

Hello,

I am using this on Marantz NR170 and most if not all functionality is as described in the documentation.

However > I cannot select certain inputs.

For example: If I turn everything on and the input is CBL/SAT > When I change to another input > AUX1 > The input changes to AUX1 (as expected) BUT - I cannot change back to CBL/SAT input. There are only 3 inputs that work selecting back and forth, all others not working.

Additional Note: I tried with switches, same behaviour, however it does succeed in setting the defaultVolume param on ALL inputs.

Any insight would be helpuful.

Thanks

Pick volume with fan control

Hey, first of all - great work! Much appreciated.
To the issue now - would it be possible to change (or make it an option) to use fan control as volume control for this plugin? This way voice commands as “turn off/on the lights” wouldn’t affect avr’s volume.

Enhancement: Add Delay to select source

Sometimes, when i use the accessories generated by this plugin in scenes, the selected input in the scene don't apply, for a reason that in don't known. Maybe if the Power-On command follow by a delayed input select solve the problem. Something like:

"inputs": [ { "inputID": "SAT/CBL", "name": "MiBox 4K", "defaultVolume": 50, "waitTime": 0.5 },

Thanks

Default voulme

Can put a config parameter to setup a default volume, maybe a global param and individual input param?

Thanks

TypeError: Cannot read property 'item' of null

Looking forward to this Homebridge plugin. Thank you for your efforts.

As frequently as I have the poll Interval set to, the Homebridge instance will error out with the below message. I also included my config.json file below. It's basically using the example config, swapping out the IP address of the receiver. I also tried modifying it to only include one Input for now. However, still getting the item property null error.

Do you happen to see where I might be going wrong?

[1/11/2020, 9:42:02 AM] TypeError: Cannot read property 'item' of null
at C:\Users\chuck\AppData\Roaming\npm\node_modules\homebridge-denon-heos\index.js:372:18
at Parser. (C:\Users\chuck\AppData\Roaming\npm\node_modules\homebridge-denon-heos\node_modules\xml2js\lib\parser.js:304:18)
at Parser.emit (events.js:203:13)
at Parser.exports.Parser.Parser.parseString (C:\Users\chuck\AppData\Roaming\npm\node_modules\homebridge-denon-heos\node_modules\xml2js\lib\parser.js:314:16)
at Parser.parseString (C:\Users\chuck\AppData\Roaming\npm\node_modules\homebridge-denon-heos\node_modules\xml2js\lib\parser.js:5:59)
at exports.parseString (C:\Users\chuck\AppData\Roaming\npm\node_modules\homebridge-denon-heos\node_modules\xml2js\lib\parser.js:369:19)
at Request._callback (C:\Users\chuck\AppData\Roaming\npm\node_modules\homebridge-denon-heos\index.js:366:5)
at Request.self.callback (C:\Users\chuck\AppData\Roaming\npm\node_modules\homebridge-denon-heos\node_modules\request\request.js:185:22)
at Request.emit (events.js:203:13)
at Request. (C:\Users\chuck\AppData\Roaming\npm\node_modules\homebridge-denon-heos\node_modules\request\request.js:1161:10)

{
"mdns": {
"interface": "10.0.1.250"
},

"bridge": {
	"name": "Homebridge Denon HEOS",
	"username": "CB:BC:B4:6E:24:F8",
	"port": 51816,
	"pin": "532-19-182"
},

"plugins": [
	"homebridge-denon-heos"
],

"platforms": [{
	"platform": "DenonAVR",
	"pollInterval": 3,
	"devices": [{
		"name": "Denon Receiver",
		"ip": "10.0.1.245",
		"switchInfoMenu": true,
		"inputs": [{
			"inputID": "MPLAY",
			"name": "Apple TV"
		},
		{
			"inputID": "GAME",
			"name": "iMac"
		},
		{
			"inputID": "TV",
			"name": "TV"
		},
		{
			"inputID": "AUX1",
			"name": "AUX"
		}]
	}]
}]

}

Receiver not showing as TV

Good afternoon,

First of all I want to say that I really love your plugin. 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-tv plugin.

Kind regards, Danton

Zone 3 status pull

Great add on!

On zone 3 the status (volume, source, on/off) is only push to the avr and wont pull (for example if i turn the zone 3 from denon app the switches remain off)

Tnx

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.