YAMAHA_AVR: fixing not working remoteControl commands for several models (Forum: #41763)

git-svn-id: https://svn.fhem.de/fhem/trunk@9462 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2015-10-16 07:46:56 +00:00
parent 6d65c8c446
commit 1d49e7fd93
2 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +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.
- bugfix: YAMAHA_AVR: fixing not working remoteControl commands for
several models
- feature: PRESENCE: support for Solaris ping (mode: local-ping)
- feature: HUEbridge: added support for HUE scenes
(get: scenes; set: savescene, modifyscene, scene)

View File

@@ -642,8 +642,8 @@ YAMAHA_AVR_Set($@)
}
elsif($what eq "remoteControl")
{
# the RX-Vx75 series use a different tag name to access the remoteControl commands
my $control_tag = (exists($hash->{MODEL}) and $hash->{MODEL} =~ /RX-V\d75/ ? "Cursor_Control" : "List_Control");
# the RX-Vx71, RX-Vx73, RX-Ax10, RX-Ax20 series use a different tag name to access the remoteControl commands
my $control_tag = (exists($hash->{MODEL}) and $hash->{MODEL} =~ /^(RX-V\d{1,2}7(1|3)|RX-A\d{1,2}(1|2)0)$/ ? "List_Control" : "Cursor_Control");
if($a[2] eq "up")
{