fix detected IsDay for Brightness
This commit is contained in:
parent
121b9063ea
commit
2c6f8bacab
@ -4,8 +4,8 @@ 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-08-12_11:00:05 31376 lib/FHEM/Automation/ShuttersControl/Shutters.pm
|
||||
UPD 2020-10-05_13:39:37 25490 lib/FHEM/Automation/ShuttersControl/Shading.pm
|
||||
UPD 2020-10-05_13:30:47 109905 lib/FHEM/Automation/ShuttersControl/EventProcessingFunctions.pm
|
||||
UPD 2020-08-18_08:40:35 45518 lib/FHEM/Automation/ShuttersControl/Helper.pm
|
||||
UPD 2020-10-05_13:44:21 109905 lib/FHEM/Automation/ShuttersControl/EventProcessingFunctions.pm
|
||||
UPD 2020-10-05_13:52:22 45518 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
|
||||
|
@ -257,13 +257,13 @@ sub _IsDay {
|
||||
$FHEM::Automation::ShuttersControl::shutters->setShuttersDev($shuttersDev);
|
||||
|
||||
my $brightnessMinVal = (
|
||||
$FHEM::Automation::ShuttersControl::shutters->getBrightnessMinVal > -1
|
||||
$FHEM::Automation::ShuttersControl::shutters->getBrightnessMinVal > -2
|
||||
? $FHEM::Automation::ShuttersControl::shutters->getBrightnessMinVal
|
||||
: $FHEM::Automation::ShuttersControl::ascDev->getBrightnessMinVal
|
||||
);
|
||||
|
||||
my $brightnessMaxVal = (
|
||||
$FHEM::Automation::ShuttersControl::shutters->getBrightnessMaxVal > -1
|
||||
$FHEM::Automation::ShuttersControl::shutters->getBrightnessMaxVal > -2
|
||||
? $FHEM::Automation::ShuttersControl::shutters->getBrightnessMaxVal
|
||||
: $FHEM::Automation::ShuttersControl::ascDev->getBrightnessMaxVal
|
||||
);
|
||||
@ -336,7 +336,7 @@ sub _IsDay {
|
||||
&& !$FHEM::Automation::ShuttersControl::shutters
|
||||
->getSunset
|
||||
)
|
||||
|| !$FHEM::Automation::ShuttersControl::shutters->getSunset
|
||||
|| $FHEM::Automation::ShuttersControl::shutters->getSunrise
|
||||
) ? 1 : 0
|
||||
)
|
||||
if ( $FHEM::Automation::ShuttersControl::shutters->getDown eq
|
||||
|
Loading…
Reference in New Issue
Block a user