From d40ce8a517901f926040217e413eb52a048b0836 Mon Sep 17 00:00:00 2001 From: HCS <> Date: Sun, 12 Feb 2017 17:32:09 +0000 Subject: [PATCH] 36_EleroStick: added DisableTimer attribute git-svn-id: https://svn.fhem.de/fhem/trunk@13403 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/36_EleroStick.pm | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/36_EleroStick.pm b/fhem/FHEM/36_EleroStick.pm index ea95bfaf0..2f0f6f2ed 100644 --- a/fhem/FHEM/36_EleroStick.pm +++ b/fhem/FHEM/36_EleroStick.pm @@ -44,6 +44,7 @@ sub EleroStick_Initialize($) { "ChannelTimeout " . "Interval " . "Delay " . + "DisableTimer:1,0 " . "$readingFnAttributes "; } @@ -256,7 +257,7 @@ sub EleroStick_OnTimer($$) { my $timerInterval = AttrVal($name, "ChannelTimeout", 5); - if($hash->{STATE} ne "disconnected") { + if($hash->{STATE} ne "disconnected" && AttrVal($name, "DisableTimer", 0) ne 1) { if($hash->{channels}) { my $channels = $hash->{channels}; @@ -453,9 +454,8 @@ sub EleroStick_Attr(@) { else { $hash->{MatchList} = \%matchList; } - } - + return undef; } @@ -527,6 +527,16 @@ sub EleroStick_Attr(@) { Default is 5 seconds. +
+
  • Delay
    + If something like structure send commands very fast, Delay (seconds) throttles the transmission down that the Elero-system gets time to handle each command. +
  • + +
    +
  • DisableTimer
    + Disables the periodically request of the status. Should normally not be set to 1. +
  • +
  • Interval
    When all channels are checkt, this number of seconds will be waited, until the channels will be checked again.