new helper module dewpoint
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1436 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -156,6 +156,7 @@
|
||||
<a href="#at">at</a>
|
||||
<a href="#autocreate">autocreate</a>
|
||||
<a href="#average">average</a>
|
||||
<a href="#dewpoint">dewpoint</a>
|
||||
<a href="#dummy">dummy</a>
|
||||
<a href="#dumpdef">dumpdef</a>
|
||||
<a href="#holiday">holiday</a>
|
||||
@@ -8411,6 +8412,130 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK. <br> You need to define an RFXtrx433
|
||||
</ul>
|
||||
|
||||
|
||||
<a name="dewpoint"></a>
|
||||
<h3>dewpoint</h3>
|
||||
<ul>
|
||||
Dewpoint calculations. Offers three different ways to use dewpoint: <br>
|
||||
<ul>
|
||||
<li><b>dewpoint</b><br>
|
||||
Compute additional event dewpoint from a sensor offering temperature and humidity.</li>
|
||||
<li><b>fan</b><br>
|
||||
Generate a event to turn a fan on if the outside air has less water than the inside.</li>
|
||||
<li><b>alarm</b><br>
|
||||
Generate a mold alarm if a reference temperature is lower that the current dewpoint.</li>
|
||||
<br>
|
||||
</ul>
|
||||
|
||||
<a name="dewpointdefine"></a>
|
||||
<b>Define</b>
|
||||
<ul>
|
||||
<code>define <name> dewpoint dewpoint <devicename-regex> [<temp_name> <hum_name> <new_name>]</code><br>
|
||||
<br>
|
||||
<ul>
|
||||
Calculates dewpoint for device <devicename-regex> from temperature and humidity
|
||||
and write it to a new reading named dewpoint.
|
||||
If optional <temp_name>, <hum_name> and <new_name> is specified
|
||||
then read temperature from reading <temp_name>, humidity from reading <hum_name>
|
||||
and write the calculated dewpoint to reading <new_name>.<br>
|
||||
If <temp_name> is T then use temperature from state T: H:, add <new_name> to the state.
|
||||
</ul>
|
||||
<br>
|
||||
|
||||
Example:<PRE>
|
||||
# Compute the dewpoint for the temperature/humidity
|
||||
# events of the temp1 device and generate reading dewpoint.
|
||||
define dew_temp1 dewpoint dewpoint temp1
|
||||
define dew_temp1 dewpoint dewpoint temp1 temperature humidity dewpoint
|
||||
|
||||
# Compute the dewpoint for the temperature/humidity
|
||||
# events of all devices offering temperature and humidity
|
||||
# and generate reading dewpoint.
|
||||
define dew_all dewpoint dewpoint .*
|
||||
define dew_all dewpoint dewpoint .* temperature humidity dewpoint
|
||||
|
||||
# Compute the dewpoint for the temperature/humidity
|
||||
# events of the device Aussen_1 offering temperature and humidity
|
||||
# and insert is into STATE.
|
||||
define dew_state dewpoint dewpoint Aussen_1 T H D
|
||||
|
||||
# Compute the dewpoint for the temperature/humidity
|
||||
# events of all devices offering temperature and humidity
|
||||
# and insert the result into the STATE.
|
||||
# Example STATE: "T: 10 H: 62.5" will change to
|
||||
# "T: 10 H: 62.5 D: 3.2"
|
||||
define dew_state dewpoint dewpoint .* T H D
|
||||
|
||||
</PRE>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<code>define <name> dewpoint fan <devicename-regex> <devicename-outside> <min-temp></code><br>
|
||||
<br>
|
||||
<ul>
|
||||
May be used to turn an fan on or off if the outside air has less water.
|
||||
<ul>
|
||||
<li>
|
||||
Generate event "fan: on" if dewpoint of <devicename-outside> is lower
|
||||
than dewpoint of <devicename> and temperature of <devicename-outside> is >= min-temp
|
||||
and reading "fan" was not already "on".</li>
|
||||
<li>Generate event "fan: off": else and if reading "fan" was not already "off".</li>
|
||||
</ul>
|
||||
</ul>
|
||||
<br>
|
||||
|
||||
Example:<PRE>
|
||||
# Generate event "fan: on" when dewpoint of Aussen_1 is first
|
||||
# time lower than Keller_Raum1 and outside temperature is >= 0
|
||||
# and change it to "fan: off" is this condition changes.
|
||||
define dew_fan1 dewpoint fan Keller_Raum1 Aussen_1 0
|
||||
|
||||
</PRE>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<code>define <name> dewpoint alarm <devicename-regex> <devicename-reference> <diff-temp></code><br>
|
||||
<br>
|
||||
<ul>
|
||||
Generate a mold alarm if a reference temperature is lower that the current dewpoint.
|
||||
<ul>
|
||||
<li>
|
||||
Generate reading/event "alarm: on" if temperature of <devicename-reference> - <diff-temp> is lower
|
||||
than dewpoint of <devicename> and reading "alarm" was not already "on".</li>
|
||||
<li>Generate reading/event "alarm: off" if temperature of <devicename-reference> - <diff-temp> is higher than dewpoint of <devicename> and reading "alarm" was not already "off".</li>
|
||||
</ul>
|
||||
</ul>
|
||||
<br>
|
||||
|
||||
Example:<PRE>
|
||||
# Using a wall temperature sensor (wallsensor) and a temp/hum sensor
|
||||
# (roomsensor) to alarm if the temperature of the wall is lower than
|
||||
# the dewpoint of the air. In this case the water of the air will
|
||||
# condense on the wall because the wall is cold.
|
||||
define dew_alarm1 dewpoint alarm roomsensor wallsensor 0
|
||||
|
||||
# If you do not have a temperature sensor in/on the wall, you may also
|
||||
# compare the rooms dewpoint to the temperature of the same or another
|
||||
# inside sensor. Alarm is temperature is 5 degrees colder than the
|
||||
# inside dewpointinside.
|
||||
define dev_alarm2 dewpoint alarm roomsensor roomsensor 5
|
||||
|
||||
</PRE>
|
||||
</ul>
|
||||
|
||||
<a name="dewpointset"></a>
|
||||
<b>Set</b> <ul>N/A</ul><br>
|
||||
|
||||
<a name="dewpointget"></a>
|
||||
<b>Get</b> <ul>N/A</ul><br>
|
||||
|
||||
<a name="dewpointattr"></a>
|
||||
<b>Attributes</b>
|
||||
<ul>
|
||||
<li><a href="#disable">disable</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
|
||||
<a name="holiday"></a>
|
||||
<h3>holiday</h3>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user