ExactId added

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

View File

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