core icon indicating copy to clipboard operation
core copied to clipboard

UpnpConnectionError for SamsungTV

Open Anto79-ops opened this issue 3 years ago • 3 comments
trafficstars

The problem

hi!

Setup my Samsung TVs, but one of them keeps flooding the logs with this error. Thing is, the TV in question (192.168.1.120) works well via HA in the SamsungTV integration, but the logs getting flooded with the message below, sometimes reaching 1000 occurrences over a day or 2.

Logger: async_upnp_client.profiles.profile
Source: components/samsungtv/media_player.py:316
First occurred: August 8, 2022 at 11:33:13 PM (111 occurrences)
Last logged: 7:29:28 AM

Failed subscribing to service: UpnpConnectionError('ClientConnectorError(ConnectionKey(host=\'192.168.1.120\', port=9197, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=-5460322850416257934), ConnectionRefusedError(111, "Connect call failed (\'192.168.1.120\', 9197)"))', None)
Failed subscribing to service: UpnpConnectionError("UpnpConnectionTimeoutError('TimeoutError()', None)", None)

By the way, I apologize if I mis-labelled this with the wrong integration.

What version of Home Assistant Core has the issue?

2022.8.2

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

Samsung or DLNA servers media and renderer?

Link to integration documentation on our website

https://www.home-assistant.io/integrations/dlna_dmr/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Anto79-ops avatar Aug 09 '22 14:08 Anto79-ops

Hey there @stevenlooman, @chishm, mind taking a look at this issue as it has been labeled with an integration (dlna_dmr) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

this could be related, as they also show up:

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:514
First occurred: 9:36:45 AM (3 occurrences)
Last logged: 9:37:25 AM

Update of media_player.samsung_q7_series_65 is taking over 10 seconds
Logger: homeassistant.components.media_player
Source: helpers/entity_platform.py:778
Integration: Media player (documentation, issues)
First occurred: 9:36:45 AM (3 occurrences)
Last logged: 9:37:25 AM

Updating samsungtv media_player took longer than the scheduled update interval 0:00:10

Anto79-ops avatar Aug 09 '22 15:08 Anto79-ops

Hi,

It looks like this is caused by the samsungtv integration, based on this line from your log: "Source: components/samsungtv/media_player.py:316".

chishm avatar Aug 10 '22 13:08 chishm

thanks @chishm ! I updated the issue to point towards samsungtv, hopefully the bot redirects, now

EDIT: Actually, it didn't. how do I edit the label of this issue to point to samsungtv?

Anto79-ops avatar Aug 10 '22 14:08 Anto79-ops

On the top right, section Labels, press the cog-icon.

StevenLooman avatar Aug 10 '22 17:08 StevenLooman

Hey there @chemelli74, @epenet, mind taking a look at this issue as it has been labeled with an integration (samsungtv) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

@StevenLooman thanks for updating the label! FYI. I have no such cogwheel near the labels, probably you have some tier github account compared to mine.

Cheers

Anto79-ops avatar Aug 10 '22 18:08 Anto79-ops