From 312fb3dc2b5c14175fb4b5be73c1029eb1b993b3 Mon Sep 17 00:00:00 2001 From: markusbloch <> Date: Sat, 17 Jun 2017 20:35:37 +0000 Subject: [PATCH] YAMAHA_AVR: RX-V2065 uses DSP-based commands (Forum: #73235) / complete command options inline documentation git-svn-id: https://svn.fhem.de/fhem/trunk@14531 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/71_YAMAHA_AVR.pm | 28 +++++++++++++++------------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 5adde9cd9..76b6d1011 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: YAMAHA_AVR: use DSP-based commands for RX-V2065 - bugfix: 10_MQTT_DEVICE.pm: publishSet patch (Forum #msg648963) - feature: 10_MQTT_DEVICE.pm: publishSet patch (Forum #msg648596) - feature: 01_FHEMWEB.pm: selectnumbers widget modifier (Forum #73188) diff --git a/fhem/FHEM/71_YAMAHA_AVR.pm b/fhem/FHEM/71_YAMAHA_AVR.pm index fb24c706a..5607ab30b 100755 --- a/fhem/FHEM/71_YAMAHA_AVR.pm +++ b/fhem/FHEM/71_YAMAHA_AVR.pm @@ -1115,17 +1115,19 @@ YAMAHA_AVR_Undefine($$) # following option values can be used to control the execution of the command: # # { -# unless_in_queue => don't insert the command if an equivalent command already exists in the queue. (flag: 0,1 - default: 0) -# priority => integer value of priority. lower values will be executed before higher values in the appropriate order. (integer value - default value: 3) -# at_first => insert the command at the beginning of the queue, not at the end. (flag: 0,1 - default: 0) -# not_before => don't execute the command before the given Unix timestamp is reached (integer/float value) -# can_fail => the request can return an error. If this flag is set, don't treat this as an communication error, ignore it instead. (flag: 0,1 - default: 0) -# no_playinfo => (only relevant for "statusRequest basicStatus") - don't retrieve extended playback information, after receiving a successful response (flag: 0,1 - default: 0) -# init => (only relevant for navigateListMenu) - marks the initial request to obtain the current menu level (flag: 0,1 - default: 0) -# last_layer => (only relevant for navigateListMenu) - the menu layer that was reached within the last request (integer value) -# item_selected => (only relevant for navigateListMenu) - is set, when the final item is going to be selected with the current request. (flag: 0,1 - default: 0) -# volume_target => (only relevant for volume) - the target volume, that should be reached by smoothing. (float value) -# volume_diff => (only relevant for volume) - the volume difference between each step to reach the target volume (float value) +# unless_in_queue => don't insert the command if an equivalent command already exists in the queue. (flag: 0,1 - default: 0) +# priority => integer value of priority. lower values will be executed before higher values in the appropriate order. (integer value - default value: 3) +# at_first => insert the command at the beginning of the queue, not at the end. (flag: 0,1 - default: 0) +# not_before => don't execute the command before the given Unix timestamp is reached (integer/float value) +# wait_after_response => wait the given number of seconds before processing further queue commands (integer/float value) +# can_fail => the request can return an error. If this flag is set, don't treat this as an communication error, ignore it instead. (flag: 0,1 - default: 0) +# no_playinfo => (only relevant for "statusRequest basicStatus") - don't retrieve extended playback information, after receiving a successful response (flag: 0,1 - default: 0) +# init => (only relevant for navigateListMenu) - marks the initial request to obtain the current menu level (flag: 0,1 - default: 0) +# last_layer => (only relevant for navigateListMenu) - the menu layer that was reached within the last request (integer value) +# item_selected => (only relevant for navigateListMenu) - is set, when the final item is going to be selected with the current request. (flag: 0,1 - default: 0) +# volume_target => (only relevant for volume) - the target volume, that should be reached by smoothing. (float value) +# volume_diff => (only relevant for volume) - the volume difference between each step to reach the target volume (float value) +# input_tag => (only relevant for "statusRequest playInfo") - contains the input tag name when requesting playInfo # } # @@ -2392,13 +2394,13 @@ sub YAMAHA_AVR_generateSurroundDecoderList($) ############################# -# Check if amp is one of these models: DSP-Z7, DSP-Z9, DSP-Z11, RX-Z7, RX-Z9, RX-Z11, RX-V3900, DSP-AX3900 +# Check if amp is one of these models: DSP-Z7, DSP-Z9, DSP-Z11, RX-Z7, RX-Z9, RX-Z11, RX-V2065, RX-V3900, DSP-AX3900 # Tested models: DSP-Z7 sub YAMAHA_AVR_isModel_DSP($) { my($hash) = @_; - if(exists($hash->{MODEL}) && (($hash->{MODEL} =~ /DSP-Z/) || ($hash->{MODEL} =~ /RX-Z/) || ($hash->{MODEL} =~ /RX-V3900/) || ($hash->{MODEL} =~ /DSP-AX3900/))) + if(exists($hash->{MODEL}) && (($hash->{MODEL} =~ /DSP-Z/) || ($hash->{MODEL} =~ /RX-Z/) || ($hash->{MODEL} =~ /RX-V2065/) || ($hash->{MODEL} =~ /RX-V3900/) || ($hash->{MODEL} =~ /DSP-AX3900/))) { return 1; }