diff --git a/fhem/CHANGED b/fhem/CHANGED index 140968fd2..836ba4b20 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,6 +1,7 @@ # 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. - SVN + - feature: YAMAHA_AVR: new attribute request-timeout. - bugfix: YAMAHA_AVR: fix missing greater-than sign. Use different Control-Tag name for RX-Vx75 series - bugfix: PRESENCE: fixing not working re-initialization when diff --git a/fhem/FHEM/71_YAMAHA_AVR.pm b/fhem/FHEM/71_YAMAHA_AVR.pm index 1a93fb3f6..5c0a6fd90 100755 --- a/fhem/FHEM/71_YAMAHA_AVR.pm +++ b/fhem/FHEM/71_YAMAHA_AVR.pm @@ -53,7 +53,7 @@ YAMAHA_AVR_Initialize($) $hash->{DefFn} = "YAMAHA_AVR_Define"; $hash->{UndefFn} = "YAMAHA_AVR_Undefine"; - $hash->{AttrList} = "do_not_notify:0,1 volumeSteps:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 volume-smooth-change:0,1 volume-smooth-steps:1,2,3,4,5,6,7,8,9,10 ". + $hash->{AttrList} = "do_not_notify:0,1 request-timeout:1,2,3,4,5 volumeSteps:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 volume-smooth-change:0,1 volume-smooth-steps:1,2,3,4,5,6,7,8,9,10 ". $readingFnAttributes; } @@ -624,7 +624,7 @@ YAMAHA_AVR_SendCommand($$;$) # In case any URL changes must be made, this part is separated in this function". - $response = CustomGetFileFromURL(0, "http://".$address."/YamahaRemoteControl/ctrl", 4, "".$command, 0, ($hash->{helper}{AVAILABLE} ? $loglevel : 5)); + $response = CustomGetFileFromURL(0, "http://".$address."/YamahaRemoteControl/ctrl", AttrVal($name, "request-timeout", 4) , "".$command, 0, ($hash->{helper}{AVAILABLE} ? $loglevel : 5)); Log3 $name, 5, "YAMAHA_AVR: got response for $name: $response" if(defined($response)); @@ -806,7 +806,7 @@ sub YAMAHA_AVR_getModel($) } # query the description url which contains all zones - $response = CustomGetFileFromURL(0, "http://".$address.$desc_url, 4, undef, 0, ($hash->{helper}{AVAILABLE} ? 3 : 5)); + $response = CustomGetFileFromURL(0, "http://".$address.$desc_url, AttrVal($name, "request-timeout", 4), undef, 0, ($hash->{helper}{AVAILABLE} ? 3 : 5)); Log3 $name, 3, "YAMAHA_AVR: could not get unit description from device $name. Please turn on the device or check for correct hostaddress!" if (not defined($response) and defined($hash->{helper}{AVAILABLE}) and $hash->{helper}{AVAILABLE} eq 1); @@ -1092,6 +1092,10 @@ output # only available in zones other than mainzone

  • do_not_notify
  • readingFnAttributes

  • +
  • request-timeout
  • + Optional attribute change the response timeout in seconds for all queries to the receiver. +

    + Possible values: 1-5 seconds. Default value is 4 seconds.

  • volume-smooth-change
  • Optional attribute to activate a smooth volume change.

    @@ -1284,6 +1288,10 @@ output # only available in zones other than mainzone

  • do_not_notify
  • readingFnAttributes

  • +
  • request-timeout
  • + Optionales Attribut. Maximale Dauer einer Anfrage in Sekunden zum Receiver. +

    + Mögliche Werte: 1-5 Sekunden. Standartwert ist 4 Sekunden

  • volume-smooth-change
  • Optionales Attribut, welches einen weichen Lautstärkeübergang aktiviert..