I use the binding with my SR6006 AV receiver bought in 2012. I have a spare Pi4 so I don’t mind testing with it without disturbing my home automation. However, I am still running OH 3.4.3 on it.
The new version is not compatible with 3.4, unfortunately. But with the help already offered I believe I was able to make some valid conclusions about the small protocol variations over the years, so the extended HTTP protocol support was already merged into 4.2.
Your receiver is an interesting model year (2011), though, so it would be nice if you would be able to test it with the latest 4.2 milestone version. Can you use the HTTP protocol with your receiver? I think that was introduced around 2012, but I’m not entirely sure.
With the 3.4 binding, I can use http communication on port 80. I also tried the 4 requests you mentioned. The post command does not work and replies “Form AppCommand.xml is not defined”. The three get commands do reply with xml data.
If useful I can supply the get responses.
Upgrading OH to 4.2 is on my todo list, but may take some time to complete another project I am working on with my test RPi.
Don’t know whether this is the right place to post. Since updating to OH 4.2.0 I noticed that the data for “Now playing” is not updated as before. I’m running my AVR-X4000 on internet radio. Unfortunately the playing stops every once in a while and the receive show the internet radio selection menu. Prior to OH 4.2.0 the “Now playing” fields instantly went blank in this cases. So I run a rule on this and select a preset (using the command field). From OH 4.2.0 the fields do not go blank anymore, so I have no idea how to let OH know that the internet radio needs to be restarted.
Can you create a GitHub issue for this? In that, please state if you are using Telnet or HTTP.
EDIT: In case you are having this issue with HTTP, can you please try this fix: org.openhab.binding.denonmarantz-4.2.1-SNAPSHOT.jar? To test it, please uninstall the binding from the UI and drop this file into you addons folder.
My receiver is a Denon AVR4520ci using HTTP and I have noticed similar behavior. Your 4.2.1 jar seems to clear the general#track field when the playlist ends, but the last played artist persists as general#artist field, even after shutting down the AVR4520ci. Not a huge problem for me as I can work around this, but thought you might be interested in my observation.
I’m sorry about not being more specific and perhaps even misleading when I said that my observation is similar. Using your latest 4.2.1 jar, I see no issues with artist, album, track when using Internet Radio. All are cleared when the Internet Radio is stopped or the receiver is placed in Standby. The issue I was referring to as similar, pertains to using a media player or NAS playlist.
When using a NAS Playlist or media player such as Squeeze, the album and track are cleared when the playlist stops or the receiver is placed in Standby/OFF. However, the artist is not cleared when the playlist ends or is stopped, nor does placing the Receiver in Standby clear the artist. Again this specifically pertains to a NAS/Squeeze playlist and not Internet Radio.
As far as I can remember this was not an issue in 4.1, but I may not have been paying attention. This is not a major issue for me and I don’t want to make it one for you. It was just an observation that I thought might be related. Thanks for all of your effort on this update.
This is the 4.1 version ported to 4.2. It might take two minutes to start (not sure) because of channel differences (e.g. UoM was added for the dB volume channel in 4.2). You don’t want to be running it in the long run, but it would be useful for me to know if the behavior you experience is introduced in 4.2 or not - for two reasons:
I would like to backport regression fixes to 4.2, so I need to know if it’s a regression or not.
I need to know where to look for the issue.
If you find time for doing this, please let me know the results. Thanks!
@laursen I had a chance to take a look at your ported version 4.1. I see the same behavior with 4.1 version as I do in the latest 4.2.1 version that you provided, so i don’t think OH 4.2 introduced any new issues or regressions. My recent observation/issue must have been there all along and I just did not notice. Further, Im now not even sure it is related to the Denon binding, but might be an issue with Squeeze. Closer examination of Denon 4.1 and 4.2.1 shows that in both versions, if I am playing just a music playlist from the the NAS using Squeeze then when I STOP the playlist or the playlist ends, the artist and track are cleared. However, if I am playing a radio station using Squeeze (Now my preferred source for Internet Radio), then only the track is cleared, and not the artist, when the playlist is stopped or ended.
Further, when the AVR is placed in Standby and a Squeeze Radio playlist is playing, only the track is cleared but not the artist. When resuming play of a radio playlist or selecting a new playlist, everything updates as expected. As I said, this not a huge problem for me and I can easily work around it in creating and using my UI. It’s just a bit of an anomaly that I apparently had not noticed before the Denon Internet Radio issues were raised in the earlier posts. Let me know if there is anything else I can help with.
Thanks for confirming this. I hope that this is behavior is different from the stock 4.2.0 version, which I would expect not being able to clear artist, album or track at all?
I would be happy to take a look at the remaining issue. I will need to reproduce it on either my old AVR-3808 which I conveniently have in my office for the time being, or on my new AVR-X4800H. However, it seems that I’m not able to get any artist/album/track information when playing Internet Radio or from a music server on that, maybe because it’s going through HEOS - not sure. I might have better luck with the old one.
When you are playing music “from the NAS using Squeeze”, what do you mean exactly?
I have an UnRaid Server that I use as a NAS for Music and Video streaming in the house. I have about 1500 music albums that I have collected over 55+ years, a lot of vinyl, and have digitized in lossless format for convenience. My music is stored in folders as Artist/Album/Song. This server provide whole house audio and video streaming. For music I principally use Logitech Media Server hosted as a docker container on the UnRaid server and interfaced to OH using a WebFrame widget tied to the ip address of the Logitech Media Server docker container. The Logitech Media Server has a nice web interface of its own that is easily accessed in this way. I also use this server to host docker containers for OH, MQTT, Zigbee2Mqtt, and others as well.
In the Logitech Media Server setup I have pointed it at my /music directory which then provides a nice interface for creating temporary and permanent music playlists and has a pretty high WAF. This is much better IMO, from UI perspective, than just using the Denon Network to access the folders directly on the NAS. I can easily add songs to a currently playing playlist, change the order of songs playing and generally control the overall listening experience. The Logitech Media Server sees the Denon AVR’s (AVR4520ci and X3000) as Squeeze Players and streams music through them. I can have different music playing on each Squeeze Player (Denon AVR) directly from the Logitech Media Server and my NAS.
Additionally, I can stream internet radio and Pandora (with a plugin) to the AVR’s and create favorites of both radio stations and music stored on the NAS. In the past i used KODI for music and still can/do on occasion, but this setup is just very straight forward and easy for my wife and family to use. I still use Kodi for Video/Movie playback from the NAS, however.
Hope this answers your question, but if not just ask again.
That’s a pretty impressive music collection. Thanks for sharing the details about your setup, it’s clear to me now.
I use Logitech Media Server as well (also running as Docker image on my NAS) with Squeezebox hardware (Receivers, Radios, Boom), but was not aware that you can target a Denon receiver directly for streaming. How did you set that up? I should be able to do the same and reproduce the issue then (and apparently also render one of my Squeezebox Receivers obsolete ).
Now you are testing an old man’s memory If I recall the AVR’s were automatically recognized under Manage Players, then I had the option to add them. Not sure that I did anything special. Maybe enter the AVR IP address. I also have a few Amazon Firesticks that were recognized as Squeeze Players as well, but I don’t use them for music. Let me dig through some notes to see if I can find something more specific which I can post.
I’m currently playing with the extension “UPnP/DLNA bridge”, does that ring a bell perhaps? I didn’t manage to generate the configuration file yet, but from the description of the extension, it looks like it might be the missing piece for me.
Just a short note for those in this thread that helped testing the Now Playing fix: You can now remove the manually installed JAR file and upgrade to openHAB 4.2.1 where the fix is included. Cc @mschlee, @John_Siemon