mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
Generate UNKNOWN (i.e trigger autocreate) only on pair request.
git-svn-id: https://svn.fhem.de/fhem/trunk@864 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
638d387592
commit
5b5a9d3a13
@ -207,7 +207,7 @@ CUL_HM_Parse($$)
|
||||
# Generate an UNKNOWN event with a better name
|
||||
if(!$shash) {
|
||||
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.
|
||||
# besides the model names are quite cryptic
|
||||
@ -221,9 +221,10 @@ CUL_HM_Parse($$)
|
||||
$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 "UNDEFINED $sname CUL_HM $src $msg";
|
||||
return "";
|
||||
}
|
||||
|
||||
my $name = $shash->{NAME};
|
||||
|
Loading…
x
Reference in New Issue
Block a user