From 85305443473b4fa8857be105ea234326d7b78a85 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Thu, 22 Jan 2015 11:39:26 +0000 Subject: [PATCH] 33_readingsGroup.pm: create correct trigger for state: commands git-svn-id: https://svn.fhem.de/fhem/trunk@7659 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/33_readingsGroup.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index 233c57ecd..114f80035 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -1075,7 +1075,11 @@ readingsGroup_Notify($$) $cmd = lookup2($hash->{helper}{commands},$n,$reading,$value); if( $cmd && $cmd =~ m/^(\w.*):(\S.*)?$/ ) { - DoTrigger( $name, "$n.$reading: $value" ); + if( $reading eq "state" ) { + DoTrigger( $name, "$n: $value" ); + } else { + DoTrigger( $name, "$n.$reading: $value" ); + } next; }