mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
10_ZWave.pm: For V4 meter-report decode at least the V2/V3 part (Forum #89564)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17041 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
de13e9d2e8
commit
a346fa9292
@ -1792,11 +1792,15 @@ ZWave_meterGet($)
|
||||
|
||||
}
|
||||
|
||||
#V2: 1b7:reset 1b65:resrvd, 1b4-0:type, 2b7-4:resrvd, 2b3-0:scale
|
||||
#V3: 1b7:reset 1b65:resrvd, 1b4-0:type, 2b:scale
|
||||
#V4: 1b7:reset 1b65:rate, 1b4-0:type, 2b7:mst, 2b6-0:scale1, 3b:#scaleBytes,...
|
||||
# No V4 support...
|
||||
sub
|
||||
ZWave_meterSupportedParse($$)
|
||||
{
|
||||
my ($hash,$val) = @_;
|
||||
return if($val !~ m/^(..)(..)$/);
|
||||
return if($val !~ m/^(..)(..)/);
|
||||
my ($v1, $v2) = (hex($1), hex($2));
|
||||
|
||||
my $name = $hash->{NAME};
|
||||
|
Loading…
x
Reference in New Issue
Block a user