2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

fhem.pl: update command options in help (Forum #104743)

git-svn-id: https://svn.fhem.de/fhem/trunk@20407 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-10-25 09:35:24 +00:00
parent b580e5221f
commit f87cb0d313
3 changed files with 23 additions and 16 deletions

View File

@ -692,7 +692,8 @@ The following local attributes are used by a wider range of devices:
<a name="attr"></a> <a name="attr"></a>
<h3>attr</h3> <h3>attr</h3>
<ul> <ul>
<code>attr [-a|-r] &lt;devspec&gt; &lt;attrname&gt; [&lt;value&gt;]</code><br> <code>attr [-a] [-r] &lt;devspec&gt; &lt;attrname&gt; [&lt;value&gt;]</code>
<br>
<br>Set an attribute for a device defined by <a href="#define">define</a>. <br>Set an attribute for a device defined by <a href="#define">define</a>.
The value is optional, and is set to 1 if missing. The value is optional, and is set to 1 if missing.

View File

@ -704,7 +704,8 @@ Die folgenden lokalen Attribute werden von mehreren Ger&auml;ten verwendet:
<a name="attr"></a> <a name="attr"></a>
<h3>attr</h3> <h3>attr</h3>
<ul> <ul>
<code>attr [-a|-r] &lt;devspec&gt; &lt;attrname&gt; [&lt;value&gt;]</code><br> <code>attr [-a] [-r] &lt;devspec&gt; &lt;attrname&gt; [&lt;value&gt;]</code>
<br>
<br> <br>
Dieser Befehl setzt ein Attribut f&uuml;r ein Ger&auml;t welches mit <a Dieser Befehl setzt ein Attribut f&uuml;r ein Ger&auml;t welches mit <a
@ -765,7 +766,8 @@ Die folgenden lokalen Attribute werden von mehreren Ger&auml;ten verwendet:
<a name="define"></a> <a name="define"></a>
<h3>define</h3> <h3>define</h3>
<ul> <ul>
<code>define [option] &lt;name&gt; &lt;type&gt; &lt;type-specific&gt;</code><br> <code>define [option] &lt;name&gt; &lt;type&gt; &lt;type-specific&gt;</code>
<br>
<br> <br>
Definiert ein Ger&auml;t. Sie m&uuml;ssen Ger&auml;te einrichten um sie zu Definiert ein Ger&auml;t. Sie m&uuml;ssen Ger&auml;te einrichten um sie zu

View File

@ -402,33 +402,35 @@ my %ra = (
%cmds = ( %cmds = (
"?" => { ReplacedBy => "help" }, "?" => { ReplacedBy => "help" },
"attr" => { Fn=>"CommandAttr", "attr" => { Fn=>"CommandAttr",
Hlp=>"<devspec> <attrname> [<attrval>],set attribute for <devspec>"}, Hlp=>"[-a] [-r] <devspec> <attrname> [<attrval>],".
"set attribute for <devspec>"},
"cancel" => { Fn=>"CommandCancel", "cancel" => { Fn=>"CommandCancel",
Hlp=>"[<id> [quiet]],list sleepers, cancel sleeper with <id>" }, Hlp=>"[<id> [quiet]],list sleepers, cancel sleeper with <id>" },
"createlog"=> { ModuleName => "autocreate" }, "createlog"=> { ModuleName => "autocreate" },
"define" => { Fn=>"CommandDefine", "define" => { Fn=>"CommandDefine",
Hlp=>"<name> <type> <options>,define a device" }, Hlp=>"[option] <name> <type> <options>,define a device" },
"defmod" => { Fn=>"CommandDefMod", "defmod" => { Fn=>"CommandDefMod",
Hlp=>"<name> <type> <options>,define or modify a device" }, Hlp=>"[-temporary] <name> <type> <options>,".
"define or modify a device" },
"deleteattr" => { Fn=>"CommandDeleteAttr", "deleteattr" => { Fn=>"CommandDeleteAttr",
Hlp=>"<devspec> [<attrname>],delete attribute for <devspec>" }, Hlp=>"<devspec> [<attrname>],delete attribute for <devspec>" },
"deletereading" => { Fn=>"CommandDeleteReading", "deletereading" => { Fn=>"CommandDeleteReading",
Hlp=>"<devspec> [<attrname>],delete user defined reading for ". Hlp=>"<devspec> [<readingname>],delete user defined reading for ".
"<devspec>" }, "<devspec>" },
"delete" => { Fn=>"CommandDelete", "delete" => { Fn=>"CommandDelete",
Hlp=>"<devspec>,delete the corresponding definition(s)"}, Hlp=>"<devspec>,delete the corresponding definition(s)"},
"displayattr"=> { Fn=>"CommandDisplayAttr", "displayattr"=> { Fn=>"CommandDisplayAttr",
Hlp=>"<devspec> [attrname],display attributes" }, Hlp=>"<devspec> [attrname],display attributes" },
"get" => { Fn=>"CommandGet", "get" => { Fn=>"CommandGet",
Hlp=>"<devspec> <type dependent>,request data from <devspec>" }, Hlp=>"<devspec> <type-specific>,request data from <devspec>" },
"include" => { Fn=>"CommandInclude", "include" => { Fn=>"CommandInclude",
Hlp=>"<filename>,read the commands from <filenname>" }, Hlp=>"<filename>,read the commands from <filename>" },
"iowrite" => { Fn=>"CommandIOWrite", "iowrite" => { Fn=>"CommandIOWrite",
Hlp=>"<iodev> <data>,write raw data with iodev" }, Hlp=>"<iodev> <data>,write raw data with iodev" },
"list" => { Fn=>"CommandList", "list" => { Fn=>"CommandList",
Hlp=>"[-r] [devspec],list definitions and status info" }, Hlp=>"[-r] [devspec] [value],list definitions and status info" },
"modify" => { Fn=>"CommandModify", "modify" => { Fn=>"CommandModify",
Hlp=>"device <options>,modify the definition (e.g. at, notify)" }, Hlp=>"device <type-dependent-options>","modify the definition" },
"quit" => { Fn=>"CommandQuit", "quit" => { Fn=>"CommandQuit",
ClientFilter => "telnet", ClientFilter => "telnet",
Hlp=>",end the client session" }, Hlp=>",end the client session" },
@ -436,7 +438,7 @@ my %ra = (
ClientFilter => "telnet", ClientFilter => "telnet",
Hlp=>",end the client session" }, Hlp=>",end the client session" },
"reload" => { Fn=>"CommandReload", "reload" => { Fn=>"CommandReload",
Hlp=>"<module-name>,reload the given module (e.g. 99_PRIV)" }, Hlp=>"<module>,reload the given module (e.g. 99_PRIV)" },
"rename" => { Fn=>"CommandRename", "rename" => { Fn=>"CommandRename",
Hlp=>"<old> <new>,rename a definition" }, Hlp=>"<old> <new>,rename a definition" },
"rereadcfg" => { Fn=>"CommandRereadCfg", "rereadcfg" => { Fn=>"CommandRereadCfg",
@ -446,22 +448,24 @@ my %ra = (
"save" => { Fn=>"CommandSave", "save" => { Fn=>"CommandSave",
Hlp=>"[configfile],write the configfile and the statefile" }, Hlp=>"[configfile],write the configfile and the statefile" },
"set" => { Fn=>"CommandSet", "set" => { Fn=>"CommandSet",
Hlp=>"<devspec> <type dependent>,transmit code for <devspec>" }, Hlp=>"<devspec> <type-specific>,transmit code for <devspec>" },
"setreading" => { Fn=>"CommandSetReading", "setreading" => { Fn=>"CommandSetReading",
Hlp=>"<devspec> <reading> <value>,set reading for <devspec>" }, Hlp=>"<devspec> <reading> <value>,set reading for <devspec>" },
"setstate"=> { Fn=>"CommandSetstate", "setstate"=> { Fn=>"CommandSetstate",
Hlp=>"<devspec> <state>,set the state shown in the command list" }, Hlp=>"<devspec> <state>,set the state shown in the command list" },
"setuuid" => { Fn=>"CommandSetuuid", Hlp=>"" }, "setuuid" => { Fn=>"CommandSetuuid", Hlp=>"" },
"setdefaultattr" => { Fn=>"CommandDefaultAttr", "setdefaultattr" => { Fn=>"CommandDefaultAttr",
Hlp=>"<attrname> <attrvalue>,set attr for following definitions" }, Hlp=>"[<attrname> [<attrvalue>]],".
"set attr for following definitions" },
"shutdown"=> { Fn=>"CommandShutdown", "shutdown"=> { Fn=>"CommandShutdown",
Hlp=>"[restart|exitValue],terminate the server" }, Hlp=>"[restart|exitValue],terminate the server" },
"sleep" => { Fn=>"CommandSleep", "sleep" => { Fn=>"CommandSleep",
Hlp=>"<sec> [<id>] [quiet],sleep for sec, 3 decimal places" }, Hlp=>"<sec|timespec|regex> [<id>] [quiet],".
"sleep for sec, 3 decimal places" },
"trigger" => { Fn=>"CommandTrigger", "trigger" => { Fn=>"CommandTrigger",
Hlp=>"<devspec> <state>,trigger notify command" }, Hlp=>"<devspec> <state>,trigger notify command" },
"update" => { "update" => {
Hlp => "[<fileName>|all|check|force] ". Hlp => "[<fileName>|all|check|checktime|force] ".
"[http://.../controlfile],update FHEM" }, "[http://.../controlfile],update FHEM" },
"updatefhem" => { ReplacedBy => "update" }, "updatefhem" => { ReplacedBy => "update" },
"usb" => { ModuleName => "autocreate" }, "usb" => { ModuleName => "autocreate" },