home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.9k stars 30.97k forks source link

UpnpConnectionError for SamsungTV #76513

Closed Anto79-ops closed 2 years ago

Anto79-ops commented 2 years ago

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/samsungtv/

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

probot-home-assistant[bot] commented 2 years ago

dlna_dmr documentation dlna_dmr source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

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)

Anto79-ops commented 2 years ago

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
chishm commented 2 years ago

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".

Anto79-ops commented 2 years ago

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?

StevenLooman commented 2 years ago

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

probot-home-assistant[bot] commented 2 years ago

samsungtv documentation samsungtv source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

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)

Anto79-ops commented 2 years ago

@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