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