[98_Fronius.pm] Fronius API Modul

Begonnen von michael.winkler, 26 August 2020, 20:10:45

Vorheriges Thema - Nächstes Thema

octek0815

Zitat von: grappa24 am 05 November 2023, 18:50:23@Olli: Super, Werte werden bei mir geliefert, leider isses schon dunkel, aber man sieht die Spannungs- und Stromwerte der beiden Strings ;D

Tolle Arbeit, jetzt kann ich sehen, ob sich die Belegung meiner N/O Seite gelohnt hat  ;)

Das freut mich das ich helfen konnte.

LG

octek0815

Hallo,

wenn noch eine Batterie an der GEN24 hängt könnt ihr mit dem folgenden Code noch die gesamt Menge an Energie die in die Batterie geladen wurde bzw. aus der Batterie entladen wurde. Somit kann man sich einen Tages, Monats und Jahres Zähler für die Batterie bauen.

LG
Olli

defmod GEN24_AKKU_Gesamt HTTPMOD http://10.208.3.210/components/cache/readable 10
attr GEN24_AKKU_Gesamt devStateIcon {my $laden = sprintf("%.3f",ReadingsVal($name,"urBatCharge",0)/1000);; my $entladen = sprintf("%.3f",ReadingsVal($name,"urBatDischarge",0)/1000);; "<div>Zählerstand Akku laden: $laden kWh | Zählerstand Akku entladen: $entladen kWh</div>"}
attr GEN24_AKKU_Gesamt event-on-change-reading .*
attr GEN24_AKKU_Gesamt group WR1
attr GEN24_AKKU_Gesamt icon inverter
attr GEN24_AKKU_Gesamt reading3Name BAT_ENERGYACTIVE_ACTIVECHARGE_SUM_01_U64
attr GEN24_AKKU_Gesamt reading3OExpr {sprintf("%.0f", $val)}
attr GEN24_AKKU_Gesamt reading3OMap null:0
attr GEN24_AKKU_Gesamt reading3Regex "BAT_ENERGYACTIVE_ACTIVECHARGE_SUM_01_U64"[ : \t]+([-+]?[a-z\d\.]+)
attr GEN24_AKKU_Gesamt reading4Name BAT_ENERGYACTIVE_ACTIVEDISCHARGE_SUM_01_U64
attr GEN24_AKKU_Gesamt reading4OExpr {sprintf("%.0f", $val)}
attr GEN24_AKKU_Gesamt reading4OMap null:0
attr GEN24_AKKU_Gesamt reading4Regex "BAT_ENERGYACTIVE_ACTIVEDISCHARGE_SUM_01_U64"[ : \t]+([-+]?[a-z\d\.]+)
attr GEN24_AKKU_Gesamt showError 1
attr GEN24_AKKU_Gesamt userReadings urBatCharge {my $wert = sprintf("%.0f",ReadingsVal($name,"BAT_ENERGYACTIVE_ACTIVECHARGE_SUM_01_U64",0)/3600);; ($wert > 0 ) ? $wert : 0}, \
urBatDischarge {my $wert = sprintf("%.0f",ReadingsVal($name,"BAT_ENERGYACTIVE_ACTIVEDISCHARGE_SUM_01_U64",0)/3600);; ($wert > 0 ) ? $wert : 0}
attr GEN24_AKKU_Gesamt verbose 2

stefanru

Oh wow,

cool.
Die Cache Readings könnte man ja auch ins Modul aufnehmen.
Ist halt nur nicht offiziell und so kann:
"Note" : "this internal API may be changed any time"

Aber interessante Werte, vor allem auch ein PV Summen Zähler den es in der ofiziellen API nicht gibt.

Gruß,
Stefan

grappa24

@Olli: Die String- und Batteriewerte werden mit den HTTPMODs perfekt geliefert. Gerade steht es 5:2 für die S/W Seite  ;)

Frage: Im Log laufen sehr viele Fehler auf; hab sie mit verbose ausgefiltert, aber sollte man da etwas beachten?

2023.11.06 07:33:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 390.161 (390.161) in map null:0
2023.11.06 07:34:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 46 (46) in map null:0
2023.11.06 07:34:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 57 (57) in map null:0
2023.11.06 07:34:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.118 (0.118) in map null:0
2023.11.06 07:34:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 384.924 (384.924) in map null:0
2023.11.06 07:34:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.147 (0.147) in map null:0
2023.11.06 07:34:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 387.855 (387.855) in map null:0
2023.11.06 07:34:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 47 (47) in map null:0
2023.11.06 07:34:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 58 (58) in map null:0
2023.11.06 07:34:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.123 (0.123) in map null:0
2023.11.06 07:34:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 386.926 (386.926) in map null:0
2023.11.06 07:34:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.151 (0.151) in map null:0
2023.11.06 07:34:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 387.076 (387.076) in map null:0
2023.11.06 07:34:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 49 (49) in map null:0
2023.11.06 07:34:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 60 (60) in map null:0
2023.11.06 07:34:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.126 (0.126) in map null:0
2023.11.06 07:34:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 385.393 (385.393) in map null:0
2023.11.06 07:34:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.157 (0.157) in map null:0
2023.11.06 07:34:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 378.934 (378.934) in map null:0
2023.11.06 07:34:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 50 (50) in map null:0
2023.11.06 07:34:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 62 (62) in map null:0
2023.11.06 07:34:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.130 (0.130) in map null:0
2023.11.06 07:34:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 386.813 (386.813) in map null:0
2023.11.06 07:34:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.158 (0.158) in map null:0
2023.11.06 07:34:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 389.648 (389.648) in map null:0
2023.11.06 07:35:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 52 (52) in map null:0
2023.11.06 07:35:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 63 (63) in map null:0
2023.11.06 07:35:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.135 (0.135) in map null:0
2023.11.06 07:35:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 386.739 (386.739) in map null:0
2023.11.06 07:35:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.161 (0.161) in map null:0
2023.11.06 07:35:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 392.492 (392.492) in map null:0
2023.11.06 07:35:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 54 (54) in map null:0
2023.11.06 07:35:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 65 (65) in map null:0
2023.11.06 07:35:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.138 (0.138) in map null:0
2023.11.06 07:35:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 389.069 (389.069) in map null:0
2023.11.06 07:35:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.168 (0.168) in map null:0
2023.11.06 07:35:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 388.133 (388.133) in map null:0
2023.11.06 07:35:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 55 (55) in map null:0
2023.11.06 07:35:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 67 (67) in map null:0
2023.11.06 07:35:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.140 (0.140) in map null:0
2023.11.06 07:35:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 390.127 (390.127) in map null:0
2023.11.06 07:35:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.171 (0.171) in map null:0
2023.11.06 07:35:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 389.444 (389.444) in map null:0
2023.11.06 07:35:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 57 (57) in map null:0
2023.11.06 07:35:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 68 (68) in map null:0
2023.11.06 07:35:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.147 (0.147) in map null:0
2023.11.06 07:35:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 386.654 (386.654) in map null:0
2023.11.06 07:35:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.172 (0.172) in map null:0
2023.11.06 07:35:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 397.387 (397.387) in map null:0
FHEM 6.1, 2 x RasPi 3B+, Debian Buster; KNX, FS20, HM, HUE, Tradfri, Shellies, KLF200
Rollo-/Lichtsteuerung/-szenarien, T-Sensoren, Fensterkontakte, Heizungssteuerung, HEOS, Sprachsteuerung mit Alexa-FHEM, Netatmo, Nuki, ...

octek0815

#304
Zitat von: grappa24 am 06 November 2023, 08:48:15@Olli: Die String- und Batteriewerte werden mit den HTTPMODs perfekt geliefert. Gerade steht es 5:2 für die S/W Seite  ;)

Frage: Im Log laufen sehr viele Fehler auf; hab sie mit verbose ausgefiltert, aber sollte man da etwas beachten?

2023.11.06 07:33:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 390.161 (390.161) in map null:0
2023.11.06 07:34:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 46 (46) in map null:0
2023.11.06 07:34:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 57 (57) in map null:0
2023.11.06 07:34:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.118 (0.118) in map null:0
2023.11.06 07:34:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 384.924 (384.924) in map null:0
2023.11.06 07:34:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.147 (0.147) in map null:0
2023.11.06 07:34:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 387.855 (387.855) in map null:0
2023.11.06 07:34:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 47 (47) in map null:0
2023.11.06 07:34:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 58 (58) in map null:0
2023.11.06 07:34:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.123 (0.123) in map null:0
2023.11.06 07:34:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 386.926 (386.926) in map null:0
2023.11.06 07:34:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.151 (0.151) in map null:0
2023.11.06 07:34:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 387.076 (387.076) in map null:0
2023.11.06 07:34:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 49 (49) in map null:0
2023.11.06 07:34:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 60 (60) in map null:0
2023.11.06 07:34:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.126 (0.126) in map null:0
2023.11.06 07:34:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 385.393 (385.393) in map null:0
2023.11.06 07:34:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.157 (0.157) in map null:0
2023.11.06 07:34:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 378.934 (378.934) in map null:0
2023.11.06 07:34:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 50 (50) in map null:0
2023.11.06 07:34:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 62 (62) in map null:0
2023.11.06 07:34:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.130 (0.130) in map null:0
2023.11.06 07:34:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 386.813 (386.813) in map null:0
2023.11.06 07:34:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.158 (0.158) in map null:0
2023.11.06 07:34:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 389.648 (389.648) in map null:0
2023.11.06 07:35:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 52 (52) in map null:0
2023.11.06 07:35:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 63 (63) in map null:0
2023.11.06 07:35:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.135 (0.135) in map null:0
2023.11.06 07:35:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 386.739 (386.739) in map null:0
2023.11.06 07:35:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.161 (0.161) in map null:0
2023.11.06 07:35:00 3: GEN24_MPPT: MapConvert called from FormatReading did not find 392.492 (392.492) in map null:0
2023.11.06 07:35:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 54 (54) in map null:0
2023.11.06 07:35:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 65 (65) in map null:0
2023.11.06 07:35:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.138 (0.138) in map null:0
2023.11.06 07:35:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 389.069 (389.069) in map null:0
2023.11.06 07:35:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.168 (0.168) in map null:0
2023.11.06 07:35:15 3: GEN24_MPPT: MapConvert called from FormatReading did not find 388.133 (388.133) in map null:0
2023.11.06 07:35:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 55 (55) in map null:0
2023.11.06 07:35:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 67 (67) in map null:0
2023.11.06 07:35:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.140 (0.140) in map null:0
2023.11.06 07:35:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 390.127 (390.127) in map null:0
2023.11.06 07:35:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.171 (0.171) in map null:0
2023.11.06 07:35:30 3: GEN24_MPPT: MapConvert called from FormatReading did not find 389.444 (389.444) in map null:0
2023.11.06 07:35:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 57 (57) in map null:0
2023.11.06 07:35:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 68 (68) in map null:0
2023.11.06 07:35:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.147 (0.147) in map null:0
2023.11.06 07:35:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 386.654 (386.654) in map null:0
2023.11.06 07:35:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 0.172 (0.172) in map null:0
2023.11.06 07:35:45 3: GEN24_MPPT: MapConvert called from FormatReading did not find 397.387 (397.387) in map null:0


Moin,

ich habs mit Verbose 2 weggedrückt, aber du kannst die Attribute mit "*OMap null:0" entfernen.
Die werden nicht benötigt, da der Gen24 so wie es aussieht im die "0" im JSON String erhält und nicht mit "null" ersetzt.
Ist noch ein Relikt vom auslesen meines normalen Symo Wechselrichters.

LG
Olli

grappa24

Die Analyse der S/W und N/O Strings ist interessant.
Bei diffusem Licht liefern beide fast gleich viel, nur bei direkter Sonneneinstrahlung wirds sehr deutlich.
FHEM 6.1, 2 x RasPi 3B+, Debian Buster; KNX, FS20, HM, HUE, Tradfri, Shellies, KLF200
Rollo-/Lichtsteuerung/-szenarien, T-Sensoren, Fensterkontakte, Heizungssteuerung, HEOS, Sprachsteuerung mit Alexa-FHEM, Netatmo, Nuki, ...


stefanru

Hi,

da ich 2 Fronius WR habe bei denen ich die Power Flow Realtime Daten zur selben Zeit abfragen muss um konsistente Daten zu bekommen hatte ich mir eine eigene Lösung gebastelt.

Nun habe ich diese seit 2 Wochen auf die von fichtennadel, siehe unten umgestellt.
Die Version von fichtennadel funktioniert sehr gut und die fixes sollten ihren weg ins repo finden.

Ich habe folgende Einstellungen gewählt.
GEN24 (HauptWR mit Batterie):
IntervalArchiveData 600
IntervalInverterRealtimeData 60
IntervalMeterRealtimeData 60
IntervalPowerFlowRealtimeData 5
IntervalRealtimeData 0
IntervalStorageRealtimeData 60

SYMO (2. WR der zuliefert):
IntervalArchiveData 600
IntervalInverterRealtimeData 60
IntervalMeterRealtimeData 60
IntervalPowerFlowRealtimeData 0
IntervalRealtimeData 0
IntervalStorageRealtimeData 60

Den Sync übernimmt ein Notify dieser Form:
DEFMOD syncPowerFlowWechselrichter Gen24:PowerFlow_Site_P_PV.* set Symo GetPowerFlowData;get stromzaehler update;

Ich habe in diesem zug auch noch den Stromzähler (SmartMeter mit UML) an den selben Takt gehängt.
Die Systemlast ist spürbar herunter gegangen obwohl ich die Power Flow Realtime Daten alle 5 sekunden (vorher 15) hole.
Dafür hole ich die anderen Daten nur alle 60 und Archiv Daten nur alle 600 Sekunden.

Das wird aber auch zum großen Teil daran liegen dass der Stromzähler nun auch nur alle 5 sekunden abgefragt wird anstatt vorher push.

Wie gesagt es läuft sehr stabil und es wäre toll wenn dies eingepflegt werden könnte und das Modul eventuell auch ins Repo aufgenommen werden könnte.

Danke und Gruß,
Stefan

Zitat von: fichtennadel am 30 September 2023, 20:41:51Ich habe eine Version erstellt, die Änderungen von kask ( Korrektur der Sommerzeit (https://forum.fhem.de/index.php?topic=113850.msg1277280#msg1277280) und Daten manuel abholen (https://forum.fhem.de/index.php?topic=113850.msg1287616#msg1287616) ) beinhaltet, nur das Problem mit der verlorenen Timern nach dem Restart habe ich aber anders gelöst (Timer erst nach init_done anlegen).

Ich habe auch spezifische Intervalle je Datenset eingebaut und Anpassungen bei getArchiveData vorgenommen, damit man mit EnergyReal_WAC_Sum_Produced, EnergyReal_WAC_Minus_Absolute, EnergyReal_WAC_Plus_Absolute, PowerReal_PAC_Sum konsistente Werte für Berechnungen bekommt.

Changelog:
# - CHANGE:  kask 2023.09.23 - https://forum.fhem.de/index.php?topic=113850.msg1287616#msg1287616
#              - Add: Modul kann mit IntervalRealtimeData <= 0 mit dem command "GetAllData"(und einzel) zum Daten abholen gezwungen werden.
#                Die Reihenfolge der einzelnen Datensätze kann Frei gewählt werden.
#                Es erfolgt bei IntervalRealtimeData <= 0 keine automatische Datenabfrage mehr!
# - CHANGE:  spezifische, parametrisierbare Intervalle je Datenset
#              IntervalPowerFlowRealtimeData, IntervalArchiveData, IntervalStorageRealtimeData, IntervalMeterRealtimeData, IntervalInverterRealtimeData
# - CHANGE:  GetArchiveData:
#             - eigenständig, für IntervalArchiveData = 300 an fixen 5 Minuten-Intervallen ausgerichtet (minimales Datenintervall vom Fronius ist 5min)
#             - zusätzlich Verbrauchswerte für konsistente Berechnungen (Realtime Inverter + Meter Daten sind getrennt)
#                 EnergyReal_WAC_Sum_Produced, EnergyReal_WAC_Minus_Absolute, EnergyReal_WAC_Plus_Absolute, PowerReal_PAC_Sum
#             - Sekunden fix :00 (sonst leere Response von Fronius)
# - BUG:     Sommer/Winterzeit (https://forum.fhem.de/index.php?topic=113850.msg1277280#msg1277280)
# - BUG:     Timer erst nach init_done setzen (https://forum.fhem.de/index.php?topic=113850.msg1285030#msg1285030)

Meine Version:
Du darfst diesen Dateianhang nicht ansehen.

gfix

Hallo,

Danke nochmals an alle für das Fronius API Modul, super Arbeit.

Ich hätte aber noch eine Frage:
Ich habe einen Fronius Gen24 mit BYD-Speicher und TS 65A-3 SmartMeter, funktioniert soweit auch alles ganz gut.
Ich verwende jedoch noch 2 zusätzliche Smartmeter für Wärmepumpe und Elektroauto, sehe auch die aktuellen Messwerte in den Readings.
  z.B.:    PowerFlow_SecondaryMeters_1_P    -2215.5.

ich würde mir gerne eine Monats und Jahres Auswertung einrichten.
gibt es dafür schon was fertiges?
bzw. welchen Werte muss ich dafür verwenden, es werden bei den "RAW Data" jede Menge Infos ausgespuckt"
z.B.:
setstate PV_Wechselrichter 2023-11-30 12:07:19 Meter_2_Details_Manufacturer Fronius
setstate PV_Wechselrichter 2023-11-30 12:07:19 Meter_2_Details_Model Smart Meter TS 65A-3
setstate PV_Wechselrichter 2023-11-30 12:07:19 Meter_2_Details_Serial 3768780204
setstate PV_Wechselrichter 2023-11-30 12:07:19 Meter_2_Enable 1
setstate PV_Wechselrichter 2023-11-30 12:07:19 Meter_2_EnergyReactive_VArAC_Sum_Consumed 970
setstate PV_Wechselrichter 2023-11-30 12:07:19 Meter_2_EnergyReactive_VArAC_Sum_Produced 4
setstate PV_Wechselrichter 2023-11-30 12:07:19 Meter_2_EnergyReal_WAC_Minus_Absolute 27
setstate PV_Wechselrichter 2023-11-30 12:07:19 Meter_2_EnergyReal_WAC_Plus_Absolute 12141
setstate PV_Wechselrichter 2023-11-30 12:07:19 Meter_2_EnergyReal_WAC_Sum_Consumed 27
setstate PV_Wechselrichter 2023-11-30 12:07:19 Meter_2_EnergyReal_WAC_Sum_Produced 12141


kann mir da jemand eine Tipp geben?

Danke,
LG Günther

michaIII

Hallo zusammen,

ich habe seit gestern auch einen Symo Gen24. Es kommen jedoch keine Daten an. Im Fhem LogFile steht "SolarAPI disabled by customer config".
Hier der entsprechende Auszug aus dem Log
2023.11.30 12:35:12 4: [fronius] [froniuswithgetdata_Define] open ip 192.168.0.209
2023.11.30 12:35:12 4: [fronius] [froniuswithgetdata_SendCommand] [GetAPIVersionInfo] START
2023.11.30 12:35:12 4: [fronius] [froniuswithgetdata_SendCommand] [GetAPIVersionInfo] PushToCmdQueue SendURL =http://192.168.0.209/solar_api/GetAPIVersion.cgi
2023.11.30 12:35:12 4: [fronius] [froniuswithgetdata_HandleCmdQueue] [GetAPIVersionInfo] send command=http://192.168.0.209/solar_api/GetAPIVersion.cgi
2023.11.30 12:35:12 4: [fronius] [froniuswithgetdata_Parse] [GetAPIVersionInfo]
2023.11.30 12:35:12 5: [fronius] [froniuswithgetdata_Parse] [GetAPIVersionInfo] DATA Header=HTTP/1.1 404 Not Found
2023.11.30 12:35:12 5: [fronius] [froniuswithgetdata_Parse] [GetAPIVersionInfo] DATA Dumper=SolarAPI disabled by customer config
2023.11.30 12:35:12 3: [fronius] [froniuswithgetdata_setState] to connected
2023.11.30 12:35:12 5: [fronius] [froniuswithgetdata_expandJSON] WRITE DATA --> API_data VALUE --> nodata
Nun wollte ich den Antrag zum Freischalten der API bei SolarWeb stellen.
Da steht jedoch, dass das nur für Geschäftskunden freigeschaltet wird. 
Kann mir bitte jemand einen Tipp geben wie die API freizuschalten ist ?

vielen Dank schonmal

octek0815

Zitat von: michaIII am 30 November 2023, 12:57:09Hallo zusammen,

ich habe seit gestern auch einen Symo Gen24. Es kommen jedoch keine Daten an. Im Fhem LogFile steht "SolarAPI disabled by customer config".
Hier der entsprechende Auszug aus dem Log
2023.11.30 12:35:12 4: [fronius] [froniuswithgetdata_Define] open ip 192.168.0.209
2023.11.30 12:35:12 4: [fronius] [froniuswithgetdata_SendCommand] [GetAPIVersionInfo] START
2023.11.30 12:35:12 4: [fronius] [froniuswithgetdata_SendCommand] [GetAPIVersionInfo] PushToCmdQueue SendURL =http://192.168.0.209/solar_api/GetAPIVersion.cgi
2023.11.30 12:35:12 4: [fronius] [froniuswithgetdata_HandleCmdQueue] [GetAPIVersionInfo] send command=http://192.168.0.209/solar_api/GetAPIVersion.cgi
2023.11.30 12:35:12 4: [fronius] [froniuswithgetdata_Parse] [GetAPIVersionInfo]
2023.11.30 12:35:12 5: [fronius] [froniuswithgetdata_Parse] [GetAPIVersionInfo] DATA Header=HTTP/1.1 404 Not Found
2023.11.30 12:35:12 5: [fronius] [froniuswithgetdata_Parse] [GetAPIVersionInfo] DATA Dumper=SolarAPI disabled by customer config
2023.11.30 12:35:12 3: [fronius] [froniuswithgetdata_setState] to connected
2023.11.30 12:35:12 5: [fronius] [froniuswithgetdata_expandJSON] WRITE DATA --> API_data VALUE --> nodata
Nun wollte ich den Antrag zum Freischalten der API bei SolarWeb stellen.
Da steht jedoch, dass das nur für Geschäftskunden freigeschaltet wird. 
Kann mir bitte jemand einen Tipp geben wie die API freizuschalten ist ?

vielen Dank schonmal

Moin,

nix Solarweb, du musst nur die API im Wechselricher aktivieren.

Am WR anmelden und unter Kommunikation > Solar API > Kommunikation über Solar API aktivieren.

Grüße
Olli

michaIII

Hab' 'ne Weile gebraucht um dieses Menü zu finden.
 
Vielen Dank.

stefanru

Hi gfix,

ich benutze für Montas, Jahres usw. Summen das electricity Modul:
https://wiki.fhem.de/wiki/ElectricityCalculator

Gruß,
Stefan

gfix

Hi,

danke, der ElectricityCalculator funktioniert super  (hab da auch ein Beispiel gefunden)

define Verbrauch_Auto ElectricityCalculator PV_Wechselrichter:Meter_2_EnergyReal_WAC_Sum_Consumed.*

kann ich da in der Definition den Wert gleich durch 1000 dividieren, oder muss ich da vorher eine Dummy Variable machen (ich brauch den Wert ja in kWh)



LG Gü

stefanru

Das machst du über dieses Attribut:
ElectricityKwhPerCounts