2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

ExactId added

git-svn-id: https://svn.fhem.de/fhem/trunk@296 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2008-12-23 08:38:24 +00:00
parent a6e9f36d4d
commit e5c70ca44b

View File

@ -79,6 +79,7 @@ HMS_Parse($$)
my $dev = substr($msg, 16, 4);
my $cde = substr($msg, 11, 1);
my $val = substr($msg, 24, 8) if(length($msg) == 32);
my $odev;
my $type = "";
foreach my $c (keys %codes) {
@ -93,6 +94,7 @@ HMS_Parse($$)
my $odev = $dev;
if(!defined($defptr{$dev})) {
Log 4, "HMS device $dev not defined, using the wildcard device 100$cde";
$odev = $dev;
$dev = "100$cde";
}
@ -233,6 +235,9 @@ HMS_Parse($$)
$def->{STATE} = $val;
$def->{CHANGED}[$max] = $val;
$def->{CHANGED}[$max+1] = "ExactId: $odev" if($odev);
return $def->{NAME};
}