diff --git a/fhem/docs/faq.html b/fhem/docs/faq.html
index f4a6c58b4..d51edd5c0 100644
--- a/fhem/docs/faq.html
+++ b/fhem/docs/faq.html
@@ -44,6 +44,8 @@ hex code needed by fhem.pl?
11. I'd like to use this sunrise/sunset stuff, can you help
me?
+12. I'd like to switch on the ventilator if the FHT tells me its too hot. How to tell fhem to do that?
+
@@ -215,7 +217,7 @@ by fhem.pl?
Convert the first 2 digits first from decimal to hex, then the next two. Example:
% bc - set obase=16 + obase=16 <first two digits> <last two digits>E.g The FHT8b code 1121 is 0b15 for the fhem.pl @@ -252,5 +254,33 @@ by fhem.pl? HH:MM:SS format. + +12. I'd like to switch on the ventilator if the FHT tells me its too hot. How to tell fhem to do that? +
+ # Check simply the value. It is the same as seen in "list" + FHZ> {$value{myfht}} + measured-temp: 23.8 (Celsius) + + # Get the second word, so we can compare it. + FHZ> { my @a = split(" ", $value{myfht});; $a[1] } + 23.8 + + # Set the ventilator on now, if its too hot. + FHZ> { my @a = split(" ", $value{myfht});; fhem("set ventilator on") if($a[1] > 25.0) } + + # Now do this regularly + FHZ> define chilldown at +*00:30:00 { my @a = split(" ", $value{myfht});; fhem("set ventilator on") if($a[1] > 25.0) } + + # An alternative: + FHZ> define chilldown at +*00:30:00 { fhem("set ventilator on") if($value{myfht} gt "measured-temp: 25.0") } ++ + +