73_AutoShuttersControl: fix ShadingProcessingDriceCommand check windows open condition

git-svn-id: https://svn.fhem.de/fhem/trunk@21638 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
CoolTux
2020-04-11 08:32:06 +00:00
parent 5d8e4c8a4f
commit 945c37781b

View File

@@ -2510,8 +2510,12 @@ sub ShadingProcessingDriveCommand {
if ( $shutters->getShadingStatus eq 'in'
&& $getShadingPos != $getStatus )
{
if ( !CheckIfShuttersWindowRecOpen($shuttersDev) == 2
&& $shutters->getShuttersPlace eq 'terrace' )
if (
!(
CheckIfShuttersWindowRecOpen($shuttersDev) == 2
&& $shutters->getShuttersPlace eq 'terrace'
)
)
{
$shutters->setLastDrive('shading in');
ShuttersCommandSet( $hash, $shuttersDev, $getShadingPos );