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
70.07k stars 29.14k forks source link

Denon AVR firmware update ruined HA integration a little #43229

Closed BebeMischa closed 3 years ago

BebeMischa commented 3 years ago

Denon released a firmware update last week. Before that i had no any issues with the integration. Everything worked wel.

After this firmware update I do have minor issues. The Power ON/OFF buttons of Main zone and Zone 2 are not working anymore. So, i still can do everything with the AVR, except Power ON/OFF function.

The state of the receiver is also no more reported, so my automatisations hanging on that state do not work anymore (Denon ON -> Lamps living room ON, Denon OFF -> Lamps living room OFF)

Running latest Home Assistant 0.117.6, all set on a wired LAN with DHCP-fixed IP's, firmware in Denon AVR-X3600H is 2100-5224-2161-3085

Last worked on the same release of HA, 0.117.6, but before the firmware update from Denon

Removing the integration and installing it again did not help. Restart of the whole HA system server did not help.

So, I'm almost sure, that there have been minor changes in the firmware, which needs to be addopted in HA.

Can someone please have a look on this? I'm ready to dig for some more info, if asked.

Thank's in advance...

Version info:

arch x86_64
chassis desktop
dev false
docker true
docker_version 19.03.13
hassio true
host_os Ubuntu 20.04.1 LTS
installation_type Home Assistant Supervised
os_name Linux
os_version 5.4.0-53-generic
python_version 3.8.6
supervisor 2020.11.0
timezone UTC
version 0.117.6
virtualenv false

Configuration.yaml:

`# Configure a default setup of Home Assistant (frontend, api, etc) default_config:

Text to speech

tts:

group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml

P2000

sensor:

TOON integration

toon: client_id: XXXXXXXXXXXXXXXXXXXXX client_secret: XXXXXXXXXXXXXXX

MiLight integration

light: platform: limitlessled bridges:

DLNA

discovery: enable:

Sonoff

sonoff: username: XXXXX password: XXXXX reload: always rfbridge: Door Sensor 1: name: Deur Woning device_class: door timeout: 5 Door Sensor 2: name: Deur Terras device_class: door timeout: 5 Door Sensor 3: name: Deur Schuur device_class: door timeout: 5

`

Log Core:

2020-11-14 20:37:56 ERROR (SyncWorker_53) [DenonAVR] Missing status information from XML of Main for: Power, InputFuncSelect, Mute, MasterVolume 2020-11-14 20:38:00 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.openhome_a0980529_e79e_3f80_ffff_fffffccddd78 fails Traceback (most recent call last): File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1700, in close self.parser.Parse("", 1) # end of data xml.parsers.expat.ExpatError: no element found: line 1, column 0 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update raise exc File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, self.kwargs) File "/usr/src/homeassistant/homeassistant/components/openhome/media_player.py", line 86, in update self._in_standby = self._device.IsInStandby() File "/usr/local/lib/python3.8/site-packages/openhomedevice/Device.py", line 70, in IsInStandby standbyStateXml = etree.fromstring(standbyState) File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1321, in XML return parser.close() File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1702, in close self._raiseerror(v) File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1602, in _raiseerror raise err File "", line None xml.etree.ElementTree.ParseError: no element found: line 1, column 0 2020-11-14 20:38:00 WARNING (MainThread) [homeassistant.components.media_player] Updating denonavr media_player took longer than the scheduled update interval 0:00:10 2020-11-14 20:38:01 ERROR (SyncWorker_51) [DenonAVR] Host 192.168.178.61 returned HTTP status code 403 to POST command at end point /goform/AppCommand.xml 2020-11-14 20:38:01 ERROR (SyncWorker_51) [DenonAVR] Getting renamed and deleted sources failed. 2020-11-14 20:38:01 ERROR (SyncWorker_51) [DenonAVR] Host 192.168.178.61 returned HTTP status code 403 to GET request at end point /goform/formZone2_Zone2XmlStatus.xml 2020-11-14 20:38:01 ERROR (ThreadPoolExecutor-3279_0) [DenonAVR] Host 192.168.178.61 returned HTTP status code 403 to GET request at end point /goform/formZone2_Zone2XmlStatus.xml 2020-11-14 20:38:01 ERROR (SyncWorker_51) [DenonAVR] Missing status information from XML of Zone2 for: Power, InputFuncSelect, Mute, MasterVolume 2020-11-14 20:38:10 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.openhome_a0980529_e79e_3f80_ffff_fffffccddd78 fails Traceback (most recent call last): File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1700, in close self.parser.Parse("", 1) # end of data xml.parsers.expat.ExpatError: no element found: line 1, column 0 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update raise exc File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/usr/src/homeassistant/homeassistant/components/openhome/media_player.py", line 86, in update self._in_standby = self._device.IsInStandby() File "/usr/local/lib/python3.8/site-packages/openhomedevice/Device.py", line 70, in IsInStandby standbyStateXml = etree.fromstring(standbyState) File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1321, in XML return parser.close() File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1702, in close self._raiseerror(v) File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1602, in _raiseerror raise err File "", line None xml.etree.ElementTree.ParseError: no element found: line 1, column 0 2020-11-14 20:38:16 ERROR (SyncWorker_11) [DenonAVR] Host 192.168.178.61 returned HTTP status code 403 to POST command at end point /goform/AppCommand.xml 2020-11-14 20:38:16 ERROR (SyncWorker_11) [DenonAVR] Getting renamed and deleted sources failed. 2020-11-14 20:38:16 ERROR (SyncWorker_11) [DenonAVR] Host 192.168.178.61 returned HTTP status code 403 to GET request at end point /goform/formMainZone_MainZoneXml.xml 2020-11-14 20:38:16 ERROR (ThreadPoolExecutor-3281_0) [DenonAVR] Host 192.168.178.61 returned HTTP status code 403 to GET request at end point /goform/formMainZone_MainZoneXmlStatus.xml 2020-11-14 20:38:16 ERROR (ThreadPoolExecutor-3281_1) [DenonAVR] Host 192.168.178.61 returned HTTP status code 403 to GET request at end point /goform/formMainZone_MainZoneXml.xml 2020-11-14 20:38:16 ERROR (SyncWorker_11) [DenonAVR] Missing status information from XML of Main for: Power, InputFuncSelect, Mute, MasterVolume 2020-11-14 20:38:20 WARNING (MainThread) [homeassistant.components.media_player] Updating denonavr media_player took longer than the scheduled update interval 0:00:10 2020-11-14 20:38:21 ERROR (SyncWorker_54) [DenonAVR] Host 192.168.178.61 returned HTTP status code 403 to POST command at end point /goform/AppCommand.xml 2020-11-14 20:38:21 ERROR (SyncWorker_54) [DenonAVR] Getting renamed and deleted sources failed. 2020-11-14 20:38:22 ERROR (SyncWorker_54) [DenonAVR] Host 192.168.178.61 returned HTTP status code 403 to GET request at end point /goform/formZone2_Zone2XmlStatus.xml 2020-11-14 20:38:22 ERROR (ThreadPoolExecutor-3283_0) [DenonAVR] Host 192.168.178.61 returned HTTP status code 403 to GET request at end point /goform/formZone2_Zone2XmlStatus.xml 2020-11-14 20:38:22 ERROR (SyncWorker_54) [DenonAVR] Missing status information from XML of Zone2 for: Power, InputFuncSelect, Mute, MasterVolume 2020-11-14 20:38:24 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.openhome_a0980529_e79e_3f80_ffff_fffffccddd78 fails Traceback (most recent call last): File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1700, in close self.parser.Parse("", 1) # end of data xml.parsers.expat.ExpatError: no element found: line 1, column 0 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update raise exc File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(self.args, self.kwargs) File "/usr/src/homeassistant/homeassistant/components/openhome/media_player.py", line 86, in update self._in_standby = self._device.IsInStandby() File "/usr/local/lib/python3.8/site-packages/openhomedevice/Device.py", line 70, in IsInStandby standbyStateXml = etree.fromstring(standbyState) File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1321, in XML return parser.close() File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1702, in close self._raiseerror(v) File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1602, in _raiseerror raise err File "", line None xml.etree.ElementTree.ParseError: no element found: line 1, column 0

And here a press message about the new firmware: https://www.hometheaterforum.com/sound-united-announces-important-firmware-update-for-receivers-and-preamps/

frenck commented 3 years ago

Hi there,

Thanks for opening up an issue. When creating an issue, an issue template is presented. It looks like you've (partly) removed it. This causes your issue report to be incomplete.

Please edit your issue to have the full issue template back again and provide as much of the requested data as possible. Without it, we won't be able to help you.

Thanks already! 👍

BebeMischa commented 3 years ago

Updated OP, sorry, i was a bit to irritated ;-)

Tommatheussen commented 3 years ago

I just want to chime in and quickly say that I am running the same device with the same firmware version, but I do not have any issues with my integration, everything gets reported correctly.

You might want to power cycle your AVR if you have not done this yet already, it seems another report came in earlier where the same 403 errors were reported: https://github.com/home-assistant/core/issues/43049

jon-hedgerows commented 3 years ago

I've got the X2600H, and that also failed after November's firmware update, but as @Tommatheussen says, power-cycling the AVR, and the reloading the integration got it working again for me.

BebeMischa commented 3 years ago

Thanks guys, it seems to be solved now, after: Unplugging the mains of the Denon, restarting the internet router and reloading the integration all at the same time.