split shadingProcessing function into two functions
This commit is contained in:
parent
bf9a64ed56
commit
776ac58815
@ -1729,6 +1729,12 @@ sub EventProcessingShadingBrightness($@) {
|
|||||||
. ' - Alle Bedingungen zur weiteren Beschattungsverarbeitung sind erfüllt. Es wird nun die eigentliche Beschattungsfunktion aufgerufen'
|
. ' - Alle Bedingungen zur weiteren Beschattungsverarbeitung sind erfüllt. Es wird nun die eigentliche Beschattungsfunktion aufgerufen'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
# else {
|
||||||
|
# unless ( $shutters->getShadingMode eq $homemode
|
||||||
|
# and
|
||||||
|
# $shutters->setShadingStatus('out');
|
||||||
|
# ShadingProcessingDriveCommand($hash,$shuttersDev);
|
||||||
|
# }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1989,10 +1995,20 @@ sub ShadingProcessing($@) {
|
|||||||
. $shutters->getShadingStatus );
|
. $shutters->getShadingStatus );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ShadingProcessingDriveCommand($hash,$shuttersDev)
|
||||||
if ( $shutters->getShadingStatus eq 'out'
|
if ( $shutters->getShadingStatus eq 'out'
|
||||||
or $shutters->getShadingStatus eq 'in' )
|
or $shutters->getShadingStatus eq 'in' );
|
||||||
{
|
}
|
||||||
### Erstmal rausgenommen könnte Grund für nicht mehr reinfahren in die Beschattung sein
|
|
||||||
|
sub ShadingProcessingDriveCommand($$) {
|
||||||
|
my ($hash,$shuttersDev) = @_;
|
||||||
|
|
||||||
|
my $name = $hash->{NAME};
|
||||||
|
$shutters->setShuttersDev($shuttersDev);
|
||||||
|
|
||||||
|
my $getShadingPos = $shutters->getShadingPos;
|
||||||
|
my $getStatus = $shutters->getStatus;
|
||||||
|
|
||||||
$shutters->setShadingStatus( $shutters->getShadingStatus )
|
$shutters->setShadingStatus( $shutters->getShadingStatus )
|
||||||
if (
|
if (
|
||||||
( int( gettimeofday() ) - $shutters->getShadingStatusTimestamp ) >
|
( int( gettimeofday() ) - $shutters->getShadingStatusTimestamp ) >
|
||||||
@ -2062,7 +2078,6 @@ sub ShadingProcessing($@) {
|
|||||||
"%Y.%m.%e %T", localtime( $shutters->getShadingStatusTimestamp )
|
"%Y.%m.%e %T", localtime( $shutters->getShadingStatusTimestamp )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub EventProcessingPartyMode($) {
|
sub EventProcessingPartyMode($) {
|
||||||
@ -2495,6 +2510,7 @@ sub SunRiseShuttersAfterTimerFn($) {
|
|||||||
or ( $ascDev->getSelfDefense eq 'on'
|
or ( $ascDev->getSelfDefense eq 'on'
|
||||||
and CheckIfShuttersWindowRecOpen($shuttersDev) == 0 )
|
and CheckIfShuttersWindowRecOpen($shuttersDev) == 0 )
|
||||||
)
|
)
|
||||||
|
and $shutters->getShadingStatus ne 'in'
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
$shutters->setLastDrive('day open');
|
$shutters->setLastDrive('day open');
|
||||||
|
Loading…
Reference in New Issue
Block a user