change default logic for ASC_BrightnessSensor and Morning, Evening drive
value. none = -2 and -1 minimal value
This commit is contained in:
@ -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;
|
||||
|
@ -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};
|
||||
}
|
||||
|
Reference in New Issue
Block a user