2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 01:46:08 +00:00

33_readingsGroup.pm: fixed commands mapping with a dot in the reading name

git-svn-id: https://svn.fhem.de/fhem/trunk@7883 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2015-02-05 11:55:57 +00:00
parent 618e57e1dc
commit 80ace0c35f

View File

@ -608,7 +608,7 @@ readingsGroup_2html($;$)
my $webCmdFn = 0;
my $cmd = lookup2($hash->{helper}{commands},$name,$d,$txt);
if( $cmd && $cmd =~ m/^([\w-]*):(\S*)?(\s\S*)?$/ ) {
if( $cmd && $cmd =~ m/^([\w.-]*):(\S*)?(\s\S*)?$/ ) {
my $set = $1;
my $values = $2;
$set .= $3 if( $3 );
@ -770,7 +770,7 @@ readingsGroup_2html($;$)
if( !$devStateIcon ) {
$cmd = lookup2($hash->{helper}{commands},$name,$n,$v) if( !$devStateIcon );
if( $cmd && $cmd =~ m/^([\w-]*):(\S*)?(\s\S*)?$/ ) {
if( $cmd && $cmd =~ m/^([\w.-]*):(\S*)?(\s\S*)?$/ ) {
my $set = $1;
my $values = $2;
$set .= $3 if( $3 );