From 13af66ba057b83c07a5672901d38e3dacfc1d290 Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Sun, 24 Oct 2021 16:45:38 +0000 Subject: [PATCH] 73_AutoShuttersControl: fix regex to detect position event with dot's git-svn-id: https://svn.fhem.de/fhem/trunk@25115 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 2 ++ fhem/lib/FHEM/Automation/ShuttersControl.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index ea3a707ec..de2a1b32a 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 73_AutoShuttersControl: fix regex to detect position + event with dot's - change: 10_EIB: Move to deprecated - bugfix: 73_AutoShuttersControl: fix ExternalTrigger, fix set rainstate by night diff --git a/fhem/lib/FHEM/Automation/ShuttersControl.pm b/fhem/lib/FHEM/Automation/ShuttersControl.pm index 8fbcaba0e..630683370 100644 --- a/fhem/lib/FHEM/Automation/ShuttersControl.pm +++ b/fhem/lib/FHEM/Automation/ShuttersControl.pm @@ -515,7 +515,7 @@ m{^(ATTR|DELETEATTR)\s(.*ASC_Time_Up_WE_Holiday|.*ASC_Up|.*ASC_Down|.*ASC_AutoAs EventProcessingGeneral( $hash, undef, join( ' ', @{$events} ) ); } } - elsif ( grep m{^($posReading):\s\d{1,3}$}xms, @{$events} ) { + elsif ( grep m{^($posReading):\s\d{1,3}(\.\d{1,3})?$}xms, @{$events} ) { ASC_Debug( 'Notify: ' . ' ASC_Pos_Reading Event vom Rollo ' . $devname