mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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:
parent
25b62f8dea
commit
8530544347
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user