From 8f9b41df4ca7208ec57b121896d144ac3bfd1b24 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 7 May 2024 08:54:34 +0000 Subject: [PATCH] fhem.pl: enable json2reading from userreading (Forum #138149) git-svn-id: https://svn.fhem.de/fhem/trunk@28849 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 8d63847b1..cc497b6bc 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -4946,8 +4946,14 @@ readingsEndUpdate($$) #Debug "Evaluating " . $reading; $cmdFromAnalyze = $perlCode; # For the __WARN__ sub my $NAME = $name; # no exceptions, #53069 + + my $stopRecursion = ".evalUserReading_$reading"; + next if($hash->{$stopRecursion}); # No warning / #138149 + $hash->{$stopRecursion} = 1; my $value= eval $perlCode; + delete($hash->{$stopRecursion}); $cmdFromAnalyze = undef; + my $result; # store result if($@) {