mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
10_ZWave.pm: fix config report (Forum #36812)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8509 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9574a30e39
commit
c56b8ba368
@ -217,7 +217,7 @@ my %zwave_class = (
|
|||||||
configWord => "04%02x02%04x",
|
configWord => "04%02x02%04x",
|
||||||
configLong => "04%02x04%08x", },
|
configLong => "04%02x04%08x", },
|
||||||
get => { config => "05%02x", },
|
get => { config => "05%02x", },
|
||||||
parse => { "^..70..(..)..(.*)" => 'ZWave_configParse($hash,$1,$2)'} },
|
parse => { "^..70..(..)(..)(.*)" => 'ZWave_configParse($hash,$1,$2,$3)'} },
|
||||||
|
|
||||||
ALARM => { id => '71',
|
ALARM => { id => '71',
|
||||||
get => { alarm => "04%02x", },
|
get => { alarm => "04%02x", },
|
||||||
@ -1173,9 +1173,10 @@ ZWave_protectionParse($$)
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub
|
sub
|
||||||
ZWave_configParse($$$)
|
ZWave_configParse($$$$)
|
||||||
{
|
{
|
||||||
my ($hash, $cmdId, $val) = @_;
|
my ($hash, $cmdId, $size, $val) = @_;
|
||||||
|
$val = substr($val, 0, 2*$size);
|
||||||
$val = hex($val);
|
$val = hex($val);
|
||||||
$cmdId = hex($cmdId);
|
$cmdId = hex($cmdId);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user