dded Numbers to the stateFormat regexp
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3506 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -3171,7 +3171,7 @@ evalStateFormat($)
|
||||
# Substitute reading names with their values, leave the rest untouched.
|
||||
$st = $sr;
|
||||
my $r = $hash->{READINGS};
|
||||
$st =~ s/\b([A-Za-z_\.-]+)\b/($r->{$1} ? $r->{$1}{VAL} : $1)/ge;
|
||||
$st =~ s/\b([A-Za-z\d_\.-]+)\b/($r->{$1} ? $r->{$1}{VAL} : $1)/ge;
|
||||
|
||||
}
|
||||
$hash->{STATE} = ReplaceEventMap($name, $st, 1) if(defined($st));
|
||||
|
||||
Reference in New Issue
Block a user