2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-23 20:52:13 +00:00

EMT7110: now respecting JeeLink LaCrossePairForSec and updated commandref

git-svn-id: https://svn.fhem.de/fhem/trunk@6483 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hcs-svn 2014-08-31 07:29:22 +00:00
parent 534f824384
commit 0fb7fb0c99

View File

@ -154,11 +154,12 @@ EMT7110_Parse($$)
my $costs = $accumulatedPower * AttrVal( $rname, "pricePerKWH", 0); my $costs = $accumulatedPower * AttrVal( $rname, "pricePerKWH", 0);
if( !$modules{EMT7110}{defptr}{$raddr} ) { if( !$modules{EMT7110}{defptr}{$raddr} ) {
Log3 $name, 3, "EMT7110 Unknown device $rname, please define it"; Log3 $name, 3, "EMT7110 Unknown device $rname, please define it";
return "UNDEFINED EMT7110_$rname EMT7110 $raddr"; return "" if( !$hash->{LaCrossePair} );
} return "UNDEFINED EMT7110_$rname EMT7110 $raddr";
}
my @list; my @list;
push(@list, $rname); push(@list, $rname);
@ -230,16 +231,23 @@ EMT7110_Attr(@)
<ul> <ul>
<tr><td> <tr><td>
The EMT7110 is a plug with integrated power meter functionality.<br><br> The EMT7110 is a plug with integrated power meter functionality.<br>
It can be integrated into FHEM via a <a href="#JeeLink">JeeLink</a> as the IODevice.<br><br> It can be integrated into FHEM via a <a href="#JeeLink">JeeLink</a> as the IODevice.<br><br>
The EMT7110 sends with 9.579 kbit/s. Therefore it is necessary to set the JeeLink to a mode where it recieves this data rate.<br>
This can be done using the initCommands attribute of the JeeLink.<br><br>
If you have only 9.579 kbit/s sensors use this setting:<br>
<code>attr myJeeLink initCommands 1r v</code><br><br>
If you have also 17.241 kbit/s sensors (like TX29...) use this setting:<br>
<code>attr myJeeLink initCommands 30t v</code><br>
30t means that the JeeLink toggles the data rate every 30 Seconds.<br>
<a name="EMT7110_Define"></a>
<br><a name="EMT7110_Define"></a>
<b>Define</b> <b>Define</b>
<ul> <ul>
<code>define &lt;name&gt; EMT7110 &lt;addr&gt;</code> <br> <code>define &lt;name&gt; EMT7110 &lt;addr&gt;</code> <br>
addr is a 4 digit hex number to identify the EMT7110 device.<br> addr is a 4 digit hex number to identify the EMT7110 device.<br>
</ul> To enable autocreate for a certain time you must set LaCrossePairForSec in the <a href="#JeeLink">JeeLink</a> IODevice device.<br>
<br> <br>
<a name="EMT7110_Set"></a> <a name="EMT7110_Set"></a>