diff --git a/docs/commandref.html b/docs/commandref.html index fe7840332..08bbac54a 100644 --- a/docs/commandref.html +++ b/docs/commandref.html @@ -19,29 +19,29 @@ fhem commands
getstate lamp
+ Examples:
+ getstate lamp
state:1
getstate fl
- ack:0 actuator:2 day-temp:21.5 desired-temp:22.5 [...] measured-temp:22.9 [...]
-
-
+ ack:0 actuator:2 day-temp:21.5 desired-temp:22.5 [...]
+
Note: to use this command copy the file contrib/getstate/99_getstate.pm into
your FHEM directory.
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"/>
[...]
@@ -3876,7 +3881,14 @@ Terminating
Attributes
- # 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:
+# 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
Notes: