fix window closed at night an ModeDown is roommate

shutter drive open
This commit is contained in:
Marko Oldenburg 2020-08-04 08:21:31 +02:00
parent 338db55e05
commit 0b4a5a0d4f
2 changed files with 28 additions and 9 deletions

View File

@ -1,15 +1,15 @@
UPD 2020-07-09_12:52:46 97596 FHEM/73_AutoShuttersControl.pm
UPD 2020-07-09_12:52:46 74134 lib/FHEM/Automation/ShuttersControl.pm
UPD 2020-07-26_17:36:29 97596 FHEM/73_AutoShuttersControl.pm
UPD 2020-07-26_17:36:29 74134 lib/FHEM/Automation/ShuttersControl.pm
UPD 2020-06-22_09:41:40 2657 lib/FHEM/Automation/ShuttersControl/Dev.pm
UPD 2020-07-07_14:49:19 2496 lib/FHEM/Automation/ShuttersControl/Roommate.pm
UPD 2020-07-09_12:52:46 31376 lib/FHEM/Automation/ShuttersControl/Shutters.pm
UPD 2020-07-26_17:30:44 24036 lib/FHEM/Automation/ShuttersControl/Shading.pm
UPD 2020-07-09_09:43:45 108076 lib/FHEM/Automation/ShuttersControl/EventProcessingFunctions.pm
UPD 2020-07-09_12:52:46 44910 lib/FHEM/Automation/ShuttersControl/Helper.pm
UPD 2020-07-26_17:36:29 2496 lib/FHEM/Automation/ShuttersControl/Roommate.pm
UPD 2020-07-26_17:36:29 31376 lib/FHEM/Automation/ShuttersControl/Shutters.pm
UPD 2020-07-26_17:36:29 24036 lib/FHEM/Automation/ShuttersControl/Shading.pm
UPD 2020-08-04_08:21:16 109101 lib/FHEM/Automation/ShuttersControl/EventProcessingFunctions.pm
UPD 2020-07-26_17:36:29 44910 lib/FHEM/Automation/ShuttersControl/Helper.pm
UPD 2020-06-22_09:41:40 2175 lib/FHEM/Automation/ShuttersControl/Window.pm
UPD 2020-07-09_09:43:45 11569 lib/FHEM/Automation/ShuttersControl/Dev/Attr.pm
UPD 2020-07-26_17:36:29 11569 lib/FHEM/Automation/ShuttersControl/Dev/Attr.pm
UPD 2020-07-03_11:29:10 7251 lib/FHEM/Automation/ShuttersControl/Dev/Readings.pm
UPD 2020-07-09_12:52:46 52284 lib/FHEM/Automation/ShuttersControl/Shutters/Attr.pm
UPD 2020-07-26_17:36:29 52284 lib/FHEM/Automation/ShuttersControl/Shutters/Attr.pm
UPD 2020-06-22_09:41:40 2903 lib/FHEM/Automation/ShuttersControl/Shutters/Readings.pm
UPD 2020-06-22_09:41:40 3972 lib/FHEM/Automation/ShuttersControl/Window/Attr.pm
UPD 2020-06-22_09:41:40 2288 lib/FHEM/Automation/ShuttersControl/Window/Readings.pm

View File

@ -368,6 +368,25 @@ sub EventProcessingWindowRec {
}
}
}
elsif (
!$FHEM::Automation::ShuttersControl::shutters->getIsDay
&& $FHEM::Automation::ShuttersControl::shutters->getModeDown eq 'roommate'
&& ( $FHEM::Automation::ShuttersControl::shutters->getRoommatesStatus eq 'home'
|| $FHEM::Automation::ShuttersControl::shutters->getRoommatesStatus eq 'awoken' )
)
{
$FHEM::Automation::ShuttersControl::shutters
->setDriveCmd(
(
$FHEM::Automation::ShuttersControl::shutters
->getVentilatePosAfterDayClosed eq 'open'
? $FHEM::Automation::ShuttersControl::shutters
->getOpenPos
: $FHEM::Automation::ShuttersControl::shutters
->getLastManPos
)
);
}
elsif (
$FHEM::Automation::ShuttersControl::shutters->getModeDown ne
'absent'