From 6cb78bd4c050b099c7e9f522b45721037b3e3627 Mon Sep 17 00:00:00 2001 From: markusbloch Date: Sun, 9 Jun 2013 14:30:36 +0000 Subject: [PATCH] scene command can be used when the device is powered off git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3267 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/71_YAMAHA_AVR.pm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/fhem/FHEM/71_YAMAHA_AVR.pm b/fhem/FHEM/71_YAMAHA_AVR.pm index f9ea1643d..28817b058 100755 --- a/fhem/FHEM/71_YAMAHA_AVR.pm +++ b/fhem/FHEM/71_YAMAHA_AVR.pm @@ -293,8 +293,7 @@ YAMAHA_AVR_Set($@) { if(defined($a[2])) { - if($hash->{STATE} eq "on") - { + if(not $scenes_piped eq "") { if($a[2] =~ /^($scenes_piped)$/) @@ -324,11 +323,6 @@ YAMAHA_AVR_Set($@) { return "No scenes are avaible. Please try an statusUpdate."; } - } - else - { - return "scene can only be used when device is powered on"; - } } else {