Denon AVR control?


#41

@mike.maxwell so, what do you think...the future maybe?


#42

Get in line :stuck_out_tongue_winking_eye:

Onkyo app: Zone 2 support?


#43

Ohh that's actually great news! Basically it's eventually coming...and should be here prior to 2020...


#44

The built-in Denon device support has been working great, but there are a lot of features that are missing. Are there any plans to add additional capabilities to the device handler? What would be great is if the device handler had the basic options with the ability to send custom commands from the full API.


#45

I'm repeatedly getting "network connection refused" after my Marantz 7010 turns on.
Is there a limit to how frequently you can issue a command?
I'm just trying to give names to 3 inputs, but it doesn't want to save them or accept them. It will add them when I change inputs on the receiver, but can't do anything in the Device setup.

dev:1002019-03-22 10:48:10.327 pm errortelnet connect error:Connection refused (Connection refused)
dev:1002019-03-22 10:48:10.301 pm debuginitialize...
dev:1002019-03-22 10:48:10.293 pm warndescription logging is: true
dev:1002019-03-22 10:48:10.282 pm warndebug logging is: false
dev:1002019-03-22 10:48:10.281 pm infoupdated...
dev:1002019-03-22 10:46:45.188 pm infoMarantz7010 volume volume is 58
dev:1002019-03-22 10:46:45.084 pm infoMarantz7010 is unmuted
dev:1002019-03-22 10:46:44.946 pm infoMarantz7010 is on
dev:1002019-03-22 10:46:44.899 pm infoMarantz7010 input is Input 3
dev:1002019-03-22 10:46:44.663 pm debuginitialize...
dev:1002019-03-22 10:46:44.657 pm warndescription logging is: true
dev:1002019-03-22 10:46:44.643 pm warndebug logging is: false
dev:1002019-03-22 10:46:44.642 pm infoupdated...
dev:1002019-03-22 10:46:12.667 pm errortelnet connect error:Connection refused (Connection refused)
dev:1002019-03-22 10:46:12.637 pm debuginitialize...
dev:1002019-03-22 10:46:12.596 pm warndescription logging is: true
dev:1002019-03-22 10:46:12.595 pm warndebug logging is: false
dev:1002019-03-22 10:46:12.593 pm infoupdated...
dev:1002019-03-22 10:44:41.031 pm infoMarantz7010 volume volume is 58
dev:1002019-03-22 10:44:40.944 pm infoMarantz7010 is unmuted
dev:1002019-03-22 10:44:40.798 pm infoMarantz7010 is on
dev:1002019-03-22 10:44:40.745 pm infoMarantz7010 input is Input 3
dev:1002019-03-22 10:44:40.537 pm debuginitialize...
dev:1002019-03-22 10:44:40.518 pm warndescription logging is: true
dev:1002019-03-22 10:44:40.517 pm warndebug logging is: false
dev:1002019-03-22 10:44:40.515 pm infoupdated...
dev:1002019-03-22 10:41:17.034 pm errortelnet connect error:Connection refused (Connection refused)
dev:1002019-03-22 10:41:17.013 pm debuginitialize...
dev:1002019-03-22 10:41:17.007 pm warndescription logging is: true
dev:1002019-03-22 10:41:17.005 pm warndebug logging is: false
dev:1002019-03-22 10:41:16.995 pm infoupdated...
dev:1002019-03-22 10:41:08.441 pm infoMarantz7010 volume volume is 58
dev:1002019-03-22 10:41:08.391 pm infoMarantz7010 is unmuted
dev:1002019-03-22 10:41:08.213 pm infoMarantz7010 is on
dev:1002019-03-22 10:41:08.035 pm infoMarantz7010 input is Input 3
dev:1002019-03-22 10:40:50.617 pm infoMarantz7010 volume volume is 58
dev:1002019-03-22 10:40:50.543 pm infoMarantz7010 is unmuted
dev:1002019-03-22 10:40:50.374 pm infoMarantz7010 is on
dev:1002019-03-22 10:40:50.272 pm infoMarantz7010 input is Input 3
dev:1002019-03-22 10:40:40.883 pm infoMarantz7010 input is Input 3
dev:1002019-03-22 10:40:40.881 pm debugnew input added- id:3, name:Input 3, code:MPLAY, inputSource:[3:[name:Input 3, code:MPLAY]]
dev:1002019-03-22 10:40:40.879 pm debugaddMediaInput:MPLAY
dev:1002019-03-22 10:40:18.565 pm infoMarantz7010 volume volume is 58
dev:1002019-03-22 10:40:18.417 pm infoMarantz7010 is unmuted
dev:1002019-03-22 10:40:18.199 pm infoMarantz7010 is on
dev:1002019-03-22 10:40:18.118 pm infoMarantz7010 input is Input 1
dev:1002019-03-22 10:40:17.876 pm debuginitialize...
dev:1002019-03-22 10:40:17.869 pm warndescription logging is: true
dev:1002019-03-22 10:40:17.867 pm warndebug logging is: false
dev:1002019-03-22 10:40:17.866 pm infoupdated...
dev:1002019-03-22 10:38:49.430 pm errortelnet connect error:Connection refused (Connection refused)
dev:1002019-03-22 10:38:49.392 pm debuginitialize...
dev:1002019-03-22 10:38:49.384 pm warndescription logging is: true
dev:1002019-03-22 10:38:49.364 pm warndebug logging is: false
dev:1002019-03-22 10:38:49.363 pm infoupdated...
dev:1002019-03-22 10:38:42.421 pm infoMarantz7010 volume volume is 58
dev:1002019-03-22 10:38:42.245 pm infoMarantz7010 is unmuted
dev:1002019-03-22 10:38:42.089 pm infoMarantz7010 is on
dev:1002019-03-22 10:38:42.027 pm infoMarantz7010 input is Input 1
dev:1002019-03-22 10:38:31.195 pm infoMarantz7010 volume volume is 58
dev:1002019-03-22 10:38:31.051 pm infoMarantz7010 is unmuted
dev:1002019-03-22 10:38:30.867 pm infoMarantz7010 is on
dev:1002019-03-22 10:38:30.786 pm infoMarantz7010 input is Input 1
dev:1002019-03-22 10:38:30.613 pm debuginitialize...
dev:1002019-03-22 10:38:30.606 pm warndescription logging is: true
dev:1002019-03-22 10:38:30.604 pm warndebug logging is: false
dev:1002019-03-22 10:38:30.591 pm infoupdated...
dev:1002019-03-22 10:37:53.942 pm errortelnet connect error:Connection refused (Connection refused)
dev:1002019-03-22 10:37:53.895 pm debuginitialize...
dev:1002019-03-22 10:37:53.887 pm warndescription logging is: true
dev:1002019-03-22 10:37:53.886 pm warndebug logging is: false
dev:1002019-03-22 10:37:53.884 pm infoupdated...
dev:1002019-03-22 10:37:21.153 pm infoMarantz7010 volume volume is 58
dev:1002019-03-22 10:37:21.043 pm infoMarantz7010 is unmuted
dev:1002019-03-22 10:37:20.877 pm infoMarantz7010 is on
dev:1002019-03-22 10:37:20.815 pm infoMarantz7010 input is Input 2
dev:1002019-03-22 10:37:02.897 pm infoMarantz7010 input is Input 2
dev:1002019-03-22 10:37:02.895 pm debugnew input added- id:2, name:Input 2, code:BD, inputSource:[2:[name:Input 2, code:BD]]
dev:1002019-03-22 10:37:02.893 pm debugaddMediaInput:BD
dev:1002019-03-22 10:36:48.494 pm infoMarantz7010 is on
dev:1002019-03-22 10:36:37.330 pm infoMarantz7010 is on
dev:1002019-03-22 10:36:20.262 pm infoMarantz7010 volume volume is 58
dev:1002019-03-22 10:36:20.089 pm infoMarantz7010 is unmuted
dev:1002019-03-22 10:36:20.003 pm infoMarantz7010 is off
dev:1002019-03-22 10:36:19.924 pm infoMarantz7010 input is Input 1
dev:1002019-03-22 10:36:19.907 pm debugnew input added- id:1, name:Input 1, code:SAT/CBL, inputSource:[1:[name:Input 1, code:SAT/CBL]]
dev:1002019-03-22 10:36:19.905 pm debugaddMediaInput:SAT/CBL
dev:1002019-03-22 10:36:19.335 pm debuginitialize...
dev:1002019-03-22 10:36:19.321 pm warndescription logging is: true
dev:1002019-03-22 10:36:19.307 pm warndebug logging is: false
dev:1002019-03-22 10:36:19.306 pm infoupdated...


#46

Are you clicking the initialize button? You only need to do this once and shouldn’t have to click it again unless power is cut to your receiver. Denon/Marantz receivers only allow 1 telnet connection at a time so clicking initialize will cause problems.

To add inputs you need to do that in the receiver itself or via remote. Cycle through all the inputs you want to show up first and then go to HE and edit the names would be my recommendation.


#47

Thanks @ritchierich. Will give that a shot. Going to remove the driver and device, then re-add, and hopefully get a fresh start.

I'm my own worst enemy.


#48

Doesn’t work with my Heos AVR/Heos Link, however what I can do is:

nc 1255 <<<"heos://player/get_players" | jq '.'

Commands via HEOS “CLI” spec: @ m.us.marantz.com/DocumentMaster/US/HEOS_CLI_ProtocolSpecification-Version-1.11-02072018.pdf


#49

So I just set this up and it works fine.

Question: Where can I find the device in Rule Machine (RM)? It’s not under speakers and I cannot create a custom action because there is no attribute for volume/input etc...


#50

None of the supported AVR's have made their way into RM yet. I'm hoping they will eventually. Maybe RM4.1, @bravenel? :slight_smile:


#51

You can use Custom Attribute and Custom Action.


#52

Yes. Figured that out! You select a Custom Action --> Switch which exposes the DenonAVR, then you can select any command you want (ie. SetVolume).

@bravenel - it does seem that in order to consistently have the Denon AVR respond to my commands I must execute the initialize() command prior to any other command (ie. initialize() then setVolume(50). Might be my network on the fact that I use a Marantz AVR, but thought I would let you know.

Thank you


#53

I don't know anything about this driver or how it should work.


#54

The only custom actions I have for mine are off, on, refresh and sync. No volume up, volume down, mute, unmute, input change, etc. Those are all options in the Denon driver though.


#55

Although I didn't have to execute an initialize command prior to all commands I had a similar issue where I had to execute initialize daily. The problem turned out be be a setting as explained here.


#56

Nevermind, I figured it out. I was on a secondary hub and not on the hub where the main driver lives.


#57

Looks like Zone2 support could be configured by adding"&ZoneName=ZONE2" to the existing URL request.

Any chance we can look at the source for this driver?


#58

Unfortunately this won’t work. The Hubitat driver is telnet based so there are no URLs. @mike.maxwell has mentioned in other threads that he will eventually look into adding zone 2+ support to the stock AVR drivers.


#59

Adding zone2 to the current driver is not difficult. The telnet API is available and easy to use. The thing that is difficult is keeping the thing in sync. On my own, I have added zone 2. It works, but making the audio output behave has proven frustrating. For example, I turn on both zone and want both zones playing the same input; depending on if I also choose “All zone stereo”, then audio will only stimulate one set of speakers. Additionally, with multiple zones, timing is everything. Example: if you set the audio mode too soon (I.e. zone 2 is not fully powered up), the command is ignored. Therefore, you need to wait for feedback before continuing. What happens however if you don’t ever receive feedback?

I have tried a state machine with some success, but have not gotten anything 100%. I have also tried periodic polling. The sheer number of (useless) messages that end up being sent is awful. Certainly not worth publishing...

As a side note; many of the newer Denon AVR models do not support the web interface


#60

ahh... good to know. Was trying to engineer a way to add a separate device for each zone so I could have a dashboard with volume sliders that would allow me to control volume by zone when playing synced output through chromecast audio. Tried adding the denon DTH from Smartthings but it barked about syntax. Back to the drawing board!