From f2ea7c9768d0f5416f8c263c499d55e441fd9f5f Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 22 Aug 2013 07:09:38 +0000 Subject: [PATCH] FS20: follow-on-for-timer changed from setstate;trigger to readingsSingleUpdate git-svn-id: https://svn.fhem.de/fhem/trunk@3764 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_FS20.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/10_FS20.pm b/fhem/FHEM/10_FS20.pm index e854e943f..00ee511b1 100755 --- a/fhem/FHEM/10_FS20.pm +++ b/fhem/FHEM/10_FS20.pm @@ -254,7 +254,7 @@ FS20_Set($@) $modules{FS20}{ldata}{$name} = $to; Log3 $name, 4, "Follow: +$to setstate $name $newState"; CommandDefine(undef, $name."_timer at +$to ". - "setstate $name $newState; trigger $name $newState"); + "{readingsSingleUpdate(\$defs{'$name'},'state','$newState', 1); undef}"); } ########################## @@ -410,7 +410,7 @@ FS20_Parse($$) my $to = sprintf("%02d:%02d:%02d", $dur/3600, ($dur%3600)/60, $dur%60); Log3 $n, 4, "Follow: +$to setstate $n $newState"; CommandDefine(undef, $n."_timer at +$to ". - "setstate $n $newState; trigger $n $newState"); + "{readingsSingleUpdate(\$defs{'$n'},'state','$newState', 1); undef}"); $modules{FS20}{ldata}{$n} = $to; }