2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

33_readingsGroup.pm: create correct trigger for state: commands

git-svn-id: https://svn.fhem.de/fhem/trunk@7659 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2015-01-22 11:39:26 +00:00
parent 25b62f8dea
commit 8530544347

View File

@ -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;
}