Adding . to the stateFormat easy-regexp

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2787 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2013-02-22 17:55:45 +00:00
parent 402d92b464
commit a1588e8e36

View File

@@ -3039,7 +3039,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_\.-]+)\b/($r->{$1} ? $r->{$1}{VAL} : $1)/ge;
}
$hash->{STATE} = ReplaceEventMap($name, $st, 1) if(defined($st));