2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

47_OBIS: fixed an Typo in extChannels-Attribute - thx to tatu123

git-svn-id: https://svn.fhem.de/fhem/trunk@16167 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Icinger 2018-02-13 20:36:00 +00:00
parent 0e8fa22250
commit 3113ad7ddd

View File

@ -499,7 +499,7 @@ sub OBIS_Parse($$)
$rmsg =~ $OBIS_codes{$code};
my $L=$hash->{helper}{Channels}{$channel} //$hash->{helper}{Channels}{$1.".".$2} // $OBIS_channels{$1.".".$2} // $channel;
my $chan=$3+0 > 0 ? "_Ch$3" : "";
if (AttrVal($name,"ExtChannels","off") eq "on") {$chan.=".$4" if $4;}
if (AttrVal($name,"extChannels","off") eq "on") {$chan.=".$4" if $4;}
if (AttrVal($name,"ignoreUnknown","off") eq "off" || $L ne $channel) {
if($1==1) {
Log3($hash,4,"Set ".$L.$chan." to ".((looks_like_number($3) ? $6+0 : $5) +AttrVal($name,"offset_energy",0)));