ol-iver / denonavr

Automation Library for Denon AVR receivers.
MIT License
176 stars 67 forks source link

Denon AVR-X2500H not supported anymore? #201

Closed wilmardo closed 3 years ago

wilmardo commented 3 years ago
2021-04-11 16:07:51 ERROR (SyncWorker_7) [DenonAVR] Missing status information from XML of Main for: Power, InputFuncSelect, Mute, MasterVolume
2021-04-11 16:07:51 ERROR (SyncWorker_7) [DenonAVR] Missing status information from XML of Main for: Power, InputFuncSelect, Mute, MasterVolume
2021-04-11 16:08:11 WARNING (MainThread) [homeassistant.components.media_player] Updating denonavr media_player took longer than the scheduled update interval 0:00:10
2021-04-11 16:08:11 WARNING (MainThread) [homeassistant.components.media_player] Updating denonavr media_player took longer than the scheduled update interval 0:00:10
2021-04-11 16:08:11 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.livingroom_receiver is taking over 10 seconds
2021-04-11 16:08:11 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.livingroom_receiver is taking over 10 seconds
2021-04-11 16:08:11 ERROR (SyncWorker_3) [DenonAVR] Getting renamed and deleted sources failed.
2021-04-11 16:08:11 ERROR (SyncWorker_3) [DenonAVR] Getting renamed and deleted sources failed.

I ran the Python script to debug but there the receiver seems to return just a 403 and nothing else: AVR-X2500H.zip

# curl http://192.168.1.22:80/goform/
Error 403: Forbidden
Access Forbidden

I ran nmap to check if the port might have moved but it doesn't seem to be the case:

Starting Nmap 7.80 ( https://nmap.org ) at 2021-04-11 18:05 CEST
Nmap scan report for 192.168.1.22
Host is up (0.0057s latency).
Not shown: 996 closed ports
PORT     STATE SERVICE
23/tcp   open  telnet
80/tcp   open  http
111/tcp  open  rpcbind
8080/tcp open  http-proxy

Nmap done: 1 IP address (1 host up) scanned in 0.19 seconds

Does anyone has a clue why the receiver is returning a 403? I had this working for a long time, but I think it broke with a firmware update.

starkillerOG commented 3 years ago

@wilmardo have you tried power-cycling? I have seen many cases where simple unplug power - wait 15 seconds - plug back in solved it for Marantz/Denon receivers. Sometimes they just seem to freeze up their API.

wilmardo commented 3 years ago

@wilmardo have you tried power-cycling?

Thanks for the suggestion! I will try later today and keep you posted.

I also found these which might be related: https://github.com/home-assistant/core/issues/44786 https://github.com/scarface-4711/denonavr/pull/191

wilmardo commented 3 years ago

Sometimes the simplest of things fixes it. I did not try turning it off and on again.

Thanks @starkillerOG that indeed was the problem.

I feel stupid for not trying this earlier and living with it broken for a couple months :')