scene command can be used when the device is powered off

git-svn-id: https://svn.fhem.de/fhem/trunk@3267 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2013-06-09 14:30:36 +00:00
parent 5728b20096
commit bad45168e3

View File

@@ -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
{