74_AutomowerConnect: reduce work load if more than one mower with different Id is define.

git-svn-id: https://svn.fhem.de/fhem/trunk@29919 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Ellert
2025-05-03 11:34:37 +00:00
parent db1be79de6
commit 6c0ffeb9b1

View File

@@ -3374,7 +3374,7 @@ sub wsRead { ## no critic (ProhibitExcessComplexity [complexity core maintenanc
for my $buf (@bufj) { # process each buffer part for my $buf (@bufj) { # process each buffer part
if ( $buf =~ /((position|mower|battery|planner|cuttingHeight|headlights|calendar|message)-event-v2)/ ) { # pass only correct event types and count dubletts if ( $buf =~ /$hash->{helper}{mower_id}.*((position|mower|battery|planner|cuttingHeight|headlights|calendar|message)-event-v2)/ ) { # pass only correct event types and count dubletts
my $evt = $1; my $evt = $1;
my $evn = $2; my $evn = $2;