mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
10_RHASSPY: fix numeric handling for ZWave type blinds in SetNumeric
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@26075 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8ea2b8a59d
commit
1d2016299c
@ -4699,7 +4699,7 @@ sub handleIntentSetNumeric {
|
|||||||
return respond( $hash, $data, getResponse( $hash, 'NoMappingFound' ) );
|
return respond( $hash, $data, getResponse( $hash, 'NoMappingFound' ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Mapping and device found -> execute command
|
# Mapping and device found -> execute command
|
||||||
my $cmd = $mapping->{cmd} // return defined $data->{'.inBulk'} ? undef : respond( $hash, $data, getResponse( $hash, 'NoMappingFound' ) );
|
my $cmd = $mapping->{cmd} // return defined $data->{'.inBulk'} ? undef : respond( $hash, $data, getResponse( $hash, 'NoMappingFound' ) );
|
||||||
my $part = $mapping->{part};
|
my $part = $mapping->{part};
|
||||||
@ -4729,6 +4729,8 @@ sub handleIntentSetNumeric {
|
|||||||
my @tokens = split m{\s+}x, $oldVal;
|
my @tokens = split m{\s+}x, $oldVal;
|
||||||
$oldVal = $tokens[$part] if @tokens >= $part;
|
$oldVal = $tokens[$part] if @tokens >= $part;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$oldVal = $oldVal =~ m{(-?\d+(\.\d+)?)}x ? $1 : $oldVal;
|
||||||
|
|
||||||
# Neuen Wert bestimmen
|
# Neuen Wert bestimmen
|
||||||
my $newVal;
|
my $newVal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user