fix absent Event and ModeDown absent bug

This commit is contained in:
Marko Oldenburg 2018-12-05 09:09:46 +01:00
parent 365feecec5
commit 14312c8220

View File

@ -982,7 +982,8 @@ sub EventProcessingRoommate($@) {
ShuttersCommandSet( $hash, $shuttersDev, $position );
}
elsif ( $shutters->getModeDown eq 'absent'
and $1 eq 'absent' )
and $1 eq 'absent'
and not IsDay($hash,$shuttersDev) )
{
$shutters->setLastDrive('roommate absent');
ShuttersCommandSet( $hash, $shuttersDev, $shutters->getClosedPos );