mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 13:26:02 +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:
parent
c4e9762b7c
commit
d40ce8a517
@ -44,6 +44,7 @@ sub EleroStick_Initialize($) {
|
|||||||
"ChannelTimeout " .
|
"ChannelTimeout " .
|
||||||
"Interval " .
|
"Interval " .
|
||||||
"Delay " .
|
"Delay " .
|
||||||
|
"DisableTimer:1,0 " .
|
||||||
"$readingFnAttributes ";
|
"$readingFnAttributes ";
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -256,7 +257,7 @@ sub EleroStick_OnTimer($$) {
|
|||||||
|
|
||||||
my $timerInterval = AttrVal($name, "ChannelTimeout", 5);
|
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}) {
|
if($hash->{channels}) {
|
||||||
my $channels = $hash->{channels};
|
my $channels = $hash->{channels};
|
||||||
|
|
||||||
@ -453,7 +454,6 @@ sub EleroStick_Attr(@) {
|
|||||||
else {
|
else {
|
||||||
$hash->{MatchList} = \%matchList;
|
$hash->{MatchList} = \%matchList;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
@ -527,6 +527,16 @@ sub EleroStick_Attr(@) {
|
|||||||
Default is 5 seconds.
|
Default is 5 seconds.
|
||||||
</li>
|
</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>
|
<br>
|
||||||
<li>Interval<br>
|
<li>Interval<br>
|
||||||
When all channels are checkt, this number of seconds will be waited, until the channels will be checked again.<br>
|
When all channels are checkt, this number of seconds will be waited, until the channels will be checked again.<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user