mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
10_ZWave.pm: fix SENSOR_BINARY hex->dec changes
git-svn-id: https://svn.fhem.de/fhem/trunk@12051 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c4529d901a
commit
dd1d2582fc
@ -2931,7 +2931,6 @@ ZWave_plusInfoParse($$$$$)
|
||||
}
|
||||
|
||||
my %zwave_sensorBinaryTypeV2 = (
|
||||
"00"=>"off",
|
||||
"01"=>"generalPurpose",
|
||||
"02"=>"smoke",
|
||||
"03"=>"CO",
|
||||
@ -2944,8 +2943,7 @@ my %zwave_sensorBinaryTypeV2 = (
|
||||
"0a"=>"doorWindow",
|
||||
"0b"=>"tilt",
|
||||
"0c"=>"motion",
|
||||
"0d"=>"glassBreak",
|
||||
"ff"=>"on"
|
||||
"0d"=>"glassBreak"
|
||||
);
|
||||
|
||||
sub
|
||||
@ -2954,7 +2952,7 @@ ZWave_sensorbinaryV2Parse($$)
|
||||
my ($value, $sensorType) = @_;
|
||||
return ($zwave_sensorBinaryTypeV2{"$sensorType"} ?
|
||||
$zwave_sensorBinaryTypeV2{"$sensorType"} :"unknown") .
|
||||
":".$value;
|
||||
":".($value eq "00" ? "off" : ($value eq "ff" ? "on" : hex($value)));
|
||||
}
|
||||
|
||||
sub
|
||||
|
Loading…
x
Reference in New Issue
Block a user