I am trying to get a Denon Home 150 speaker to just play an mp3 in the media area. I can stop, start, volume up and down via HEOS integration, which is good, but pointing it to play an mp3 seems to throw an authentication error:
Login attempt failed
Login attempt or request with invalid authentication from Denon-Home-150-NV (192.rest.of.ip). See the log for details.
LOG IS:
Login attempt or request with invalid authentication from Denon-Home-150-NV (192.rest.of.ip). Requested URL: ‘/media/local/MahnaMahna.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIxNzczNWE0ODFiODc0MGU4YmI0OTM0ZjVkYzcwYTI2MCIsInBhdGgiOiIvbWVkaWEvbG9jYWwvTWFobmFNYWhuYS5tcDMiLCJwYXJhbXMiOltdLCJpYXQiOjE3NDI4MzQxOTUsImV4cCI6MTc0M’. (AvegaMediaServer/2.0 Linux/2.6)
Login attempt or request with invalid authentication from Denon-Home-150-NV (192.rest.of.ip). Requested URL: ‘/media/local/MahnaMahna.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIxNzczNWE0ODFiODc0MGU4YmI0OTM0ZjVkYzcwYTI2MCIsInBhdGgiOiIvbWVkaWEvbG9jYWwvTWFobmFNYWhuYS5tcDMiLCJwYXJhbXMiOltdLCJpYXQiOjE3NDI4MzQyMTAsImV4cCI6MTc0M’. (AvegaMediaServer/2.0 Linux/2.6).
YAML syntax is:
homeassistant:
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 192.rest.of.ip #Denon Home 150 speaker
Seems to spit out the same error whether that trusted_network is included in the config file or not.
I’ve also tried moving the .mp3 under www - but that throws a mime type error.
Sure would be fun to use those audio file snippets as notifications in automations…
Also, I have a Sonos speak that doesn’t have that problem, but its not good on wireless. So I thought I would give this a shot.
Thanks for anyone that can help before I send the Denon back!
HEOS probably requires DLNA/uPnP for this kind of thing. So, have a DLNA server spun up.
Even with that - requiring it to play a specific file (mp3) adds that file to the queue in HEOS for that speaker and does not clear it out. So you end up getting a long HEOS queue of the sound you have to clear somehow. There doesn’t seem to be an easy way to clear a Denon HEOS queue via HA that I can find. Enjoy the repeating sound… everytime you play it it repeats one more time than the last time until you clear it.
Edit: What is “192.rest.of.ip”? I’m pretty sure “trusted network” means… well… network, not device. You would be specifying a range of addresses, not just one - in practical terms the range in the example from the docs would be 192.168.0.1 to 192.168.0.254
Another Edit: Could you also clarify how you are trying to play the mp3 file (not sure what “in the media area” means)? As I understand it, the HEOS integration should have created a media player entity.
rest of IP is the actual IP of the Denon on my network. Above is an example. I saw several examples where you could just use a specific IP instead of calling a range.
For the media, I mean that I have an .mp3 of a voice saying “Someone is at the front door” and uploaded that to HA’s media. For Sonos, this works, I can ask the sonos to play it on automation (or button press) easily.
Unfortunately, Denon doesn’t seem to be authorized to the media library in HA. Or at least my version of HA. Putting the mp3 in the www folder under config (which has looser authorization via HA) did allow access to it, but the Denon HEOS complained there was no associative MIME info, so it didn’t play it.
I could however, put the mp3 on/in and DLNA server and point to that DLNA address, and it works. But HEOS does not clear those out of the speaker’s queue even after playing it.