mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
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
This commit is contained in:
parent
ad54155ce7
commit
f2ea7c9768
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user