2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

36_EleroStick: added DisableTimer attribute

git-svn-id: https://svn.fhem.de/fhem/trunk@13403 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
HCS 2017-02-12 17:32:09 +00:00
parent c4e9762b7c
commit d40ce8a517

View File

@ -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.
</li>
<br>
<li>Delay<br>
If something like structure send commands very fast, Delay (seconds) throttles the transmission down that the Elero-system gets time to handle each command.
</li>
<br>
<li>DisableTimer<br>
Disables the periodically request of the status. Should normally not be set to 1.
</li>
<br>
<li>Interval<br>
When all channels are checkt, this number of seconds will be waited, until the channels will be checked again.<br>