diff --git a/fhem/CHANGED b/fhem/CHANGED index 2e219d951..f3f53b2b6 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 70_DENON_AVR: fixed HTTP 403 (thx justme1968) - bugfix : 73_AutoShuttersControl: fix shading drive if current position under shading position - feature: 37_echodevice.pm diff --git a/fhem/FHEM/70_DENON_AVR.pm b/fhem/FHEM/70_DENON_AVR.pm index 62a106cbe..2b24bedcb 100755 --- a/fhem/FHEM/70_DENON_AVR.pm +++ b/fhem/FHEM/70_DENON_AVR.pm @@ -1002,7 +1002,10 @@ sub DENON_AVR_ParseDeviceinfoResponse { my $name = $hash->{NAME}; my $return; - if($err ne "") { + if($err ne '' || $data =~ m/Error 403/) { + if ( $err eq '' ) { + $err = 'Error 403: Forbidden'; + } Log3 $name, 0, "DENON_AVR ($name) - Error while requesting ".$param->{url}." - $err"; readingsBeginUpdate($hash); readingsBulkUpdate($hash, 'httpState', 'ERROR', 0);