From fea36301e88873aa86fed2e6acb361732c7d0d9d Mon Sep 17 00:00:00 2001 From: tpoitzsch <> Date: Sat, 1 Nov 2014 20:12:20 +0000 Subject: [PATCH] PROPLANTA: bugfix git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6858 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/59_PROPLANTA.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FHEM/59_PROPLANTA.pm b/FHEM/59_PROPLANTA.pm index 8d6c0bd0f..ad4e4c4a8 100644 --- a/FHEM/59_PROPLANTA.pm +++ b/FHEM/59_PROPLANTA.pm @@ -301,6 +301,8 @@ sub PROPLANTA_Define($$) } $hash->{STATE} = "Initializing"; + $hash->{LOCAL} = 0; + $hash->{INTERVAL} = 3600; RemoveInternalTimer($hash); InternalTimer( gettimeofday() + 12, "PROPLANTA_Start", $hash, 0 ); @@ -393,13 +395,13 @@ sub PROPLANTA_Start($) return unless (defined($hash->{NAME})); - $hash->{Interval} = AttrVal( $name, "Interval", 3600 ); + $hash->{INTERVAL} = AttrVal( $name, "Interval", $hash->{INTERVAL} ); if(!$hash->{LOCAL} && $hash->{INTERVAL} > 0) { # setup timer RemoveInternalTimer( $hash ); InternalTimer( - gettimeofday() + $hash->{Interval}, + gettimeofday() + $hash->{INTERVAL}, "PROPLANTA_Start", $name, 1 );