diff --git a/fhem/FHEM/98_DOIF.pm b/fhem/FHEM/98_DOIF.pm
index 29628f8cb..dc563c0fe 100644
--- a/fhem/FHEM/98_DOIF.pm
+++ b/fhem/FHEM/98_DOIF.pm
@@ -4418,12 +4418,22 @@ sub bar
$out.= sprintf('',$null,$null) if ($min < 0 and $max > 0);;
if (defined $icon and $icon ne "") {
- $out.='';
- $out.= ::FW_makeImage($ic);
- $out.='';
- ##$out.='';
- $out.='';#height="18" width="18"
- ##$out.='';
+ my $svg_icon=::FW_makeImage($ic);
+ if(!($svg_icon =~ s/\sheight="[^"]*"/ height="22"/)) {
+ $svg_icon =~ s/svg/svg height="22"/
+ }
+ if(!($svg_icon =~ s/\swidth="[^"]*"/ width="22"/)) {
+ $svg_icon =~ s/svg/svg width="22"/
+ }
+ $out.='';
+ $out.= $svg_icon;
+ $out.='';
+
+## $out.='';
+## $out.= ::FW_makeImage($ic);
+## $out.='';
+## $out.='';#height="18" width="18"
+## $out.='';
}
$out.= sprintf('%s%s',$bwidth+6,(defined ($icon) ? $height/2+23:$height/2+12),color($currColor,$ln),sprintf($format,$val),$unit);
@@ -4708,12 +4718,24 @@ sub ring
$out.=describeArc(41, 30, 27.5, 0, int($prop*280));
$out.='';
if (defined $icon and $icon ne "" and $icon ne " ") {
- $out.='';
- $out.= ::FW_makeImage($ic);
- $out.='';
- ##$out.='';
- $out.='';#height="18" width="18"
- ##$out.='';
+ my $svg_icon=::FW_makeImage($ic);
+ if(!($svg_icon =~ s/\sheight="[^"]*"/ height="22"/)) {
+ $svg_icon =~ s/svg/svg height="22"/ }
+ if(!($svg_icon =~ s/\swidth="[^"]*"/ width="22"/)) {
+ $svg_icon =~ s/svg/svg width="22"/ }
+ $out.='';
+ $out.= $svg_icon;
+ $out.='';
+## my $svg_icon=::FW_makeImage($ic);
+## $svg_icon =~ s/height="[^"]*"/height="22"/;
+## $svg_icon =~ s/width="[^"]*"/width="22"/;
+## my $viewBox= ($svg_icon =~ /(viewBox="[^"]*")/) ? $1 : 'viewBox = "0 0 640 640"';
+## my $viewBox='viewBox = "0 0 640 640"';
+## $out.='';
+## $out.= $svg_icon;
+## $out.='';
+## $out.='';
+## $out.='';
}
$out.= sprintf('%s',((defined ($icon) and $icon ne "") ? 43:34),color($currColor,$ln),(defined ($icon) ? 14:18),sprintf($format,$val));
$out.= sprintf('%s',((defined ($icon) and $icon ne "") ? 53:47),color($currColor,$ln),$unit) if (defined $unit);