mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
Added alias & some reformatting
git-svn-id: https://svn.fhem.de/fhem/trunk@554 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ca6c0d2f67
commit
d5f841ef03
@ -19,29 +19,29 @@
|
||||
<b>fhem commands</b>
|
||||
<ul>
|
||||
|
||||
<a href="#attr">attr</a>
|
||||
<a href="#define">define</a>
|
||||
<a href="#delete">delete</a>
|
||||
<a href="#deleteattr">deleteattr</a>
|
||||
<a href="#get">get</a>
|
||||
<a href="#getstate">getstate</a>
|
||||
<a href="#help">?,help</a>
|
||||
<a href="#include">include</a>
|
||||
<a href="#inform">inform</a>
|
||||
<a href="#list">list</a>
|
||||
<a href="#modify">modify</a>
|
||||
<a href="#quit">quit</a>
|
||||
<a href="#reload">reload</a>
|
||||
<a href="#rename">rename</a>
|
||||
<a href="#rereadcfg">rereadcfg</a>
|
||||
<a href="#save">save</a>
|
||||
<a href="#set">set</a>
|
||||
<a href="#setdefaultattr">setdefaultattr</a>
|
||||
<a href="#setstate">setstate</a>
|
||||
<a href="#shutdown">shutdown</a>
|
||||
<a href="#sleep">sleep</a>
|
||||
<a href="#trigger">trigger</a>
|
||||
<a href="#xmllist">xmllist</a>
|
||||
<a href="#attr">attr</a>
|
||||
<a href="#define">define</a>
|
||||
<a href="#delete">delete</a>
|
||||
<a href="#deleteattr">deleteattr</a>
|
||||
<a href="#get">get</a>
|
||||
<a href="#getstate">getstate</a>
|
||||
<a href="#help">?,help</a>
|
||||
<a href="#include">include</a>
|
||||
<a href="#inform">inform</a>
|
||||
<a href="#list">list</a>
|
||||
<a href="#modify">modify</a>
|
||||
<a href="#quit">quit</a>
|
||||
<a href="#reload">reload</a>
|
||||
<a href="#rename">rename</a>
|
||||
<a href="#rereadcfg">rereadcfg</a>
|
||||
<a href="#save">save</a>
|
||||
<a href="#set">set</a>
|
||||
<a href="#setdefaultattr">setdefaultattr</a>
|
||||
<a href="#setstate">setstate</a>
|
||||
<a href="#shutdown">shutdown</a>
|
||||
<a href="#sleep">sleep</a>
|
||||
<a href="#trigger">trigger</a>
|
||||
<a href="#xmllist">xmllist</a>
|
||||
|
||||
</ul>
|
||||
|
||||
@ -50,62 +50,62 @@
|
||||
<ul>
|
||||
<a href="#global">global</a><br>
|
||||
|
||||
<a href="#BS">BS</a>
|
||||
<a href="#CM11">CM11</a>
|
||||
<a href="#CUL">CUL</a>
|
||||
<a href="#CUL_EM">CUL_EM</a>
|
||||
<a href="#CUL_FHTTK">CUL_FHTTK</a>
|
||||
<a href="#CUL_WS">CUL_WS</a>
|
||||
<a href="#CUL_RFR">CUL_RFR</a>
|
||||
<a href="#DbLog">DbLog</a>
|
||||
<a href="#EM">EM</a>
|
||||
<a href="#EMEM">EMEM</a>
|
||||
<a href="#EMGZ">EMGZ</a>
|
||||
<a href="#EMWZ">EMWZ</a>
|
||||
<a href="#FHT">FHT</a>
|
||||
<a href="#FHZ">FHZ</a>
|
||||
<a href="#FS20">FS20</a>
|
||||
<a href="#HMS">HMS</a>
|
||||
<a href="#FHEMWEB">FHEMWEB</a>
|
||||
<a href="#IPWE">IPWE</a>
|
||||
<a href="#KS300">KS300</a>
|
||||
<a href="#LIRC">LIRC</a>
|
||||
<a href="#M232">M232</a>
|
||||
<a href="#M232Counter">M232Counter</a>
|
||||
<a href="#M232Voltage">M232Voltage</a>
|
||||
<a href="#OWFS">OWFS</a>
|
||||
<a href="#OWTEMP">OWTEMP</a>
|
||||
<a href="#DS18S20">DS18S20</a>
|
||||
<a href="#SCIVT">SCIVT</a>
|
||||
<a href="#structure">structure</a>
|
||||
<a href="#WS2000">WS2000</a>
|
||||
<a href="#WS3600">WS3600</a>
|
||||
<a href="#SISPM">SISPM</a>
|
||||
<a href="#SIS_PMS">SIS_PMS</a>
|
||||
<a href="#WS300">WS300</a>
|
||||
<a href="#Weather">Weather</a>
|
||||
<a href="#USF1000">USF1000</a>
|
||||
<a href="#X10">X10</a>
|
||||
<a href="#xxLG7000">xxLG7000</a>
|
||||
<a href="#LGTV">LGTV</a>
|
||||
<a href="#FHEMRENDERER">FHEMRENDERER</a>
|
||||
<a href="#BS">BS</a>
|
||||
<a href="#CM11">CM11</a>
|
||||
<a href="#CUL">CUL</a>
|
||||
<a href="#CUL_EM">CUL_EM</a>
|
||||
<a href="#CUL_FHTTK">CUL_FHTTK</a>
|
||||
<a href="#CUL_WS">CUL_WS</a>
|
||||
<a href="#CUL_RFR">CUL_RFR</a>
|
||||
<a href="#DbLog">DbLog</a>
|
||||
<a href="#EM">EM</a>
|
||||
<a href="#EMEM">EMEM</a>
|
||||
<a href="#EMGZ">EMGZ</a>
|
||||
<a href="#EMWZ">EMWZ</a>
|
||||
<a href="#FHT">FHT</a>
|
||||
<a href="#FHZ">FHZ</a>
|
||||
<a href="#FS20">FS20</a>
|
||||
<a href="#HMS">HMS</a>
|
||||
<a href="#FHEMWEB">FHEMWEB</a>
|
||||
<a href="#IPWE">IPWE</a>
|
||||
<a href="#KS300">KS300</a>
|
||||
<a href="#LIRC">LIRC</a>
|
||||
<a href="#M232">M232</a>
|
||||
<a href="#M232Counter">M232Counter</a>
|
||||
<a href="#M232Voltage">M232Voltage</a>
|
||||
<a href="#OWFS">OWFS</a>
|
||||
<a href="#OWTEMP">OWTEMP</a>
|
||||
<a href="#DS18S20">DS18S20</a>
|
||||
<a href="#SCIVT">SCIVT</a>
|
||||
<a href="#structure">structure</a>
|
||||
<a href="#WS2000">WS2000</a>
|
||||
<a href="#WS3600">WS3600</a>
|
||||
<a href="#SISPM">SISPM</a>
|
||||
<a href="#SIS_PMS">SIS_PMS</a>
|
||||
<a href="#WS300">WS300</a>
|
||||
<a href="#Weather">Weather</a>
|
||||
<a href="#USF1000">USF1000</a>
|
||||
<a href="#X10">X10</a>
|
||||
<a href="#xxLG7000">xxLG7000</a>
|
||||
<a href="#LGTV">LGTV</a>
|
||||
<a href="#FHEMRENDERER">FHEMRENDERER</a>
|
||||
|
||||
</ul>
|
||||
|
||||
<br>
|
||||
<b>Helper modules</b>
|
||||
<ul>
|
||||
<a href="#FileLog">FileLog</a>
|
||||
<a href="#PachLog">PachLog</a>
|
||||
<a href="#SUNRISE_EL">SUNRISE_EL</a>
|
||||
<a href="#at">at</a>
|
||||
<a href="#autocreate">autocreate</a>
|
||||
<a href="#dummy">dummy</a>
|
||||
<a href="#dumpdef">dumpdef</a>
|
||||
<a href="#holiday">holiday</a>
|
||||
<a href="#notify">notify</a>
|
||||
<a href="#watchdog">watchdog</a>
|
||||
<a href="#weblink">weblink</a>
|
||||
<a href="#FileLog">FileLog</a>
|
||||
<a href="#PachLog">PachLog</a>
|
||||
<a href="#SUNRISE_EL">SUNRISE_EL</a>
|
||||
<a href="#at">at</a>
|
||||
<a href="#autocreate">autocreate</a>
|
||||
<a href="#dummy">dummy</a>
|
||||
<a href="#dumpdef">dumpdef</a>
|
||||
<a href="#holiday">holiday</a>
|
||||
<a href="#notify">notify</a>
|
||||
<a href="#watchdog">watchdog</a>
|
||||
<a href="#weblink">weblink</a>
|
||||
|
||||
</ul>
|
||||
|
||||
@ -309,6 +309,12 @@ A line ending with \ will be concatenated with the next one, so long lines
|
||||
Filter/group devices. Recognized by web-pgm2 and web-pgm3.
|
||||
Devices in the room hidden will not appear in the web output.</li>
|
||||
|
||||
<a name="alias"></a>
|
||||
<li>alias<br>
|
||||
Second name (alias), whished for by Martin. Cannot be used
|
||||
directly in fhem, as "set <aliasname> on" wont be recognized, only
|
||||
"set alias=<aliasname> on"</li>
|
||||
|
||||
<a name="showtime"></a>
|
||||
<li>showtime<br>
|
||||
Used in the webfrontend pgm2 to show the time of last activity
|
||||
@ -447,15 +453,13 @@ A line ending with \ will be concatenated with the next one, so long lines
|
||||
<br><br>
|
||||
Output a short space seperated status for <devspec>. It is useful for
|
||||
monitoring the device in e.g. Cacti.<br>
|
||||
Examples:
|
||||
<ul>
|
||||
<pre><code> getstate lamp
|
||||
Examples:<pre>
|
||||
getstate lamp
|
||||
state:1
|
||||
|
||||
getstate fl
|
||||
ack:0 actuator:2 day-temp:21.5 desired-temp:22.5 [...] measured-temp:22.9 [...]
|
||||
</code></pre>
|
||||
</ul>
|
||||
ack:0 actuator:2 day-temp:21.5 desired-temp:22.5 [...]
|
||||
</pre>
|
||||
Note: to use this command copy the file contrib/getstate/99_getstate.pm into
|
||||
your FHEM directory.
|
||||
<br>
|
||||
@ -758,11 +762,12 @@ A line ending with \ will be concatenated with the next one, so long lines
|
||||
Example:
|
||||
<pre> fhem> xmllist
|
||||
<FHZINFO>
|
||||
<internal_LIST>
|
||||
<internal name="global" state="internal" sets="" attrs="room configfile logfile modpath pidfilename port statefile userattr verbose version">
|
||||
<INT key="DEF" value="<no definition>"/>
|
||||
<INT key="NR" value="0"/>
|
||||
<INT key="STATE" value="internal"/>
|
||||
<internal_LIST>
|
||||
<internal name="global" state="internal"
|
||||
sets="" attrs="room configfile logfile ...">
|
||||
<INT key="DEF" value="<no definition>"/>
|
||||
<INT key="NR" value="0"/>
|
||||
<INT key="STATE" value="internal"/>
|
||||
[...]
|
||||
|
||||
</pre>
|
||||
@ -3876,7 +3881,14 @@ Terminating
|
||||
|
||||
<b>Attributes</b>
|
||||
<ul>
|
||||
<li><a href="#fixedrange">fixedrange</a></li>
|
||||
<a name="fixedrange"></a>
|
||||
<li>fixedrange<br/>
|
||||
Can be applied to weblink devices.<br/>
|
||||
Contains two time specs in the form YYYY-MM-DD separated by a space.
|
||||
In plotmode gnuplot-scroll or SVG the given time-range will be used,
|
||||
and no scrolling for this weblinks will be possible. Needed e.g. for
|
||||
looking at last-years data without scrolling.
|
||||
</li><br> </li> </ul>
|
||||
<li><a href="#plotsize">plotsize</a></li>
|
||||
<li><a href="#plotmode">plotmode</a></li>
|
||||
<a name="label">
|
||||
@ -3950,6 +3962,19 @@ Terminating
|
||||
i.e the default http address is http://localhost:8083/fhem
|
||||
</li><br>
|
||||
|
||||
<a name="fwmodpath"></a>
|
||||
<li>fwmodpath<br/>
|
||||
Path to the style, png, gplot and html files. Defaults to <a
|
||||
href="#modpath">modpath</a>/FHEM . Used to configure different fhem
|
||||
servers, e.g. one with small gnuplots for android phones and one with
|
||||
SVG for the desktop browser. </li><br>
|
||||
|
||||
<a name="fwcompress"></a>
|
||||
<li>fwcompress<br/>
|
||||
Compress the output with the gzip method if the browser supports it.
|
||||
Defaults to 1. Set it to 0 if you have a slow CPU with a fast
|
||||
connection.</li><br>
|
||||
|
||||
<a name="refresh"></a>
|
||||
<li>refresh<br/>
|
||||
If set, a http-equiv="refresh" entry will be genererated with the given
|
||||
@ -3990,14 +4015,6 @@ Terminating
|
||||
the weblink.
|
||||
</li><br>
|
||||
|
||||
<a name="fixedrange"></a>
|
||||
<li>fixedrange<br/>
|
||||
Can be applied to weblink devices (FHEMWEB).<br/>
|
||||
Contains two time specs in the form YYYY-MM-DD separated by a space.
|
||||
In plotmode gnuplot-scroll or SVG the given time-range will be used,
|
||||
and no scrolling for this weblinks will be possible. Needed e.g. for
|
||||
looking at last-years data without scrolling.
|
||||
</li><br> </li> </ul>
|
||||
</ul>
|
||||
|
||||
</ul>
|
||||
@ -4029,41 +4046,39 @@ Terminating
|
||||
</ul>
|
||||
<br>
|
||||
|
||||
Examples:
|
||||
<PRE>
|
||||
# absolute ones:
|
||||
define a1 at 17:00:00 set lamp on # fhem command
|
||||
define a2 at 17:00:00 { Log 1, "Teatime" } # Perl command
|
||||
define a3 at 17:00:00 "/bin/echo "Teatime" > /dev/console" # shell command
|
||||
define a4 at *17:00:00 set lamp on # every day
|
||||
Examples:<PRE>
|
||||
# absolute ones:
|
||||
define a1 at 17:00:00 set lamp on # fhem command
|
||||
define a2 at 17:00:00 { Log 1, "Teatime" } # Perl command
|
||||
define a3 at 17:00:00 "/bin/echo "Teatime" > /dev/console" # shell command
|
||||
define a4 at *17:00:00 set lamp on # every day
|
||||
|
||||
# relative ones
|
||||
define a5 at +00:00:10 set lamp on # switch the lamp on in 10 seconds
|
||||
define a6 at +00:00:02 set lamp on-for-timer 1 # Blink once in 2 seconds
|
||||
define a7 at +*{3}00:00:02 set lamp on-for-timer 1 # Blink 3 times
|
||||
# relative ones
|
||||
define a5 at +00:00:10 set lamp on # lamp on in 10 sec
|
||||
define a6 at +00:00:02 set lamp on-for-timer 1 # Blink once in 2 sec
|
||||
define a7 at +*{3}00:00:02 set lamp on-for-timer 1 # Blink 3 times
|
||||
|
||||
# Blink 3 times if the piri sends a command
|
||||
define n1 notify piri:on.* define a8 at +*{3}00:00:02 set lamp on-for-timer 1
|
||||
# Blink 3 times if the piri sends a command
|
||||
define n1 notify piri:on.* define a8 at +*{3}00:00:02 set lamp on-for-timer 1
|
||||
|
||||
# Switch the lamp on from sunset to 11 PM
|
||||
define a9 at +*{sunset_rel()} set lamp on
|
||||
define a10 at *23:00:00 set lamp off
|
||||
# Switch the lamp on from sunset to 11 PM
|
||||
define a9 at +*{sunset_rel()} set lamp on
|
||||
define a10 at *23:00:00 set lamp off
|
||||
|
||||
# More elegant version, works for sunset > 23:00 too
|
||||
define a11 at +*{sunset_rel()} set lamp on-till 23:00
|
||||
# More elegant version, works for sunset > 23:00 too
|
||||
define a11 at +*{sunset_rel()} set lamp on-till 23:00
|
||||
|
||||
# Only do this on weekend
|
||||
define a12 at +*{sunset_rel()} { fhem("set lamp on-till 23:00") if($we) }
|
||||
# Only do this on weekend
|
||||
define a12 at +*{sunset_rel()} { fhem("set lamp on-till 23:00") if($we) }
|
||||
|
||||
# Switch lamp1 and lamp2 on from 7:00 till 10 minutes after sunrise
|
||||
define a13 at *07:00 set lamp1,lamp2 on-till {sunrise(+600)}
|
||||
# Switch lamp1 and lamp2 on from 7:00 till 10 minutes after sunrise
|
||||
define a13 at *07:00 set lamp1,lamp2 on-till {sunrise(+600)}
|
||||
|
||||
# Switch the lamp off 2 minutes after sunrise each day
|
||||
define a14 at +{sunrise(+120)} set lamp on
|
||||
|
||||
# Switch lamp1 on at sunset, not before 18:00 and not after 21:00
|
||||
define a15 at *{sunset(0,"18:00","21:00")} set lamp1 on
|
||||
# Switch the lamp off 2 minutes after sunrise each day
|
||||
define a14 at +{sunrise(+120)} set lamp on
|
||||
|
||||
# Switch lamp1 on at sunset, not before 18:00 and not after 21:00
|
||||
define a15 at *{sunset(0,"18:00","21:00")} set lamp1 on
|
||||
</PRE>
|
||||
|
||||
Notes:<br>
|
||||
|
Loading…
Reference in New Issue
Block a user