Generate UNKNOWN (i.e trigger autocreate) only on pair request.

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@864 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2011-03-15 06:57:59 +00:00
parent 3a815637af
commit f35ff6c780

View File

@ -207,7 +207,7 @@ CUL_HM_Parse($$)
# Generate an UNKNOWN event with a better name # Generate an UNKNOWN event with a better name
if(!$shash) { if(!$shash) {
my $sname = "CUL_HM_$src"; my $sname = "CUL_HM_$src";
if($lcm =~ m/1A8.00/) { if($lcm =~ m/1A8.00/) { # Pairing request
# Prefer subType over model to make autocreate easier. # Prefer subType over model to make autocreate easier.
# besides the model names are quite cryptic # besides the model names are quite cryptic
@ -221,9 +221,10 @@ CUL_HM_Parse($$)
$sname =~ s/-/_/g; $sname =~ s/-/_/g;
} }
Log 3, "CUL_HM Unknown device $sname, please define it";
return "UNDEFINED $sname CUL_HM $src $msg";
} }
Log 3, "CUL_HM Unknown device $sname, please define it"; return "";
return "UNDEFINED $sname CUL_HM $src $msg";
} }
my $name = $shash->{NAME}; my $name = $shash->{NAME};