autocreate.pm: Add ModeleName to the usb and createlog commands

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8138 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-03-02 19:26:54 +00:00
parent d013989475
commit d0584cdc7d
2 changed files with 4 additions and 3 deletions

View File

@ -46,7 +46,6 @@ my %zwave_class = (
reportOn => "03FF", reportOn => "03FF",
reportOff => "0300", }, reportOff => "0300", },
get => { swmStatus => "02", }, get => { swmStatus => "02", },
#03260363 reported in http://forum.fhem.de/index.php?t=rview&th=10216
parse => { "032603(.*)"=> '($1 eq "00" ? "state:off" : parse => { "032603(.*)"=> '($1 eq "00" ? "state:off" :
($1 eq "ff" ? "state:on" : ($1 eq "ff" ? "state:on" :
"state:dim ".hex($1)))',}, }, "state:dim ".hex($1)))',}, },

View File

@ -70,11 +70,13 @@ autocreate_Initialize($)
$hash->{AttrList}= "autosave filelog device_room weblink weblink_room " . $hash->{AttrList}= "autosave filelog device_room weblink weblink_room " .
"disable ignoreTypes"; "disable ignoreTypes";
my %ahash = ( Fn=>"CommandCreateLog", my %ahash = ( Fn=>"CommandCreateLog",
Hlp=>"<device>,create log/weblink for <device>" ); Hlp=>"<device>,create log/weblink for <device>",
ModuleName => "autocreate" );
$cmds{createlog} = \%ahash; $cmds{createlog} = \%ahash;
my %bhash = ( Fn=>"CommandUsb", my %bhash = ( Fn=>"CommandUsb",
Hlp=>"[scan|create],display or create fhem-entries for USB devices" ); Hlp=>"[scan|create],display or create fhem-entries for USB devices",
ModuleName => "autocreate" );
$cmds{usb} = \%bhash; $cmds{usb} = \%bhash;
} }