diff --git a/fhem/contrib/DS_Starter/76_SMAPortal.pm b/fhem/contrib/DS_Starter/76_SMAPortal.pm index 790fb9733..4374122f1 100644 --- a/fhem/contrib/DS_Starter/76_SMAPortal.pm +++ b/fhem/contrib/DS_Starter/76_SMAPortal.pm @@ -1156,7 +1156,11 @@ sub extractForecastData($$) { my $plantOid = $forecast->{'ForecastTimeframes'}->{'PlantOid'}; $hash->{HELPER}{PLANTOID} = $plantOid; # wichtig für erweiterte Selektionen - Log3 ($name, 4, "$name - Plant ID set to: ".$hash->{HELPER}{PLANTOID}); + if ($hash->{HELPER}{PLANTOID}) { + Log3 ($name, 4, "$name - Plant ID set to: ".$hash->{HELPER}{PLANTOID}); + } else { + Log3 ($name, 4, "$name - Plant ID not set !"); + } readingsBeginUpdate($hash); diff --git a/fhem/contrib/DS_Starter/76_SMAPortalSPG.pm b/fhem/contrib/DS_Starter/76_SMAPortalSPG.pm index fabdde0d2..a8e97b1a2 100644 --- a/fhem/contrib/DS_Starter/76_SMAPortalSPG.pm +++ b/fhem/contrib/DS_Starter/76_SMAPortalSPG.pm @@ -41,8 +41,6 @@ our %SMAPortalSPG_vNotesIntern = ( "1.0.0" => "03.06.2019 initial Version " ); -sub SMAPortalSPG_AsHtml($;$$); - ################################################################ sub SMAPortalSPG_Initialize($) { my ($hash) = @_;