2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +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>
<h3>attr</h3>
<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>.
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>
<h3>attr</h3>
<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>
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>
<h3>define</h3>
<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>
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 = (
"?" => { ReplacedBy => "help" },
"attr" => { Fn=>"CommandAttr",
Hlp=>"<devspec> <attrname> [<attrval>],set attribute for <devspec>"},
Hlp=>"[-a] [-r] <devspec> <attrname> [<attrval>],".
"set attribute for <devspec>"},
"cancel" => { Fn=>"CommandCancel",
Hlp=>"[<id> [quiet]],list sleepers, cancel sleeper with <id>" },
"createlog"=> { ModuleName => "autocreate" },
"define" => { Fn=>"CommandDefine",
Hlp=>"<name> <type> <options>,define a device" },
Hlp=>"[option] <name> <type> <options>,define a device" },
"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",
Hlp=>"<devspec> [<attrname>],delete attribute for <devspec>" },
"deletereading" => { Fn=>"CommandDeleteReading",
Hlp=>"<devspec> [<attrname>],delete user defined reading for ".
Hlp=>"<devspec> [<readingname>],delete user defined reading for ".
"<devspec>" },
"delete" => { Fn=>"CommandDelete",
Hlp=>"<devspec>,delete the corresponding definition(s)"},
"displayattr"=> { Fn=>"CommandDisplayAttr",
Hlp=>"<devspec> [attrname],display attributes" },
"get" => { Fn=>"CommandGet",
Hlp=>"<devspec> <type dependent>,request data from <devspec>" },
Hlp=>"<devspec> <type-specific>,request data from <devspec>" },
"include" => { Fn=>"CommandInclude",
Hlp=>"<filename>,read the commands from <filenname>" },
Hlp=>"<filename>,read the commands from <filename>" },
"iowrite" => { Fn=>"CommandIOWrite",
Hlp=>"<iodev> <data>,write raw data with iodev" },
"list" => { Fn=>"CommandList",
Hlp=>"[-r] [devspec],list definitions and status info" },
Hlp=>"[-r] [devspec] [value],list definitions and status info" },
"modify" => { Fn=>"CommandModify",
Hlp=>"device <options>,modify the definition (e.g. at, notify)" },
Hlp=>"device <type-dependent-options>","modify the definition" },
"quit" => { Fn=>"CommandQuit",
ClientFilter => "telnet",
Hlp=>",end the client session" },
@ -436,7 +438,7 @@ my %ra = (
ClientFilter => "telnet",
Hlp=>",end the client session" },
"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",
Hlp=>"<old> <new>,rename a definition" },
"rereadcfg" => { Fn=>"CommandRereadCfg",
@ -446,22 +448,24 @@ my %ra = (
"save" => { Fn=>"CommandSave",
Hlp=>"[configfile],write the configfile and the statefile" },
"set" => { Fn=>"CommandSet",
Hlp=>"<devspec> <type dependent>,transmit code for <devspec>" },
Hlp=>"<devspec> <type-specific>,transmit code for <devspec>" },
"setreading" => { Fn=>"CommandSetReading",
Hlp=>"<devspec> <reading> <value>,set reading for <devspec>" },
"setstate"=> { Fn=>"CommandSetstate",
Hlp=>"<devspec> <state>,set the state shown in the command list" },
"setuuid" => { Fn=>"CommandSetuuid", Hlp=>"" },
"setdefaultattr" => { Fn=>"CommandDefaultAttr",
Hlp=>"<attrname> <attrvalue>,set attr for following definitions" },
Hlp=>"[<attrname> [<attrvalue>]],".
"set attr for following definitions" },
"shutdown"=> { Fn=>"CommandShutdown",
Hlp=>"[restart|exitValue],terminate the server" },
"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",
Hlp=>"<devspec> <state>,trigger notify command" },
"update" => {
Hlp => "[<fileName>|all|check|force] ".
Hlp => "[<fileName>|all|check|checktime|force] ".
"[http://.../controlfile],update FHEM" },
"updatefhem" => { ReplacedBy => "update" },
"usb" => { ModuleName => "autocreate" },