mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
09_CUL_FHTTK.pm: - renamed set option "Syncing" to "Pair" and adapted docu
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12306 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
da5837525c
commit
9d2a23bbaf
@ -100,7 +100,7 @@ my %fhttfk_c2b; # command->button hash
|
|||||||
my %canset = (
|
my %canset = (
|
||||||
"01" => "Open",
|
"01" => "Open",
|
||||||
"02" => "Closed",
|
"02" => "Closed",
|
||||||
"0c" => "Syncing",
|
"0c" => "Pair",
|
||||||
"ff" => "ReSync");
|
"ff" => "ReSync");
|
||||||
|
|
||||||
# -wusel, 2009-11-06
|
# -wusel, 2009-11-06
|
||||||
@ -178,8 +178,8 @@ CUL_FHTTK_Set($@)
|
|||||||
|
|
||||||
IOWrite($hash, "", sprintf("T%s02", $hash->{CODE})); # 0x02 - closed or 0x82
|
IOWrite($hash, "", sprintf("T%s02", $hash->{CODE})); # 0x02 - closed or 0x82
|
||||||
|
|
||||||
} elsif($opt eq "Syncing" ) {
|
} elsif($opt eq "Pair" ) {
|
||||||
Log3 $name, 3, "CUL_FHTTK ($name) syncing with FHT80b.";
|
Log3 $name, 3, "CUL_FHTTK ($name) pairing with FHT80b.";
|
||||||
|
|
||||||
IOWrite($hash, "", sprintf("T%s0c", $hash->{CODE})); # 0x0c - sync
|
IOWrite($hash, "", sprintf("T%s0c", $hash->{CODE})); # 0x0c - sync
|
||||||
# window state switch to closed through cul FW implementation
|
# 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.";
|
Log3 $name, 3, "CUL_FHTTK ($name) resyncing with FHT80b.";
|
||||||
|
|
||||||
IOWrite($hash, "", sprintf("T%s%s", $hash->{CODE}, $fhttfk_c2b{$opt})); # 0xff - ReSync
|
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 {
|
} 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
|
# update new state
|
||||||
@ -316,9 +318,9 @@ CUL_FHTTK_Parse($$)
|
|||||||
}
|
}
|
||||||
# Flag the battery warning separately
|
# Flag the battery warning separately
|
||||||
if($state eq "11" || $state eq "12") {
|
if($state eq "11" || $state eq "12") {
|
||||||
readingsBulkUpdate($def, "Battery", "Low");
|
readingsBulkUpdate($def, "Battery", "Low");
|
||||||
} else {
|
} else {
|
||||||
readingsBulkUpdate($def, "Battery", "ok");
|
readingsBulkUpdate($def, "Battery", "ok");
|
||||||
}
|
}
|
||||||
#CHANGED
|
#CHANGED
|
||||||
readingsBulkUpdate($def, "state", $val);
|
readingsBulkUpdate($def, "state", $val);
|
||||||
@ -386,11 +388,12 @@ CUL_FHTTK_Parse($$)
|
|||||||
<br><br>
|
<br><br>
|
||||||
where <code>value</code> is one of:<br>
|
where <code>value</code> is one of:<br>
|
||||||
<ul><code>
|
<ul><code>
|
||||||
Syncing # start the sync with FHT80B (activate FHT80B sync mode before) - state after syncing is Closed<br>
|
Pair # start pairing with FHT80B (activate FHT80B sync mode before) - state after pairing is Closed<br>
|
||||||
Closed # set window state to Closed<br>
|
Closed # set window state to Closed<br>
|
||||||
Open # set window state to Open<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
|
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>
|
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>
|
</code></ul>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
@ -461,17 +464,17 @@ CUL_FHTTK_Parse($$)
|
|||||||
<br><br>
|
<br><br>
|
||||||
wobei <code>value</code> folgendes sein kann:<br>
|
wobei <code>value</code> folgendes sein kann:<br>
|
||||||
<ul><code>
|
<ul><code>
|
||||||
Syncing # startet die Synchronisation mit dem FHT80B (FHT80B muss sich im Sync mode befinden) - danach wird der state auf "Closed" gesetzt<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>
|
Closed # setzt den Fensterstatus zu Closed<br>
|
||||||
Open # setzt den Fensterstatus zu Open<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
|
ReSync # neu synchronisieren des virtuellen Sensor mit dem FHT80b Module. Damit wird ein virtueller Batteriewechsel symuliert und der angelernte
|
||||||
Sensor wieder aufsynchronisiert.<br>
|
Sensor wieder aufsynchronisiert. (aktuell nur mit Prototyp CUL FW verfügbar Forum 55774)<br>
|
||||||
</code></ul>
|
</code></ul>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<b>Get</b>
|
<b>Get</b>
|
||||||
<ul> N/A </ul>
|
<ul> N/A </ul>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<a name="CUL_FHTTKattr"></a>
|
<a name="CUL_FHTTKattr"></a>
|
||||||
@ -484,7 +487,7 @@ CUL_FHTTK_Parse($$)
|
|||||||
<li><a href="#IODev">IODev</a></li><br>
|
<li><a href="#IODev">IODev</a></li><br>
|
||||||
<li><a href="#ignore">ignore</a></li><br>
|
<li><a href="#ignore">ignore</a></li><br>
|
||||||
<li><a href="#eventMap">eventMap</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>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user