fix PrivacyDownStatus in Brightness
This commit is contained in:
parent
0081b53d16
commit
4454838eba
@ -1997,6 +1997,8 @@ sub EventProcessingBrightness($@) {
|
|||||||
{
|
{
|
||||||
$posValue = $shutters->getComfortOpenPos;
|
$posValue = $shutters->getComfortOpenPos;
|
||||||
$lastDrive = 'minimum brightness threshold fell below';
|
$lastDrive = 'minimum brightness threshold fell below';
|
||||||
|
$shutters->setPrivacyDownStatus(0)
|
||||||
|
if ( $shutters->getPrivacyDownStatus == 2 );
|
||||||
}
|
}
|
||||||
elsif ( CheckIfShuttersWindowRecOpen($shuttersDev) == 0
|
elsif ( CheckIfShuttersWindowRecOpen($shuttersDev) == 0
|
||||||
or $shutters->getVentilateOpen eq 'off' )
|
or $shutters->getVentilateOpen eq 'off' )
|
||||||
@ -2007,10 +2009,14 @@ sub EventProcessingBrightness($@) {
|
|||||||
: $shutters->getClosedPos
|
: $shutters->getClosedPos
|
||||||
);
|
);
|
||||||
$lastDrive = 'minimum brightness threshold fell below';
|
$lastDrive = 'minimum brightness threshold fell below';
|
||||||
|
$shutters->setPrivacyDownStatus(0)
|
||||||
|
if ( $shutters->getPrivacyDownStatus == 2 );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$posValue = $shutters->getVentilatePos;
|
$posValue = $shutters->getVentilatePos;
|
||||||
$lastDrive = 'minimum brightness threshold fell below';
|
$lastDrive = 'minimum brightness threshold fell below';
|
||||||
|
$shutters->setPrivacyDownStatus(0)
|
||||||
|
if ( $shutters->getPrivacyDownStatus == 2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
$shutters->setLastDrive($lastDrive);
|
$shutters->setLastDrive($lastDrive);
|
||||||
@ -2025,9 +2031,6 @@ sub EventProcessingBrightness($@) {
|
|||||||
$shutters->setSunset(1);
|
$shutters->setSunset(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$shutters->setPrivacyDownStatus(0)
|
|
||||||
if ( $shutters->getPrivacyDownStatus == 2
|
|
||||||
and $shutters->getSunrise );
|
|
||||||
ShuttersCommandSet( $hash, $shuttersDev, $posValue );
|
ShuttersCommandSet( $hash, $shuttersDev, $posValue );
|
||||||
|
|
||||||
ASC_Debug( 'EventProcessingBrightness: '
|
ASC_Debug( 'EventProcessingBrightness: '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user