"; - if(!$hash) { + if(!$hash) { ## no critic "Cascading" $ret .= "Device \"$name\" doesn't exist !"; } elsif (!defined($defs{$wlname})) { $ret .= "Graphic device \"$wlname\" doesn't exist !"; - } elsif ($dl != 4) { - $ret .= "The attribute \"detailLevel\" of device \"$name\" has to be set to level \"4\" !"; + } elsif (!$fdo) { + $ret .= qq{The attribute "providerLevel" of device "$name" must contain the level "forecastData" and data must be retrieved !}; } elsif (!defined $pv0) { - $ret .= "Awaiting level 2 data ..."; + $ret .= "Awaiting minor level forecast data ..."; } elsif (!defined $pv1) { - $ret .= "Awaiting level 4 data ..."; + $ret .= "Awaiting level major level forecast data ..."; } $ret .= " | "; @@ -2408,7 +2831,7 @@ sub PortalAsHtml { $cmdauto = "\"ftui.setFhemStatus('set $name $txt auto')\""; } - my $swstate = ReadingsVal($name,"L3_".$txt."_Switch", "undef"); + my $swstate = ReadingsVal($name,"${cclv}_".$txt."_Switch", "undef"); my $swicon = "
L1 | - live data, statistic day data and weather data are generated. |
L2 | - as L1 and additional forecast of the current data, the data of the next 4 hours as well as PV-Generation / Consumption the rest of day and the next day |
L3 | - as L2 and additional forecast of the planned switch-on times of consumers, whose current state and energy data as well as their battery usage data |
L4 | - as L3 and additional a detailed forecast of the next 24 hours |
Any | - all messages |
NotApproved | - unconfirmed messages |
liveData | - generates readings of the current generation and consumption data |
weatherData | - Weather data offered by SMA are retrieved |
balanceDayData | - Statistics data of the day are retrieved |
forecastData | - Forecast data of generation/consumption and consumer planning data are generated |
consumerCurrentdata | - current consumer data are generated |
consumerDayData | - consumer data day are generated |
consumerMonthData | - consumer data month are generated |
consumerYearData | - consumer data year are generated |
plantLogbook | - the maximum of 25 most recent entries of the plant logbook are retrieved |
define <Name> SMAPortal
L1 | - Live-Daten, Tagesstatistiken und Wetter-Daten werden generiert. |
L2 | - wie L1 und zusätzlich Prognose der aktuellen und nächsten 4 Stunden sowie PV-Erzeugung / Verbrauch des Resttages und des Folgetages |
L3 | - wie L2 und zusätzlich Prognosedaten der geplanten Einschaltzeiten von Verbrauchern, deren aktueller Status und Energiedaten sowie Batterie-Nutzungsdaten |
L4 | - wie L3 und zusätzlich die detaillierte Prognose der nächsten 24 Stunden |
Any | - alle Mitteilungen |
NotApproved | - nicht bestätigte Mitteilungen |
liveData | - erzeugt Readings der aktuellen Erzeugungs- und Verbrauchsdaten |
weatherData | - von SMA angebotene Wetterdaten werden abgerufen |
balanceDayData | - Statistikdaten des Tages werden abgerufen |
forecastData | - Vorhersagedaten der Erzeugung / Verbrauch und Verbraucherplanungsdaten werden erzeugt |
consumerCurrentdata | - aktuelle Verbraucherdaten werden erzeugt |
consumerDayData | - Verbraucherdaten Tag werden erzeugt |
consumerMonthData | - Verbraucherdaten Monat werden erzeugt |
consumerYearData | - Verbraucherdaten Jahr werden erzeugt |
plantLogbook | - die maximal 25 aktuellsten Einträge des Anlagenlogbuchs werden abgerufen |