add more condition for roommate and shading
This commit is contained in:
parent
682486414e
commit
f60b64ddb6
@ -1149,7 +1149,8 @@ sub EventProcessingRoommate($@) {
|
|||||||
{
|
{
|
||||||
if ( $shutters->getIfInShading
|
if ( $shutters->getIfInShading
|
||||||
and not $shutters->getShadingManualDriveStatus
|
and not $shutters->getShadingManualDriveStatus
|
||||||
and $shutters->getStatus == $shutters->getOpenPos )
|
and $shutters->getStatus == $shutters->getOpenPos
|
||||||
|
and $shutters->getShadingMode 'home')
|
||||||
{
|
{
|
||||||
$shutters->setLastDrive('shading in');
|
$shutters->setLastDrive('shading in');
|
||||||
$posValue = $shutters->getShadingPos;
|
$posValue = $shutters->getShadingPos;
|
||||||
@ -1157,7 +1158,8 @@ sub EventProcessingRoommate($@) {
|
|||||||
ShuttersCommandSet( $hash, $shuttersDev, $posValue );
|
ShuttersCommandSet( $hash, $shuttersDev, $posValue );
|
||||||
}
|
}
|
||||||
elsif (
|
elsif (
|
||||||
not $shutters->getIfInShading
|
( not $shutters->getIfInShading
|
||||||
|
or $shutters->getShadingMode eq 'absent' )
|
||||||
and ( $shutters->getStatus == $shutters->getClosedPos
|
and ( $shutters->getStatus == $shutters->getClosedPos
|
||||||
or $shutters->getStatus ==
|
or $shutters->getStatus ==
|
||||||
$shutters->getShadingPos )
|
$shutters->getShadingPos )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user