change logical for drive on shading then shutter pos is closed

change code in EventProcessingFunctions to call function
ShadingProcessingDriveCommand
This commit is contained in:
2020-08-06 09:38:07 +02:00
parent 0b4a5a0d4f
commit d1b04fcdce
3 changed files with 11 additions and 6 deletions

View File

@@ -637,7 +637,7 @@ sub EventProcessingRoommate {
->getSelfDefenseState
)
{
ShadingProcessingDriveCommand( $hash, $shuttersDev );
ShadingProcessingDriveCommand( $hash, $shuttersDev, 1 );
}
elsif (
!$FHEM::Automation::ShuttersControl::shutters->getIsDay
@@ -962,7 +962,7 @@ sub EventProcessingResidents {
&& $FHEM::Automation::ShuttersControl::shutters
->getRoommatesStatus eq 'none' )
{
ShadingProcessingDriveCommand( $hash, $shuttersDev );
ShadingProcessingDriveCommand( $hash, $shuttersDev, 1 );
}
elsif (
$FHEM::Automation::ShuttersControl::shutters
@@ -1098,7 +1098,7 @@ sub EventProcessingResidents {
->getSelfDefenseState
)
{
ShadingProcessingDriveCommand( $hash, $shuttersDev );
ShadingProcessingDriveCommand( $hash, $shuttersDev, 1 );
}
elsif (
$FHEM::Automation::ShuttersControl::shutters->getShadingMode eq