mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
10_RHASSPY: fix relative numeric handling for SetNumericGroup
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@26076 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1d2016299c
commit
3d71c21bd1
@ -4607,8 +4607,6 @@ sub handleIntentSetNumericGroup {
|
|||||||
Log3($hash, 5, 'sorted devices list is: ' . join q{ }, @devlist);
|
Log3($hash, 5, 'sorted devices list is: ' . join q{ }, @devlist);
|
||||||
return respond( $hash, $data, getResponse( $hash, 'NoDeviceFound' ) ) if !keys %{$devices};
|
return respond( $hash, $data, getResponse( $hash, 'NoDeviceFound' ) ) if !keys %{$devices};
|
||||||
|
|
||||||
my $value = $data->{Value};
|
|
||||||
|
|
||||||
my $updatedList;
|
my $updatedList;
|
||||||
my $init_delay = 0;
|
my $init_delay = 0;
|
||||||
my $delaysum = 0;
|
my $delaysum = 0;
|
||||||
@ -4773,10 +4771,12 @@ sub handleIntentSetNumeric {
|
|||||||
# limit to min/max (if set)
|
# limit to min/max (if set)
|
||||||
$newVal = max( $minVal, $newVal ) if defined $minVal;
|
$newVal = max( $minVal, $newVal ) if defined $minVal;
|
||||||
$newVal = min( $maxVal, $newVal ) if defined $maxVal;
|
$newVal = min( $maxVal, $newVal ) if defined $maxVal;
|
||||||
$data->{Value} //= $newVal;
|
|
||||||
$data->{Type} //= $type;
|
if ( !defined $data->{'.inBulk'} ) {
|
||||||
delete $data->{Change} if defined $data->{Change} && $data->{Change} ne 'cmdStop';
|
$data->{Value} //= $newVal;
|
||||||
|
$data->{Type} //= $type;
|
||||||
|
delete $data->{Change} if defined $data->{Change} && $data->{Change} ne 'cmdStop';
|
||||||
|
}
|
||||||
#check if confirmation is required
|
#check if confirmation is required
|
||||||
return $hash->{NAME} if !defined $data->{'.inBulk'} && !$data->{Confirmation} && getNeedsConfirmation( $hash, $data, 'SetNumeric', $device );
|
return $hash->{NAME} if !defined $data->{'.inBulk'} && !$data->{Confirmation} && getNeedsConfirmation( $hash, $data, 'SetNumeric', $device );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user