2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-08 05:15:10 +00:00

09_CUL_FHTTK.pm: - renamed set option "Syncing" to "Pair" and adapted docu

git-svn-id: https://svn.fhem.de/fhem/trunk@12306 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
matscher 2016-10-09 18:29:18 +00:00
parent 87e957c3f4
commit 11e00a3c12

View File

@ -100,7 +100,7 @@ my %fhttfk_c2b; # command->button hash
my %canset = (
"01" => "Open",
"02" => "Closed",
"0c" => "Syncing",
"0c" => "Pair",
"ff" => "ReSync");
# -wusel, 2009-11-06
@ -178,8 +178,8 @@ CUL_FHTTK_Set($@)
IOWrite($hash, "", sprintf("T%s02", $hash->{CODE})); # 0x02 - closed or 0x82
} elsif($opt eq "Syncing" ) {
Log3 $name, 3, "CUL_FHTTK ($name) syncing with FHT80b.";
} elsif($opt eq "Pair" ) {
Log3 $name, 3, "CUL_FHTTK ($name) pairing with FHT80b.";
IOWrite($hash, "", sprintf("T%s0c", $hash->{CODE})); # 0x0c - sync
# window state switch to closed through cul FW implementation
@ -189,9 +189,11 @@ CUL_FHTTK_Set($@)
Log3 $name, 3, "CUL_FHTTK ($name) resyncing with FHT80b.";
IOWrite($hash, "", sprintf("T%s%s", $hash->{CODE}, $fhttfk_c2b{$opt})); # 0xff - ReSync
# window state switch to closed through cul FW implementation
$opt = "Closed";
} else {
return "Unknown argument $a[1], choose one of Syncing Open Closed"
return "Unknown argument $a[1], choose one of Pair ReSync Open Closed"
}
# update new state
@ -316,9 +318,9 @@ CUL_FHTTK_Parse($$)
}
# Flag the battery warning separately
if($state eq "11" || $state eq "12") {
readingsBulkUpdate($def, "Battery", "Low");
readingsBulkUpdate($def, "Battery", "Low");
} else {
readingsBulkUpdate($def, "Battery", "ok");
readingsBulkUpdate($def, "Battery", "ok");
}
#CHANGED
readingsBulkUpdate($def, "state", $val);
@ -386,11 +388,12 @@ CUL_FHTTK_Parse($$)
<br><br>
where <code>value</code> is one of:<br>
<ul><code>
Syncing # start the sync with FHT80B (activate FHT80B sync mode before) - state after syncing is Closed<br>
Closed # set window state to Closed<br>
Open # set window state to Open<br>
ReSync # resync virtual sensor with FHT80b after a reset of CUL device. In other words, perform a virtual
battery exchange to synchronize the sensor with FHT80b device again.<br>
Pair # start pairing with FHT80B (activate FHT80B sync mode before) - state after pairing is Closed<br>
Closed # set window state to Closed<br>
Open # set window state to Open<br>
ReSync # resync virtual sensor with FHT80b after a reset of CUL device. In other words, perform a virtual
battery exchange to synchronize the sensor with FHT80b device again. (at the moment, only
available with prototype cul_fw - see forum 55774)<br>
</code></ul>
</ul>
<br>
@ -461,17 +464,17 @@ CUL_FHTTK_Parse($$)
<br><br>
wobei <code>value</code> folgendes sein kann:<br>
<ul><code>
Syncing # startet die Synchronisation mit dem FHT80B (FHT80B muss sich im Sync mode befinden) - danach wird der state auf "Closed" gesetzt<br>
Closed # setzt den Fensterstatus zu Closed<br>
Open # setzt den Fensterstatus zu Open<br>
ReSync # neu synchronisieren des virtuellen Sensor mit dem FHT80b Module. Damit wird ein virtueller Batteriewechsel symuliert und der angelernte
Sensor wieder aufsynchronisiert.<br>
Pair # startet das Anlernen an das FHT80B (FHT80B muss sich im Sync mode befinden) - danach wird der state auf "Closed" gesetzt<br>
Closed # setzt den Fensterstatus zu Closed<br>
Open # setzt den Fensterstatus zu Open<br>
ReSync # neu synchronisieren des virtuellen Sensor mit dem FHT80b Module. Damit wird ein virtueller Batteriewechsel symuliert und der angelernte
Sensor wieder aufsynchronisiert. (aktuell nur mit Prototyp CUL FW verfügbar Forum 55774)<br>
</code></ul>
</ul>
<br>
<b>Get</b>
<ul> N/A </ul>
<ul> N/A </ul>
<br>
<a name="CUL_FHTTKattr"></a>
@ -484,7 +487,7 @@ CUL_FHTTK_Parse($$)
<li><a href="#IODev">IODev</a></li><br>
<li><a href="#ignore">ignore</a></li><br>
<li><a href="#eventMap">eventMap</a></li><br>
<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
</ul>
<br>