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
74.09k stars 31.1k forks source link

Panasonic TV status constantly becomes unavailable #118604

Closed Depechie closed 5 months ago

Depechie commented 6 months ago

The problem

The integration works fully, but the entity will constantly change its status. Ranging from off ( or on depending on the actual state ) to unavailable and back. Always in a range off 20 or so seconds.

The problem lies in the fact that when I try to initiate a command during the unavailable status, the device will not respond. The only log line of interest is the following

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1263
First occurred: May 31, 2024 at 5:56:49 PM (104 occurrences)
Last logged: 2:12:12 PM

Update of media_player.panasonic_viera_tv is taking over 10 seconds

Not sure when this started to happen, but it seems that I did not have this in the beginning. The device is constantly available through network ping even though Home Assistant reports unavailable. Also my Unifi controller does not show wifi drops during the time.

Screenshot 2024-06-01 at 14 27 15

What version of Home Assistant Core has the issue?

core-2024.5.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Panasonic Viera

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1263
First occurred: May 31, 2024 at 5:56:49 PM (104 occurrences)
Last logged: 2:12:12 PM

Update of media_player.panasonic_viera_tv is taking over 10 seconds

Additional information

Some debug log lines, each time I see the [homeassistant.components.panasonic_viera] An error occurred: <urlopen error timed out I have the unavailable log in Home Assistant.

2024-06-03 22:29:01.608 DEBUG (SyncWorker_51) [panasonic_viera] Sending to http://192.168.1.72:55000/dmr/control_0:
{'Host': '192.168.1.72:55000', 'Content-Length': 324, 'Content-Type': 'text/xml; charset=utf-8', 'SOAPAction': '"urn:schemas-upnp-org:service:RenderingControl:1#GetMute"'}
b'<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetMute xmlns:m="urn:schemas-upnp-org:service:RenderingControl:1"><InstanceID>0</InstanceID><Channel>Master</Channel></m:GetMute></s:Body></s:Envelope>'
2024-06-03 22:29:06.616 DEBUG (MainThread) [homeassistant.components.panasonic_viera] An error occurred: <urlopen error timed out>
2024-06-03 22:29:06.618 DEBUG (SyncWorker_21) [panasonic_viera] Sending to http://192.168.1.72:55000/nrc/control_0:
{'Host': '192.168.1.72:55000', 'Content-Length': 525, 'Content-Type': 'text/xml; charset=utf-8', 'SOAPAction': '"urn:panasonic-com:service:p00NetworkControl:1#X_GetEncryptSessionId"'}
b'<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_GetEncryptSessionId xmlns:u="urn:panasonic-com:service:p00NetworkControl:1"><X_ApplicationId>AfJlsBxpemLTXw==</X_ApplicationId><X_EncInfo>REDACTED</X_EncInfo></u:X_GetEncryptSessionId></s:Body></s:Envelope>'
2024-06-03 22:29:06.630 DEBUG (SyncWorker_21) [panasonic_viera] Response: b'<?xml version="1.0" encoding="utf-8"?>\n<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">\n <s:Body>\n  <u:X_GetEncryptSessionIdResponse xmlns:u="urn:panasonic-com:service:p00NetworkControl:1">\n   <X_EncResult>REDACTED</X_EncResult>\n  </u:X_GetEncryptSessionIdResponse>\n </s:Body>\n</s:Envelope>\n'
2024-06-03 22:29:11.609 DEBUG (SyncWorker_34) [panasonic_viera] Sending to http://192.168.1.72:55000/dmr/control_0:
{'Host': '192.168.1.72:55000', 'Content-Length': 324, 'Content-Type': 'text/xml; charset=utf-8', 'SOAPAction': '"urn:schemas-upnp-org:service:RenderingControl:1#GetMute"'}
b'<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetMute xmlns:m="urn:schemas-upnp-org:service:RenderingControl:1"><InstanceID>0</InstanceID><Channel>Master</Channel></m:GetMute></s:Body></s:Envelope>'
2024-06-03 22:29:11.616 DEBUG (SyncWorker_34) [panasonic_viera] Response: b'<?xml version="1.0" encoding="utf-8"?>\n<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">\n <s:Body>\n  <u:GetMuteResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1">\n   <CurrentMute>0</CurrentMute>\n  </u:GetMuteResponse>\n </s:Body>\n</s:Envelope>\n'
2024-06-03 22:29:11.617 DEBUG (SyncWorker_34) [panasonic_viera] Sending to http://192.168.1.72:55000/dmr/control_0:
{'Host': '192.168.1.72:55000', 'Content-Length': 328, 'Content-Type': 'text/xml; charset=utf-8', 'SOAPAction': '"urn:schemas-upnp-org:service:RenderingControl:1#GetVolume"'}
b'<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetVolume xmlns:m="urn:schemas-upnp-org:service:RenderingControl:1"><InstanceID>0</InstanceID><Channel>Master</Channel></m:GetVolume></s:Body></s:Envelope>'
2024-06-03 22:29:11.625 DEBUG (SyncWorker_34) [panasonic_viera] Response: b'<?xml version="1.0" encoding="utf-8"?>\n<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">\n <s:Body>\n  <u:GetVolumeResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1">\n   <CurrentVolume>0</CurrentVolume>\n  </u:GetVolumeResponse>\n </s:Body>\n</s:Envelope>\n'

No response

home-assistant[bot] commented 6 months ago

panasonic_viera documentation panasonic_viera source

Depechie commented 5 months ago

I did some network tweaks in my Unifi controller and now the problem has been fixed.