fix partyMode and window open condition

This commit is contained in:
Marko Oldenburg 2019-09-20 20:38:31 +02:00
parent 9e570fc894
commit d113f02250

View File

@ -2374,11 +2374,18 @@ sub ShuttersCommandSet($$$) {
$shutters->setShuttersDev($shuttersDev);
if (
$posValue != $shutters->getShadingPos
or ( $posValue == $shutters->getShadingPos
and CheckIfShuttersWindowRecOpen($shuttersDev) == 2
(
$posValue == $shutters->getShadingPos
and (
CheckIfShuttersWindowRecOpen($shuttersDev) == 2
and $shutters->getShuttersPlace eq 'terrace'
and ( $shutters->getLockOut eq 'soft'
or $shutters->getLockOut eq 'hard' )
and not $shutters->getQueryShuttersPos($posValue)
)
)
or (
$posValue != $shutters->getShadingPos
and (
(
$shutters->getPartyMode eq 'on'
@ -2412,6 +2419,7 @@ sub ShuttersCommandSet($$$) {
and $shutters->getWindProtectionStatus eq 'protected' )
)
)
)
{
$shutters->setDelayCmd($posValue);
$ascDev->setDelayCmdReading;