2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

98_fheminfo.pm: add special handling for KNX (ignore model info)

git-svn-id: https://svn.fhem.de/fhem/trunk@14644 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2017-07-04 18:15:34 +00:00
parent 3468239487
commit 219435a48f

View File

@ -114,10 +114,13 @@ sub _fi2_Count() {
$model = ReadingsVal($name,'modelId',$model)
if (lc($type) eq 'zwave');
# 5. check if model is a scalar
# 5. ignore model for KNX
$model = $c_noModel if (lc($type) eq 'knx');
# 6. check if model is a scalar
$model = $c_noModel if (ref $model);
# 6. skip for some special cases found in database
# 7. skip for some special cases found in database
next if ( ($model =~ /^unkno.*/i) ||
($model =~ /virtual.*/i) ||
($model eq '?') ||
@ -125,7 +128,7 @@ sub _fi2_Count() {
(defined($defs{$key}{'chanNo'})) ||
($name =~ m/^unknown_/) );
# 7. finally count it :)
# 8. finally count it :)
$fhemInfo{$type}{$model}++ ;
}