2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 19:32:42 +00:00

89_VCONTROL.pm: disable attrib now with function

git-svn-id: https://svn.fhem.de/fhem/trunk@7915 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
adamwit 2015-02-08 15:21:55 +00:00
parent 7ea1f70721
commit 0e3e0c79b7

View File

@ -277,7 +277,13 @@ VCONTROL_Poll($)
my $hash = shift;
my $name = $hash->{NAME};
#global Module Trigger that Polling is started
$poll_now=POLL_ACTIVE;
if( AttrVal($name, "disable", 0 ) == 1 )
{
$poll_now = POLL_PAUSED;
Log3 $name, 5, "VCONTROL: Poll disabled!";
}
else
{$poll_now=POLL_ACTIVE;}
$poll_duration = gettimeofday();
Log3 $name, 4, "VCONTROL: Start of Poll !";
my $timer = gettimeofday()+$hash->{INTERVAL};