Closed figorr closed 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)
samsungtv documentation samsungtv source (message by IssueLinks)
I wonder if maybe the TV starts responding (STATE = ON) before it's Upnp functionnality is ready.
Could you please enable logging, restart and provide full logs?
logger:
default: info
logs:
homeassistant.components.samsungtv: debug
samsungtvws: debug
Thank you for your quick answer.
Before seeing your answer I restarted the Samsung Smart TV integration and all the warnings & errors suddenly stopped.
Then I saw your answer and I applied the changes in the logger and restarted Home Assistant. No errors & warnings are being shown after the restart. I turned off the Samsung TV and then turned on it again ... but no errors are being shown.
The full log from the file "home-assistant.log" after the restart is:
If the error message is not present, then we need to wait for the message to re-appear, and then you can post the new log file.
Thanks, could you please add your diagnostics for the TV?
It seems strange that Upnp is failing, as it should only get enabled if a UPNP url was added to the integration.
I have created a PR #69984 but maybe there is a bigger root cause that still needs investigating.
Do you mean the diagnostics created by the integration?
This is the file.
config_entry-samsungtv-5b39d3e98a9004e014e6c544522dd065.json.txt
Thanks.
So it seems that Upnp was detected previously, but for some reason your TV is now rejecting the connection.
{
"ssdp_rendering_control_location": "http://192.168.2.64:7676/smp_14_",
"ssdp_main_tv_agent_location": "http://192.168.2.64:7676/smp_2_"
}
I have no idea why, but in any case it shouldn't be blocking the update so the PR is still valid.
No idea why it is rejecting the connection. The errors started to appear with the 2022.4,2 update. No errors with the 2022.4.1
I have a multimedia card and I can see the entity is shown as offline (Samsung TV SALON, multimedia card is grey). But the TV is ON.
If I press the ON button nothing happens. The TV is still offline ("Apagado").
Pictures 01 & 02
If I restart the SAMSUNG integration ... then the multimedia card is blue again and the entity is being shown as Online. And no more errors appeared in the log. I thing the restart of the integration it is shown at line 5465 of the log home-assistant.log
Pictures 03 & 04
Log file:
The problem
Several warnings and errors are shown in the log regarding to the Samsung integration when the Samsung TV is turned on.
What version of Home Assistant Core has the issue?
2022.4.3
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 Smart TV
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?
Additional information
No response