code style
This commit is contained in:
parent
8035f9a5c6
commit
410ae9ed90
@ -2409,16 +2409,19 @@ sub ShuttersCommandSet($$$) {
|
|||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
$shutters->setShuttersDev($shuttersDev);
|
$shutters->setShuttersDev($shuttersDev);
|
||||||
|
|
||||||
if (($posValue == $shutters->getShadingPos
|
if (
|
||||||
and (
|
(
|
||||||
CheckIfShuttersWindowRecOpen($shuttersDev) == 2
|
$posValue == $shutters->getShadingPos
|
||||||
and $shutters->getShuttersPlace eq 'terrace'
|
and (
|
||||||
and ( $shutters->getLockOut eq 'soft'
|
CheckIfShuttersWindowRecOpen($shuttersDev) == 2
|
||||||
or $shutters->getLockOut eq 'hard' )
|
and $shutters->getShuttersPlace eq 'terrace'
|
||||||
and not $shutters->getQueryShuttersPos($posValue)
|
and ( $shutters->getLockOut eq 'soft'
|
||||||
)
|
or $shutters->getLockOut eq 'hard' )
|
||||||
|
and not $shutters->getQueryShuttersPos($posValue)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
or ($posValue != $shutters->getShadingPos
|
or (
|
||||||
|
$posValue != $shutters->getShadingPos
|
||||||
and (
|
and (
|
||||||
(
|
(
|
||||||
$shutters->getPartyMode eq 'on'
|
$shutters->getPartyMode eq 'on'
|
||||||
@ -2450,9 +2453,9 @@ sub ShuttersCommandSet($$$) {
|
|||||||
and not $shutters->getQueryShuttersPos($posValue) )
|
and not $shutters->getQueryShuttersPos($posValue) )
|
||||||
or ( $shutters->getRainProtectionStatus eq 'protected'
|
or ( $shutters->getRainProtectionStatus eq 'protected'
|
||||||
and $shutters->getWindProtectionStatus eq 'protected' )
|
and $shutters->getWindProtectionStatus eq 'protected' )
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
$shutters->setDelayCmd($posValue);
|
$shutters->setDelayCmd($posValue);
|
||||||
$ascDev->setDelayCmdReading;
|
$ascDev->setDelayCmdReading;
|
||||||
|
Loading…
Reference in New Issue
Block a user