From 9d2a23bbaf581f6b08f62d4b2c9607c79e52a77a Mon Sep 17 00:00:00 2001 From: matscher <> Date: Sun, 9 Oct 2016 18:29:18 +0000 Subject: [PATCH] 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 --- FHEM/09_CUL_FHTTK.pm | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/FHEM/09_CUL_FHTTK.pm b/FHEM/09_CUL_FHTTK.pm index c54b8a023..1c8c6ca45 100644 --- a/FHEM/09_CUL_FHTTK.pm +++ b/FHEM/09_CUL_FHTTK.pm @@ -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($$)

where value is one of:

@@ -461,17 +464,17 @@ CUL_FHTTK_Parse($$)

wobei value folgendes sein kann:

Get - +
@@ -484,7 +487,7 @@ CUL_FHTTK_Parse($$)
  • IODev

  • ignore

  • eventMap

  • -
  • readingFnAttributes
  • +
  • readingFnAttributes