Closed raman325 closed 2 years ago
dlna_dms documentation dlna_dms source (message by IssueLinks)
Hey there @chishm, mind taking a look at this issue as it has been labeled with an integration (dlna_dms
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
Thank you for the bug report. To get some additional debugging information, could you please add the following logging settings to your configuration.yaml
and trying again?
logger:
default: info
logs:
homeassistant.components.dlna_dms: debug
homeassistant.components.dlna_dms.config_flow: info
async_upnp_client: info
async_upnp_client.profiles.profile: debug
async_upnp_client.profiles.dlna: debug
Saw the same issue, also with HDHomeRun. Hopefully this log will help.
Ah, it looks like dlna_dms
's default sort criteria aren't supported by your device. I'll work up a fix that checks what the device supports before trying to ask it to sort results.
Could you please try using the dlna_dms
component from my dlna_dms-fix_sort_criteria branch?
If it works for you, I'll add some proper unit tests and put in a pull request. If not, I'll try to solve this in another way.
I will do this later today and report back, thanks for the quick response!
Could you please try using the
dlna_dms
component from my dlna_dms-fix_sort_criteria branch?If it works for you, I'll add some proper unit tests and put in a pull request. If not, I'll try to solve this in another way.
Just seen this sorry.
Quick test seems OK.
And after clicking into Channels
The stream doesn't play but I haven't got logging turned on at the mo to take a look.
Hi @uvjim, thanks for confirming the first fix is working. I'll submit a PR within the next few days.
As for the stream not playing, there's some hints in a Kodi forum post that might apply here. What device are you trying to stream to? Does it work from your web browser, and if not, can you please collect some request logs from your browser's network debugging tools? I'm interested in seeing what URL is requested, and if the request has a Range header.
I'll take a look later. I'm pretty sure it's my issue at the moment as it's only a minimal configuration of the beta.
I was trying to play in the browser and I'm pretty sure my config has nothing ffmpeg related enabled so will try that later just in case.
It's a SiliconDust HDHomerun device. I'll test the streams directly later as well and trace the URL to see what happens.
@chishm. RE: playback - I should probably open a separate issue for that but here's some info and I'll get a new issue raised if you want.
Using the browser debugging tools I see that the requested URL is correct (see screenshot)
This URL opens correctly in VLC and when pasted into the address bar forces the browser to constantly download the file (no surprise as it is a stream).
I see nothing in the debugging tools on either Firefox or Edge where a call is made to that URL so I can't tell what the request looks like. Using Wireshark I also see no traffic to that address.
Using Wireshark to trace the request from VLC, I notice that the following is in the HTTP headers...
Is there a log that I can turn on in HASS to get the URL requested by the player in the media browser?
@uvjim please open a new issue.
@chishm the release is tomorrow, could we just include https://github.com/chishm/core/commit/92d159fb379c98e752209a3787f1438ace01019a ?
@uvjim please open a new issue.
Will do.
@balloob: Turns out there was a bug in my hacked together test code. Adding unit tests found it and it's all sorted (no pun intended). PR incoming.
The problem
I added a discovered device, which in this case is an HDHomeRun. When I try to browse DLNA Servers in the media section, I just see the following text in red:
Server failure: UpnpActionResponseError('Error during async_call(), status: 500, upnp error: 709 ( Unsupported or invalid sort criteria error)')
What version of Home Assistant Core has the issue?
2022.3.0b0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
DLNA Digital Media Server
Link to integration documentation on our website
https://rc.home-assistant.io/integrations/dlna_dms/
Diagnostics information
n/A
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response