mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-29 11:27:08 +00:00
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:
parent
936b36aaf2
commit
aada07f1c1
@ -293,8 +293,7 @@ YAMAHA_AVR_Set($@)
|
|||||||
{
|
{
|
||||||
if(defined($a[2]))
|
if(defined($a[2]))
|
||||||
{
|
{
|
||||||
if($hash->{STATE} eq "on")
|
|
||||||
{
|
|
||||||
if(not $scenes_piped eq "")
|
if(not $scenes_piped eq "")
|
||||||
{
|
{
|
||||||
if($a[2] =~ /^($scenes_piped)$/)
|
if($a[2] =~ /^($scenes_piped)$/)
|
||||||
@ -326,11 +325,6 @@ YAMAHA_AVR_Set($@)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
return "scene can only be used when device is powered on";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
return $scenes_piped eq "" ? "No inputs are available. Please try an statusUpdate." : "No input parameter was given";
|
return $scenes_piped eq "" ? "No inputs are available. Please try an statusUpdate." : "No input parameter was given";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user