2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

$value -> Value

git-svn-id: https://svn.fhem.de/fhem/trunk@2704 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-02-12 12:13:00 +00:00
parent 15af99f98e
commit d202bdfcb1

View File

@ -336,21 +336,21 @@ by fhem.pl?</h4>
<pre>
# Check simply the value. It is the same as seen in "list"
fhem> {$value{myfht}}
fhem> {Value(myfht)}
measured-temp: 23.8 (Celsius)
# Get the second word, so we can compare it.
fhem> { my @a = split(" ", $value{myfht});; $a[1] }
fhem> { my @a = split(" ", Value(myfht));; $a[1] }
23.8
# Set the ventilator on now, if its too hot.
fhem> { my @a = split(" ", $value{myfht});; fhem("set ventilator on") if($a[1] > 25.0) }
fhem> { my @a = split(" ", Value(myfht));; fhem("set ventilator on") if($a[1] > 25.0) }
# Now do this regularly
fhem> define chilldown at +*00:30:00 { my @a = split(" ", $value{myfht});; fhem("set ventilator on") if($a[1] > 25.0) }
fhem> define chilldown at +*00:30:00 { my @a = split(" ", Value(myfht));; fhem("set ventilator on") if($a[1] > 25.0) }
# An alternative:
fhem> define chilldown at +*00:30:00 { fhem("set ventilator on") if($value{myfht} gt "measured-temp: 25.0") }
fhem> define chilldown at +*00:30:00 { fhem("set ventilator on") if(Value(myfht) gt "measured-temp: 25.0") }
</pre>
</ul>