fix Github #77

This commit is contained in:
Marko Oldenburg 2020-08-10 09:28:48 +02:00
parent 7f88f4c82f
commit fbca7af3c6
2 changed files with 17 additions and 4 deletions

View File

@ -1,11 +1,11 @@
UPD 2020-08-06_14:30:42 97596 FHEM/73_AutoShuttersControl.pm
UPD 2020-08-06_14:32:42 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-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-08-06_09:39:42 24209 lib/FHEM/Automation/ShuttersControl/Shading.pm
UPD 2020-08-06_09:39:42 109110 lib/FHEM/Automation/ShuttersControl/EventProcessingFunctions.pm
UPD 2020-07-26_17:36:29 44910 lib/FHEM/Automation/ShuttersControl/Helper.pm
UPD 2020-08-06_14:32:42 24209 lib/FHEM/Automation/ShuttersControl/Shading.pm
UPD 2020-08-06_14:32:42 109110 lib/FHEM/Automation/ShuttersControl/EventProcessingFunctions.pm
UPD 2020-08-10_09:28:25 45519 lib/FHEM/Automation/ShuttersControl/Helper.pm
UPD 2020-06-22_09:41:40 2175 lib/FHEM/Automation/ShuttersControl/Window.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

View File

@ -382,6 +382,19 @@ sub _IsDay {
. $FHEM::Automation::ShuttersControl::shutters->getSunrise );
}
$respIsDay == 1
if (
( $FHEM::Automation::ShuttersControl::shutters->getDown eq 'roommate'
and ( $FHEM::Automation::ShuttersControl::shutters->getRoommates ne 'asleep'
or $FHEM::Automation::ShuttersControl::shutters->getRoommates ne 'gotosleep' )
)
or ( $FHEM::Automation::ShuttersControl::shutters->getUp eq 'roommate'
and ( $FHEM::Automation::ShuttersControl::shutters->getRoommates ne 'asleep'
or $FHEM::Automation::ShuttersControl::shutters->getRoommates ne 'gotosleep' )
)
);
return $respIsDay;
}