mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
added support for autocreate
git-svn-id: https://svn.fhem.de/fhem/trunk@953 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a6cc94f7aa
commit
67a6f518bf
@ -52,8 +52,8 @@ EIB_Define($$)
|
||||
my $u = "wrong syntax: define <name> EIB <group name>";
|
||||
|
||||
return $u if(int(@a) < 3);
|
||||
return "Define $a[0]: wrong group name format: specify as 0-15/0-15/0-255"
|
||||
if( ($a[2] !~ m/^[0-9]{1,2}\/[0-9]{1,2}\/[0-9]{1,3}$/i));
|
||||
return "Define $a[0]: wrong group name format: specify as 0-15/0-15/0-255 or as hex"
|
||||
if( ($a[2] !~ m/^[0-9]{1,2}\/[0-9]{1,2}\/[0-9]{1,3}$/i) && ($a[2] !~ m/^[0-9]{4}$/i));
|
||||
|
||||
my $groupname = eib_name2hex($a[2]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user