From 3b6e09e82ba014d3cde2c43beb9861face5c949b Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sun, 21 Jun 2015 12:39:22 +0000 Subject: [PATCH] 33_readingsGroup.pm: fixed inform id for <{...}@reading> expressions git-svn-id: https://svn.fhem.de/fhem/trunk@8792 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/33_readingsGroup.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index 60603804c..eaf09bd32 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -728,8 +728,9 @@ readingsGroup_2html($;$) $ret .= ""; $ret .= "" if( $disable > 0 ); + my $item = 0; foreach my $device (@{$devices}) { - my $item = 0; + $item++; my $h = $defs{$device->[0]}; my $regex = $device->[1]; if( !$h && $device->[0] =~ m/^<.*>$/ ) { @@ -764,7 +765,6 @@ readingsGroup_2html($;$) if( $regex && $regex =~ m/^<(.*)>$/ ) { my $txt = $1; my $readings; - $item++; if( $txt =~ m/^{(.*)}(@[\w\-|.*]+)?$/ ) { $txt = "{$1}"; $readings = $2; @@ -1163,8 +1163,9 @@ readingsGroup_Notify($$) $value = "" if( !defined($value) ); my $show_state = !AttrVal( $name, "nostate", "0" ); + my $item = 0; foreach my $device (@{$devices}) { - my $item = 0; + $item++; my $h = $defs{@{$device}[0]}; next if( !$h ); next if( $dev->{NAME} ne $h->{NAME} ); @@ -1198,7 +1199,6 @@ readingsGroup_Notify($$) if( $regex && $regex =~ m/^<(.*)>$/ ) { my $txt = $1; my $readings; - $item++; if( $txt =~ m/^{(.*)}(@([\w\-|.*]+))?$/ ) { $txt = "{$1}"; $readings = $3;
updates disabled