From b8d360dcf8a44252e3f21eddaa9466172cb7ac05 Mon Sep 17 00:00:00 2001 From: tpoitzsch Date: Tue, 25 Nov 2014 21:13:14 +0000 Subject: [PATCH] PROPLANTA: INTERVAL git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7064 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/59_PROPLANTA.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fhem/FHEM/59_PROPLANTA.pm b/fhem/FHEM/59_PROPLANTA.pm index 280994e04..65ec1df92 100644 --- a/fhem/FHEM/59_PROPLANTA.pm +++ b/fhem/FHEM/59_PROPLANTA.pm @@ -394,7 +394,7 @@ sub PROPLANTA_Define($$) } $hash->{STATE} = "Initializing"; - $hash->{LOCAL} = 0; + $hash->{fhem}{LOCAL} = 0; $hash->{INTERVAL} = 3600; $hash->{fhem}{modulVersion} = '$Date$'; @@ -436,9 +436,9 @@ sub PROPLANTA_Set($@) when ("update") { PROPLANTA_Log $hash, 3, "set command: " . $a[1]; - $hash->{LOCAL} = 1; + $hash->{fhem}{LOCAL} = 1; PROPLANTA_Start($hash); - $hash->{LOCAL} = 0; + $hash->{fhem}{LOCAL} = 0; } default { @@ -487,7 +487,7 @@ sub PROPLANTA_Start($) $hash->{INTERVAL} = AttrVal( $name, "INTERVAL", $hash->{INTERVAL} ); - if(!$hash->{LOCAL} && $hash->{INTERVAL} > 0) { + if(!$hash->{fhem}{LOCAL} && $hash->{INTERVAL} > 0) { # set up timer if automatically call RemoveInternalTimer( $hash ); InternalTimer(gettimeofday() + $hash->{INTERVAL}, "PROPLANTA_Start", $hash, 1 ); @@ -730,7 +730,7 @@ PROPLANTA_Html($) Attributes