change default logic for ASC_BrightnessSensor and Morning, Evening drive

value.
none = -2 and -1 minimal value
This commit is contained in:
Marko Oldenburg 2020-10-05 10:00:21 +02:00
parent 7b55671166
commit a2d88bddf2
3 changed files with 8 additions and 8 deletions

View File

@ -1,15 +1,15 @@
UPD 2020-09-14_08:23:50 97597 FHEM/73_AutoShuttersControl.pm
UPD 2020-09-14_08:25:53 74112 lib/FHEM/Automation/ShuttersControl.pm
UPD 2020-10-05_09:59:54 97597 FHEM/73_AutoShuttersControl.pm
UPD 2020-10-05_09:59:50 74112 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-08-12_11:00:05 31376 lib/FHEM/Automation/ShuttersControl/Shutters.pm
UPD 2020-09-07_09:25:45 24589 lib/FHEM/Automation/ShuttersControl/Shading.pm
UPD 2020-09-07_09:25:45 109379 lib/FHEM/Automation/ShuttersControl/EventProcessingFunctions.pm
UPD 2020-10-05_09:59:52 109379 lib/FHEM/Automation/ShuttersControl/EventProcessingFunctions.pm
UPD 2020-08-18_08:40:35 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
UPD 2020-09-07_09:25:45 52429 lib/FHEM/Automation/ShuttersControl/Shutters/Attr.pm
UPD 2020-10-05_09:56:35 52429 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

@ -1594,7 +1594,7 @@ sub EventProcessingBrightness {
if ( $events =~ m{$reading:\s(\d+(\.\d+)?)}xms ) {
my $brightnessMinVal;
if ( $FHEM::Automation::ShuttersControl::shutters->getBrightnessMinVal >
-1 )
-2 )
{
$brightnessMinVal =
$FHEM::Automation::ShuttersControl::shutters->getBrightnessMinVal;
@ -1606,7 +1606,7 @@ sub EventProcessingBrightness {
my $brightnessMaxVal;
if ( $FHEM::Automation::ShuttersControl::shutters->getBrightnessMaxVal >
-1 )
-2 )
{
$brightnessMaxVal =
$FHEM::Automation::ShuttersControl::shutters->getBrightnessMaxVal;

View File

@ -738,9 +738,9 @@ sub _getBrightnessSensor {
$self->{ $self->{shuttersDev} }->{ASC_BrightnessSensor}->{reading} =
( $reading ne 'none' ? $reading : 'brightness' );
$self->{ $self->{shuttersDev} }->{ASC_BrightnessSensor}->{triggermin} =
( $min ne 'none' ? $min : -1 );
( $min ne 'none' ? $min : -2 );
$self->{ $self->{shuttersDev} }->{ASC_BrightnessSensor}->{triggermax} =
( $max ne 'none' ? $max : -1 );
( $max ne 'none' ? $max : -2 );
return $self->{ $self->{shuttersDev} }->{ASC_BrightnessSensor}->{device};
}