mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
09_CUL_FHTTK.pm: add the possibility to resynchronize a virtual sensor after an device (e.g.CUL) reset (only possible with the corresponding firmware (prototype is available)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12284 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ac17d586b3
commit
d519a5c2d3
@ -100,7 +100,8 @@ my %fhttfk_c2b; # command->button hash
|
|||||||
my %canset = (
|
my %canset = (
|
||||||
"01" => "Open",
|
"01" => "Open",
|
||||||
"02" => "Closed",
|
"02" => "Closed",
|
||||||
"0c" => "Syncing");
|
"0c" => "Syncing",
|
||||||
|
"ff" => "ReSync");
|
||||||
|
|
||||||
# -wusel, 2009-11-06
|
# -wusel, 2009-11-06
|
||||||
#
|
#
|
||||||
@ -184,6 +185,11 @@ CUL_FHTTK_Set($@)
|
|||||||
# window state switch to closed through cul FW implementation
|
# window state switch to closed through cul FW implementation
|
||||||
$opt = "Closed";
|
$opt = "Closed";
|
||||||
|
|
||||||
|
} elsif($opt eq "ReSync" ) {
|
||||||
|
Log3 $name, 3, "CUL_FHTTK ($name) resyncing with FHT80b.";
|
||||||
|
|
||||||
|
IOWrite($hash, "", sprintf("T%s%s", $hash->{CODE}, $fhttfk_c2b{$opt})); # 0xff - ReSync
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return "Unknown argument $a[1], choose one of Syncing Open Closed"
|
return "Unknown argument $a[1], choose one of Syncing Open Closed"
|
||||||
}
|
}
|
||||||
@ -383,6 +389,8 @@ CUL_FHTTK_Parse($$)
|
|||||||
Syncing # start the sync with FHT80B (activate FHT80B sync mode before) - state after syncing is Closed<br>
|
Syncing # start the sync with FHT80B (activate FHT80B sync mode before) - state after syncing 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
|
||||||
|
battery exchange to synchronize the sensor with FHT80b device again.<br>
|
||||||
</code></ul>
|
</code></ul>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
@ -456,6 +464,8 @@ CUL_FHTTK_Parse($$)
|
|||||||
Syncing # startet die Synchronisation mit dem FHT80B (FHT80B muss sich im Sync mode befinden) - danach wird der state auf "Closed" gesetzt<br>
|
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>
|
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
|
||||||
|
Sensor wieder aufsynchronisiert.<br>
|
||||||
</code></ul>
|
</code></ul>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user