diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 6f069b5cd..788c0afaf 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -6924,8 +6924,10 @@ sub centralTask { $newval .= "showconsumerremaintime=$fg7 " if(defined $fg7); $newval .= "shift=$fg8 " if(defined $fg8); - CommandAttr (undef, "$name flowGraphicControl $newval") if($newval); - + if ($newval) { + CommandAttr (undef, "$name flowGraphicControl $newval"); + ::CommandDeleteAttr (undef, "$name flowGraphicSize|flowGraphicAnimate|flowGraphicConsumerDistance|flowGraphicShowConsumer|flowGraphicShowConsumerDummy|flowGraphicShowConsumerPower|flowGraphicShowConsumerRemainTime|flowGraphicShift"); + } ########################################################################################################################## setModel ($hash); # Model setzen @@ -21017,7 +21019,7 @@ to ensure that the system configuration is correct.