expane rain and wind protection control
add condition for wind and rain protection [Ticket: none]
This commit is contained in:
@ -1764,7 +1764,11 @@ sub SetCmdFn {
|
||||
return
|
||||
if ( $shutters->getASCenable eq 'off'
|
||||
|| $ascDev->getASCenable eq 'off'
|
||||
|| $idleDetection !~ m{^$idleDetectionValue$}xms );
|
||||
|| $idleDetection !~ m{^$idleDetectionValue$}xms
|
||||
|| $FHEM::Automation::ShuttersControl::shutters
|
||||
->getWindProtectionStatus eq 'protected'
|
||||
|| $FHEM::Automation::ShuttersControl::shutters
|
||||
->getRaindProtectionStatus eq 'protected' );
|
||||
|
||||
if ( $shutters->getStatus != $posValue ) {
|
||||
$shutters->setLastPos( $shutters->getStatus );
|
||||
|
@ -1445,11 +1445,11 @@ sub EventProcessingWind {
|
||||
);
|
||||
}
|
||||
|
||||
$FHEM::Automation::ShuttersControl::shutters->setDriveCmd(
|
||||
$targetPos);
|
||||
|
||||
$FHEM::Automation::ShuttersControl::shutters
|
||||
->setWindProtectionStatus('unprotected');
|
||||
|
||||
$FHEM::Automation::ShuttersControl::shutters->setDriveCmd(
|
||||
$targetPos);
|
||||
}
|
||||
|
||||
FHEM::Automation::ShuttersControl::ASC_Debug(
|
||||
|
@ -194,12 +194,12 @@ sub _RainUnprotected {
|
||||
);
|
||||
}
|
||||
|
||||
$FHEM::Automation::ShuttersControl::shutters->setDriveCmd($targetPos)
|
||||
if ( IsAfterShuttersTimeBlocking($shuttersDev) );
|
||||
|
||||
$FHEM::Automation::ShuttersControl::shutters->setRainProtectionStatus(
|
||||
'unprotected');
|
||||
|
||||
$FHEM::Automation::ShuttersControl::shutters->setDriveCmd($targetPos)
|
||||
if ( IsAfterShuttersTimeBlocking($shuttersDev) );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user