2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

98_autocreate.pm: ignoreTypes is checked for type:name too (Forum #115128)

git-svn-id: https://svn.fhem.de/fhem/trunk@22996 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-10-20 09:12:13 +00:00
parent 013fe1eda7
commit eedd0b1d62

View File

@ -136,6 +136,7 @@ autocreate_Notify($$)
$it = "^$it\$" if($featurelevel > 5.8); # Forum #80775
next if($it && $name =~ m/$it/i);
next if($it && "$type:$name" =~ m/$it/i);
my $at = AttrVal($me, "autocreateThreshold", undef);
LoadModule($type) if( !$at );
@ -810,11 +811,11 @@ autocreate_Attr(@)
This is a regexp, to ignore certain devices, e.g. the neighbours FHT.
You can specify more than one, with usual regexp syntax, e.g.<br>
attr autocreate ignoreTypes (CUL_HOERMANN.*|FHT_1234|CUL_WS_7)<br>
The word "Types" is somehow misleading, as it actually checks the
generated device name.<br>
The word "Types" is somehow misleading, as it first checks the
generated device name, and then the type:name pair.<br>
<b>Note</b>: starting with featurelevel 5.8 the regexp is automatically
extended with ^ and $, so that it must match the whole name (same
procedure as in notify and FileLog).
extended with ^ and $, so that it must match the whole name or
type:name (same procedure as in notify and FileLog).
</li><br>
<a name="autocreateThreshold"></a>
@ -977,8 +978,8 @@ autocreate_Attr(@)
mehr als ein Ger&auml;t &uuml;ber die normale Regexp-Syntax angegeben
werden. Beispiel:<br>
attr autocreate ignoreTypes (CUL_HOERMANN.*|FHT_1234|CUL_WS_7)<br>
Das Wort "Types" ist etwas irref&uuml;hrend, da der Ger&auml;tename
gepr&uuml;ft wird, und nicht der Typ.<br>
Das Wort "Types" ist etwas irref&uuml;hrend, da erst der Ger&auml;tename
gepr&uuml;ft wird, und dann der Konstrukt Typ:Ger&auml;tename.<br>
<b>Achtung</b>: ab featurelevel 5.8 wird der Regexp automatisch mit
^ und $ erg&auml;nzt, muss also den kompletten Namen matchen (genau wie
bei notify und FileLog).