M232 merge, some new snapshots
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@111 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -652,9 +652,9 @@ split in multiple lines<br><br>
|
||||
<a name="WS300"></a>
|
||||
<h4>Type WS300</h4>
|
||||
<ul>
|
||||
<code>define WS300Device WS300 <serial device><br>
|
||||
<code>define WS300Device WS300 <serial device></code><br>
|
||||
or<br>
|
||||
<code>define <devname> WS300 [0-9]<br>
|
||||
<code>define <devname> WS300 [0-9]</code><br>
|
||||
<br>
|
||||
The first line is mandatory if you have a WS300 device: it defines the
|
||||
input device with its USB port. The name of this device is fixed and must
|
||||
@@ -733,6 +733,52 @@ split in multiple lines<br><br>
|
||||
<br>
|
||||
</ul>
|
||||
|
||||
|
||||
<a name="M232"></a>
|
||||
<h4>Type M232</h4>
|
||||
<ul>
|
||||
<code>define <name> M232 <m232-device></code>
|
||||
<br><br>
|
||||
|
||||
Define a M232 device. You can attach as many M232 devices as you like. A
|
||||
M232 device provides 6 analog inputs (voltage 0..5V with 10 bit resolution)
|
||||
and 8 bidirectional digital ports. The eighth digital port can be used as a
|
||||
16 bit counter (maximum frequency 3kHz). The M232 device needs to be
|
||||
connected to a 25pin sub-d RS232 serial port. A USB-to-serial converter
|
||||
works fine if no serial port is available.<br><br>
|
||||
|
||||
Examples:
|
||||
<ul>
|
||||
<code>define m232 M232 /dev/ttyUSB2</code><br>
|
||||
</ul>
|
||||
<br>
|
||||
</ul>
|
||||
|
||||
<a name="M232Counter"></a>
|
||||
<h4>Type M232Counter</h4>
|
||||
<ul>
|
||||
<code>define <name> M232Counter [unit [factor]]</code>
|
||||
<br><br>
|
||||
|
||||
Define at most one M232Counter for a M232 device. Defining a M232Counter
|
||||
will schedule an internal task, which reads the status of the counter every
|
||||
minute, and triggers notify/filelog commands. <code>unit</code> is the unit
|
||||
name, <code>factor</code> is used to calculate the reading of the counter
|
||||
from number of ticks. <br><br> <br>Note: the unit defaults to the string
|
||||
"ticks", but it must be specified if you wish to set the factor, which
|
||||
defaults to 1.0. In the second example below one tick equals 1/1250th kWh.
|
||||
Do not forget to start the counter (with <code>set .. start</code> for
|
||||
M232) or to start the counter and set the reading to a specified value
|
||||
(with <code>set ... value</code> for M232Counter). <br><br>
|
||||
Example:
|
||||
<ul>
|
||||
<code>define counter M232Counter turns</code><br>
|
||||
<code>define counter M232Counter kWh 0.0008</code><br>
|
||||
</ul>
|
||||
<br>
|
||||
</ul>
|
||||
|
||||
|
||||
<a name="SCIVT"></a>
|
||||
<h4>Type SCIVT</h4>
|
||||
<ul>
|
||||
@@ -1058,6 +1104,39 @@ split in multiple lines<br><br>
|
||||
<br><br>
|
||||
This is the same command which is scheduled every 5 minutes internally.
|
||||
</ul>
|
||||
|
||||
<h4>Type M232:</h4>
|
||||
<ul>
|
||||
<code>get <name> [an0..an5]</code>
|
||||
<br><br>
|
||||
Gets the reading of analog input 0..5 in volts.
|
||||
<br><br>
|
||||
<code>get <name> [io0..io7]</code>
|
||||
<br><br>
|
||||
Gets the state of digital ports 0..7, result is 0 or 1.
|
||||
<br><br>
|
||||
<code>get <name> octet</code>
|
||||
<br><br>
|
||||
Gets the state of all digital ports at once, result is 0..255.
|
||||
<br><br>
|
||||
<code>get <name> counter</code>
|
||||
<br><br>
|
||||
Gets the number of ticks of the counter since the last reset. The counter
|
||||
wraps around from 65535 to 0.
|
||||
<br><br>
|
||||
</ul>
|
||||
|
||||
<h4>Type M232Counter:</h4>
|
||||
<ul>
|
||||
<code>get <name> status</code>
|
||||
<br><br>
|
||||
Gets the reading of the counter multiplied by the factor from the
|
||||
<code>define</code> statement. Wraparounds of the counter are accounted for
|
||||
by an offset (see reading <code>basis</code> in the output of the
|
||||
<code>list</code> statement for the device).
|
||||
<br><br>
|
||||
</ul>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -1289,7 +1368,7 @@ Send buffer:<br /> 2007-10-19 00:31:24 desired-temp 22.5
|
||||
<li>In order to set the time of your FHT's, schedule this command every
|
||||
minute:<br>
|
||||
<code>define fhz_timer at +*00:01:00 set FHZ time</code><br>
|
||||
See the <a href="#loglevel">loglevel<a> to prevent logging of
|
||||
See the <a href="#loglevel">loglevel</a> to prevent logging of
|
||||
this command.
|
||||
</li>
|
||||
<li>FHTcode is a two digit hex number (from 00 to 63?) and sets the
|
||||
@@ -1479,7 +1558,7 @@ must between 5.5 and 30.5 Celsius. Value 5.5 set the actuator to OFF, value 30.
|
||||
<a name="WS300set"></a>
|
||||
<h4>Type WS300:</h4>
|
||||
<ul>
|
||||
<code>set WS300Device <interval(min.)> <height(m)> <rainvalume(ml)>
|
||||
<code>set WS300Device <interval(min.)> <height(m)> <rainvalume(ml)></code>
|
||||
<br><br>
|
||||
Set some WS300 configuration parameters.
|
||||
</ul>
|
||||
@@ -1487,7 +1566,7 @@ must between 5.5 and 30.5 Celsius. Value 5.5 set the actuator to OFF, value 30.
|
||||
<a name="EMWZset"></a>
|
||||
<h4>Type EMWZ:</h4>
|
||||
<ul>
|
||||
<code>set EMWZdevice <param> <value><br><br>
|
||||
<code>set EMWZdevice <param> <value></code><br><br>
|
||||
where param is one of:
|
||||
<ul>
|
||||
<li>rperkw<br>
|
||||
@@ -1505,6 +1584,35 @@ must between 5.5 and 30.5 Celsius. Value 5.5 set the actuator to OFF, value 30.
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<h4>Type M232:</h4>
|
||||
<ul>
|
||||
<code>set <name> stop</code>
|
||||
<br><br>
|
||||
Stops the counter.
|
||||
<br><br>
|
||||
<code>set <name> start</code>
|
||||
<br><br>
|
||||
Resets the counter to zero and starts it.
|
||||
<br><br>
|
||||
<code>set <name> octet <value></code>
|
||||
<br><br>
|
||||
Sets the state of all digital ports at once, value is 0..255.
|
||||
<br><br>
|
||||
<code>set <name> [io0..io7] 0|1</code>
|
||||
<br><br>
|
||||
Turns digital port 0..7 off or on.
|
||||
<br><br>
|
||||
</ul>
|
||||
|
||||
<h4>Type M232Counter:</h4>
|
||||
<ul>
|
||||
<code>set <name> value <value></code>
|
||||
<br><br>
|
||||
Sets the reading of the counter to the given value. The counter is reset
|
||||
and started and the offset is adjusted to value/unit.
|
||||
<br><br>
|
||||
</ul>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
@@ -1644,7 +1752,7 @@ must between 5.5 and 30.5 Celsius. Value 5.5 set the actuator to OFF, value 30.
|
||||
|
||||
<li>
|
||||
To access the numerical value of an FS20 command (e.g. toggle), use the
|
||||
hash <code>fs20_c2b<code>. E.g. { Log 2, $fs20_c2b{"toggle"} }
|
||||
hash <code>fs20_c2b</code>. E.g. { Log 2, $fs20_c2b{"toggle"} }
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
Reference in New Issue
Block a user