From d0e9a851502f3e232c07e8b70d2cd71ca9cfdbfb Mon Sep 17 00:00:00 2001 From: DS_Starter Date: Wed, 27 Jul 2022 12:33:05 +0000 Subject: [PATCH] 98_SMAUtils: contrib 2.4 git-svn-id: https://svn.fhem.de/fhem/trunk@26263 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/98_SMAUtils.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/contrib/DS_Starter/98_SMAUtils.pm b/fhem/contrib/DS_Starter/98_SMAUtils.pm index 368634ff5..701fe3004 100644 --- a/fhem/contrib/DS_Starter/98_SMAUtils.pm +++ b/fhem/contrib/DS_Starter/98_SMAUtils.pm @@ -17,6 +17,7 @@ ################################################################# # Versions History # +# 2.4 27.07.2022 Forum: https://forum.fhem.de/index.php/topic,14624.msg1229389.html#msg1229389 # 2.3 08.04.2022 SBFspot V3.9.4 support added by Obi-Wan # 2.2 16.09.2016 SMAUtils_Attr added # 2.1 16.09.2016 sub Define changed @@ -273,7 +274,7 @@ readingsBeginUpdate($hash); if (index($readingsname, $substr) != -1) { $value = ltrim($reading[1]); - $value =~ /(\d+(?:\.\d+)?)/; + $value =~ /(-?\d+(?:\.\d+)?)/; # Forum: https://forum.fhem.de/index.php/topic,14624.msg1229389.html#msg1229389 $readingsvalue = $1; }