CostPerUnit documented for Klaus.

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@416 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2009-07-26 09:16:32 +00:00
parent 556774a272
commit e385ae693d
3 changed files with 64 additions and 25 deletions

View File

@@ -1666,20 +1666,47 @@ A line ending with \ will be concatenated with the next one, so long lines
from EMEM, EMWZ or EMGZ devices.
<br><br>
<a name="CUL_WSdefine"></a>
<a name="CUL_EMdefine"></a>
<b>Define</b>
<ul>
<code>define &lt;name&gt; CUL_EM &lt;code&gt; [corr]</code> <br>
<code>define &lt;name&gt; CUL_EM &lt;code&gt; [corr1 corr2
CostPerUnit BasicFeePerMonth]</code> <br>
<br>
&lt;code&gt; is the code which must be set on the EM device. Valid values
are 1 through 12. 1-4 denotes EMWZ, 5-8 EMEM and 9-12 EMGZ devices.<br>
corr (if specified) will be multiplied to the value delivered in the
message.<br>
are 1 through 12. 1-4 denotes EMWZ, 5-8 EMEM and 9-12 EMGZ devices.<br><br>
<b>corr1</b> is used to correct the current number, <b>corr2</b>
for the total number.
<ul>
<li>for EMWZ devices you should specify the rotation speed (R/kW)
of your watt-meter (e.g. 150)</li>
<li>for EMEM devices the correct value is 0.01.</li>
of your watt-meter (e.g. 150) for corr1 and 12 times this value for
corr2</li>
<li>for EMEM devices the corr1 value is 0.01, and the corr2 value is
0.001 </li>
</ul>
<br>
<b>CostPerUnit</b> and <b>BasicFeePerMonth</b> are used to compute your
daily and mothly fees. Your COST will appear in the log, generated once
daiy (without the basic fee) or month (with the bassic fee included). Your
definition should look like E.g.:
<pre>
define emwz 1 75 900 0.15 12.50</pre>
and the Log looks like:
<pre>
CUM_DAY: 6.849 CUM: 60123.4 COST: 1.02
CUM_MONTH: 212.319 CUM: 60123.4 COST: 44.34</pre>
Tipp: You can configure your EMWZ device to show in the CUM column of the
STATE reading the current reading of your meter. For this purpose: multiply
the current reading (from the real device) with the corr1 value (RperKW),
and substract the RAW CUM value from it. Now set the basis reading of your
EMWZ device (named emwz) to this value:<br>
<pre>
{ $defs{emwz}{READINGS}{basis}{VAL} = &lt;computedvalue&gt; }</pre>
</ul>
<br>