stfnhmplr / homebridge-denon-marantz-avr Goto Github PK
View Code? Open in Web Editor NEWDenon and Marantz AVR for Homebridge
Denon and Marantz AVR for Homebridge
Hey there,
just wanted to ask wether we want to merge homebridge-denon and https://github.com/luc-ass/homebridge-marantzavr ?
Do you use the http method to control your Denon AVR?
Great news everyone! Speakers are going to be native accessories in iOS 11 as announced at WWDC. The specific course has not jet been held but you will be able to find it here:
https://developer.apple.com/wwdc/schedule/#/
search for "home" and you'll find all the courses, most of which are taking place on Wednesday, some on Friday (i.e. Introducing AirPlay 2).
Have fun!
Homebridge crashes on startup if the respective accessory is inside the config.
Error: The requested accessory 'DenonMarantzAVR' was not registered by any plugin.
Homebridge works without it.
I installed this accessory using:
sudo npm install -g homebridge-denon
Part of the config:
"accessory": "DenonMarantzAVR",
"name": "Denon",
"ip": "192.168.178.9",
"defaultInput": "GAME",
"defaultVolume": 40,
"minVolume": 10,
"maxVolume": 70,
"doPolling": true,
"pollingInterval": 60
I already tried reinstalling homebridge-denon
without success.
Hey Stephan,
what's your experience on the volume update-rate? I think changing volume should feel live. In my plugin I have no rate limiter (causing up to 50 calls per second) wich might be over the top. I feel like we should decrease the rate from 4000 ms to about 500 ms. What do you think?
I am getting the following
/usr/lib/node_modules/homebridge-denon/index.js:140 this.speakerService = new Service.Speaker(this.name); ^ TypeError: Service.Speaker is not a function at DenonAVRAccessory.getServices (/usr/lib/node_modules/homebridge-denon/index.js:140:27) at Server._createAccessory (/usr/lib/node_modules/homebridge/lib/server.js:357:36) at Server._loadAccessories (/usr/lib/node_modules/homebridge/lib/server.js:245:26) at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:72:38) at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10) at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (module.js:413:34) at Object.Module._extensions..js (module.js:422:10) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12)
When trying to run with homebridge 0.4.16 and it seems it installed:
[2/8/2017, 8:04:53 PM] Loaded plugin: homebridge-denon [2/8/2017, 8:04:53 PM] Registering accessory 'homebridge-denon-marantz-avr.DenonMarantzAVR'
Keep getting the following error after updating to the latest release.
{ Error: connect ECONNREFUSED 192.168.1.210:23
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1083:14)
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '192.168.1.210',
port: 23 }
I am able to use the AVR Remote app to connect to my AVR-X1300H. The X1300H is on the network and communicating properly with my Control4 system as well.
Hi, I am getting endless errors that Homebridge cannot connect. Furthermore the toggle in the Home app doesn't actually turn the Denon receiver on. I know I have the right IP address as the Marantz volume control plugin works fine.
thoughts? error below...
2019-1-27 10:42:50] [Denon LivingRoom] do poll..
[2019-1-27 10:42:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:43:50] [Denon LivingRoom] do poll..
[2019-1-27 10:43:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:44:50] [Denon LivingRoom] do poll..
[2019-1-27 10:44:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:45:50] [Denon LivingRoom] do poll..
[2019-1-27 10:45:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:46:50] [Denon LivingRoom] do poll..
[2019-1-27 10:46:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:47:50] [Denon LivingRoom] do poll..
[2019-1-27 10:47:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:48:50] [Denon LivingRoom] do poll..
[2019-1-27 10:48:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:49:50] [Denon LivingRoom] do poll..
[2019-1-27 10:49:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:50:50] [Denon LivingRoom] do poll..
[2019-1-27 10:50:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:51:50] [Denon LivingRoom] do poll..
[2019-1-27 10:51:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:52:50] [Denon LivingRoom] do poll..
[2019-1-27 10:52:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:53:50] [Denon LivingRoom] do poll..
[2019-1-27 10:53:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:54:50] [Denon LivingRoom] do poll..
[2019-1-27 10:54:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:55:50] [Denon LivingRoom] do poll..
[2019-1-27 10:55:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:56:50] [Denon LivingRoom] do poll..
[2019-1-27 10:56:50] [Denon LivingRoom] Can't connect to device: null
[2019-1-27 10:57:50] [Denon LivingRoom] do poll..
I use homebridge on a raspberry pi with fibaro HC2, this works very well.
However, when adding the DenonMarantzAVR accessory (and rebooting), the original accessories (nor the DenonMarantzAVR accessory) no longer update in the ios Home app. After removing the accessory, everything is back to normal. "sudo systemctl status homebridge" does not give an error and indicates that the homebridge service is running and active.
Do you have any clue what can be the issue?
My AVR: Denon X1000
Hey there,
the volume on my phone does not match volume on the reciver. Should we just keep it like this or should we try to match it? I think it has somehting to do with the maximum volume (limitable for phones).
Perhaps we can browse the XML to find wether volume is set to db or percentage...
Hi there!
Seems your plugin is not working with the newer models of Denon AVR's. My X1400H doesn't work with this plugin. I've read that these receivers don't accept HTTP requests anymore, but they do still work with telnet commands which also works with the older models. Is there any chance you guys are able to support my receiver in the future?
Thanks in advance,
Bart
I think the title explains it quite well. Do we need this information? I was thinking about getting some more information out of the XML that can be polled from the reciever... for example the <FriendlyName>
Hi Guys,
Is anyone able to provide a list of commands for controlling Denon devices by Siri.
This would be highly appreciated.
:)
I would love to see some Heos speakers in Homekit. Has anyone looked into the Node Heos api wrapper?
https://github.com/juliuscc/heos-api
https://www.npmjs.com/package/heos-api
This might help in getting some progress.
This used to work fine for a long time. Recently I get this error when I try to activate the denon receiver.
Any idea?
my config:
{
"accessory": "DenonMarantzAVR",
"name": "CaveDenon",
"ip": "192.168.0.234",
"type" : "Denon",
"defaultInput": "TUNER",
"defaultVolume": 35,
"minVolume": 10,
"maxVolume": 75
},
the error:
[2016-12-03 11:19:43] [CaveDenon] { [Error: connect EHOSTUNREACH 192.168.0.234:80]
code: 'EHOSTUNREACH',
errno: 'EHOSTUNREACH',
syscall: 'connect',
address: '192.168.0.234',
port: 80 }
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:11
throw new Error("This callback function has already been called by someone else; it can only be called one time.");
^
Error: This callback function has already been called by someone else; it can only be called one time.
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:11:13
at DenonAVRAccessory. (/usr/local/lib/node_modules/homebridge-denon/index.js:92:13)
at Request._callback (/usr/local/lib/node_modules/homebridge-denon/lib/denon.js:95:13)
at self.callback (/usr/local/lib/node_modules/homebridge-denon/node_modules/request/request.js:186:22)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at Request.onRequestError (/usr/local/lib/node_modules/homebridge-denon/node_modules/request/request.js:845:8)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at Socket.socketErrorListener (_http_client.js:256:9)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at emitErrorNT (net.js:1255:8)
at nextTickCallbackWith2Args (node.js:437:9)
at process._tickCallback (node.js:351:17)
Any way to read and control the current power state?
Having read the PR’s, I saw an option for a http call, { http://10.0.0.14:8080/goform/formiPhoneAppDirect.xml?PWSTANDBY }, this worked great in the browser, but I really want it as a switch in HomeBridge.
Please post like this:
Marantz NR1504
Power: ok
Volume: works. Volme % defined by min/max of plugin
Mute: not implemented
Power state can only be changed by calling "Switch Power on/off".
It seems that Siri makes the power characteristic the name...
When the Receiver gets unreachable (no Power) then the Plugin fails to update the status and freezes also all other Homebride Asserories.
When the Receiver is offline (No Network Connection) and Homebridge reboots the plug-in crashes Homebridge and Homebridge goes into a Reboot Loop.
[Denon] Error: connect EHOSTUNREACH x.x.x.x:23 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14) errno: 'EHOSTUNREACH', code: 'EHOSTUNREACH', syscall: 'connect', address: 'x.x.x.x', port: 23 }
[Denon]Cannot connect Denon]{ Error: connect EHOSTUNREACH x.x.x.x:23 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14) errno: 'EHOSTUNREACH', code: 'EHOSTUNREACH', syscall: 'connect', address: 'x.x.x.x', port: 23
Plugin Version 0.4.0
Hey guys,
I noticed that turning the amp on doesn't currently work if a default input is set (turning it off works fine though).
That's because this code isn't calling the respective function from the denon lib in this case:
DenonAVRAccessory.prototype.setPowerState = function (powerState, callback) {
if (powerState && this.defaultInput) {
this.denon.setInput(this.defaultInput, function (err) {
if (err) {
this.log('Error setting default input');
callback(err);
}
}.bind(this));
} else {
this.denon.setPowerState(powerState, function (err, state) {
if (err) {
this.log(err);
callback(err);
} else {
this.log('denon avr powered %s', state);
}
}.bind(this));
}
this.denon.setPowerState
should be called in any case.
Thanks for the great work on this plugin!
Is it possible, so swtich the Input via Voicecontrol?
Right now, I can just use it as a power control; nothing else.
Is it possible to add the possibility of choosing the source input ?
Good day,
I have installed the plugin and I get main zone and second zone in the homekit displayed. But if turn on main zone the second zone turns also on, and if turn off both zones go off. Turn second zone on means also turn on main zone and so on. It looks like both zones are paired together.
My receiver is Denon AVR-X3500H
Thank you
When will Zone 2 be available to use through this plugin?
Hey there!
Newbie here, i want to make my stoopid Marantz:[M-CR603] a little smart and make it turn on via Siri, i installed the plugin and tried entering everything i could but i get the error:
TypeError: this.config.accessories is not iterable at DenonMarantzAVRPlatform.discoverAVR (/homebridge/node_modules/homebridge-denon-v3/src/platform.ts:91:64) at HomebridgeAPI.<anonymous> (/homebridge/node_modules/homebridge-denon-v3/src/platform.ts:42:18) at HomebridgeAPI.emit (node:events:525:35) at HomebridgeAPI.signalFinished (/homebridge/node_modules/homebridge/src/api.ts:275:10) at Server.start (/homebridge/node_modules/homebridge/src/server.ts:190:14)
My configeration is:
{ "bridge": { "name": "Homebridge ****", "username": "Admin", "port": ******, "pin": "*********" }, "description": "just an example config", "platforms": [ { "platform": "MarantzAVR", "name": "Marantz Max", "host": "***", "maxVolume": 60, "defaultVolume": 20, "defaultInput": "AUX4", "secondZone": false } ], "platform": "denon-marantz-avr" }
Hope you can help me
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.