Zitat von: Otto123 am 29 April 2024, 23:52:192025 kommt schneller als man denkt.
define RoboMaeher AutomowerConnect 0..-...-...-...-...
im Log folgende Fehler:2025.07.17 18:54:25 1: reload: Error:Modul 74_AutomowerConnect deactivated:
Attempt to reload FHEM/Devices/AMConnect/Common.pm aborted.
Compilation failed in require at ./FHEM/74_AutomowerConnect.pm line 42.
2025.07.17 18:54:25 0: Attempt to reload FHEM/Devices/AMConnect/Common.pm aborted.
Compilation failed in require at ./FHEM/74_AutomowerConnect.pm line 42.
attr Forecast userattr userFn_LoadContribcUpdate:1,0
{
# BEGIN ######## Load_Contrib_Update #######
#
# Wenn attr userFn_LoadContribcUpdate = 1 dann ...
# lade das aktuelle nur 1 x das Solarforecast Update ...
# aus dem Contrib von DS_Starter.
my $updatefromcontrib = AttrVal ($name, 'userFn_LoadContribcUpdate', "0");
if ($updatefromcontrib eq "1") {
# lade die aktuelle Dateiversion vom Contrib DS_Starter
Log3 ($name, 2, qq{$name - start download Update Solarforecast from Contrib ====>>> wird gestartet});
fhem ('"wget -qO ./FHEM/76_SolarForecast.pm https://svn.fhem.de/fhem/trunk/fhem/contrib/DS_Starter/76_SolarForecast.pm"');
# setze aber sofort wieder zurück auf 0 (= nicht weiter laden >> 1 x reicht)
Log3 ($name, 2, qq{$name - end download Update Solarforecast from Contrib});
fhem (" attr $name userFn_LoadContribcUpdate 0");
Log3 ($name, 2, qq{$name - attr $name userFn_LoadContribcUpdate 0 ====>>> wurde ausgeführt});
}
#
#
# ENDE ######## Load_Contrib_Update #######
}
ContribUpdate:userFn_LoadContribcUpdate
2025.07.17 17:02:13 1: PERL WARNING: Use of uninitialized value $iface in hash element at /opt/fhem/FHEM/88_HMCCU.pm line 3049.
2025.07.17 17:02:13 1: stacktrace:
2025.07.17 17:02:13 1: main::__ANON__ called by /opt/fhem/FHEM/88_HMCCU.pm (3049)
2025.07.17 17:02:13 1: main::HMCCU_UpdateDeviceTable called by /opt/fhem/FHEM/88_HMCCURPCPROC.pm (883)
2025.07.17 17:02:13 1: main::HMCCURPCPROC_Read called by fhem.pl (3988)
2025.07.17 17:02:13 1: main::CallFn called by fhem.pl (789)
2025.07.15 18:45:01 1: SolarForecast DEBUG> collect Inverter 01 data - device: NR_PV_Anlage, source: pv, delivery: default =>
2025.07.15 18:45:01 1: SolarForecast DEBUG> pvOut: 3089 W, pvIn: 0 W, AC->DC: 0 W, DC->AC: 0 W, etotal: 4712000 Wh
2025.07.15 18:45:01 1: SolarForecast DEBUG> collect Inverter 02 data - device: NR_PV_Anlage, source: pv, delivery: default =>
2025.07.15 18:45:01 1: SolarForecast DEBUG> pvOut: 3396 W, pvIn: 0 W, AC->DC: 0 W, DC->AC: 0 W, etotal: 1245000 Wh
2025.07.15 18:45:01 1: SolarForecast DEBUG> collect Inverter 03 data - device: NR_PV_Anlage, source: bat, delivery: default =>
2025.07.15 18:45:01 1: SolarForecast DEBUG> pvOut: 0 W, pvIn: 0 W, AC->DC: 0 W, DC->AC: 153 W, etotal: 0 Wh
2025.07.15 18:45:01 1: SolarForecast DEBUG> summary data of all Inverters - pv: 6485 W, this hour Generation: 4000 Wh
2025.07.15 18:45:01 1: SolarForecast DEBUG> State of Plant derating: 0, info: reductionState not set
2025.07.15 18:45:01 1: SolarForecast DEBUG> currently saved 'pvrlvd' value: 1
2025.07.15 18:45:01 1: SolarForecast DEBUG> current percentage pvrl/pvapifc deviation of hod 19: 108.4 % -> pvrlvd: 1
2025.07.15 18:45:01 1: SolarForecast DEBUG> collect Meter data - device: NR_PV_Anlage =>
2025.07.15 18:45:01 1: SolarForecast DEBUG> gcon: 0 W, gfeedin: 5436 W, contotal: 1852000 Wh, feedtotal: 4182000 Wh
2025.07.15 18:45:01 1: SolarForecast DEBUG> collect Battery Readings data: device=NR_PV_Anlage =>
2025.07.15 18:45:01 1: SolarForecast DEBUG> pin: 0 W, pout: 153 W, totalin: 131000 Wh, totalout: 108000 Wh, soc: 98
2025.07.15 18:45:01 1: SolarForecast DEBUG> EnergyConsumption input -> PV: 4000, PP: 0, GridIn: 4000, GridCon: 0, BatIn: 0, BatOut: 0
2025.07.15 18:45:01 1: SolarForecast DEBUG> EnergyConsumption result -> 0 Wh
2025.07.15 18:45:06 1: SolarForecast DEBUG> collect Inverter 01 data - device: NR_PV_Anlage, source: pv, delivery: default =>
2025.07.15 18:45:06 1: SolarForecast DEBUG> pvOut: 3029 W, pvIn: 0 W, AC->DC: 0 W, DC->AC: 0 W, etotal: 4712000 Wh
2025.07.15 18:45:06 1: SolarForecast DEBUG> collect Inverter 02 data - device: NR_PV_Anlage, source: pv, delivery: default =>
2025.07.15 18:45:06 1: SolarForecast DEBUG> pvOut: 3255 W, pvIn: 0 W, AC->DC: 0 W, DC->AC: 0 W, etotal: 1245000 Wh
2025.07.15 18:45:06 1: SolarForecast DEBUG> collect Inverter 03 data - device: NR_PV_Anlage, source: bat, delivery: default =>
2025.07.15 18:45:06 1: SolarForecast DEBUG> pvOut: 0 W, pvIn: 0 W, AC->DC: 0 W, DC->AC: 98 W, etotal: 0 Wh
2025.07.15 18:45:06 1: SolarForecast DEBUG> summary data of all Inverters - pv: 6284 W, this hour Generation: 4000 Wh
2025.07.15 18:45:06 1: SolarForecast DEBUG> State of Plant derating: 0, info: reductionState not set
2025.07.15 18:45:06 1: SolarForecast DEBUG> currently saved 'pvrlvd' value: 1
2025.07.15 18:45:06 1: SolarForecast DEBUG> current percentage pvrl/pvapifc deviation of hod 19: 108.4 % -> pvrlvd: 1
2025.07.15 18:45:06 1: SolarForecast DEBUG> collect Meter data - device: NR_PV_Anlage =>
2025.07.15 18:45:06 1: SolarForecast DEBUG> gcon: 0 W, gfeedin: 5365 W, contotal: 1852000 Wh, feedtotal: 4182000 Wh
2025.07.15 18:45:06 1: SolarForecast DEBUG> collect Battery Readings data: device=NR_PV_Anlage =>
2025.07.15 18:45:06 1: SolarForecast DEBUG> pin: 0 W, pout: 98 W, totalin: 131000 Wh, totalout: 108000 Wh, soc: 98
2025.07.15 18:45:06 1: SolarForecast DEBUG> EnergyConsumption input -> PV: 4000, PP: 0, GridIn: 4000, GridCon: 0, BatIn: 0, BatOut: 0
2025.07.15 18:45:06 1: SolarForecast DEBUG> EnergyConsumption result -> 0 Wh
2025.07.15 18:45:11 1: SolarForecast DEBUG> collect Inverter 01 data - device: NR_PV_Anlage, source: pv, delivery: default =>
2025.07.15 18:45:11 1: SolarForecast DEBUG> pvOut: 2795 W, pvIn: 0 W, AC->DC: 0 W, DC->AC: 0 W, etotal: 4712000 Wh
2025.07.15 18:45:11 1: SolarForecast DEBUG> collect Inverter 02 data - device: NR_PV_Anlage, source: pv, delivery: default =>
2025.07.15 18:45:11 1: SolarForecast DEBUG> pvOut: 3157 W, pvIn: 0 W, AC->DC: 0 W, DC->AC: 0 W, etotal: 1245000 Wh
2025.07.15 18:45:11 1: SolarForecast DEBUG> collect Inverter 03 data - device: NR_PV_Anlage, source: bat, delivery: default =>
2025.07.15 18:45:11 1: SolarForecast DEBUG> pvOut: 0 W, pvIn: 0 W, AC->DC: 0 W, DC->AC: 93 W, etotal: 0 Wh
2025.07.15 18:45:11 1: SolarForecast DEBUG> summary data of all Inverters - pv: 5952 W, this hour Generation: 4000 Wh
2025.07.15 18:45:11 1: SolarForecast DEBUG> State of Plant derating: 0, info: reductionState not set
2025.07.15 18:45:11 1: SolarForecast DEBUG> currently saved 'pvrlvd' value: 1
2025.07.15 18:45:11 1: SolarForecast DEBUG> current percentage pvrl/pvapifc deviation of hod 19: 108.4 % -> pvrlvd: 1
2025.07.15 18:45:11 1: SolarForecast DEBUG> collect Meter data - device: NR_PV_Anlage =>
2025.07.15 18:45:11 1: SolarForecast DEBUG> gcon: 0 W, gfeedin: 5684 W, contotal: 1852000 Wh, feedtotal: 4182000 Wh
2025.07.15 18:45:11 1: SolarForecast DEBUG> collect Battery Readings data: device=NR_PV_Anlage =>
2025.07.15 18:45:11 1: SolarForecast DEBUG> pin: 0 W, pout: 93 W, totalin: 131000 Wh, totalout: 108000 Wh, soc: 98
2025.07.15 18:45:11 1: SolarForecast DEBUG> EnergyConsumption input -> PV: 4000, PP: 0, GridIn: 4000, GridCon: 0, BatIn: 0, BatOut: 0
2025.07.15 18:45:11 1: SolarForecast DEBUG> EnergyConsumption result -> 0 Wh
2025.07.15 18:45:16 1: SolarForecast DEBUG> collect Inverter 01 data - device: NR_PV_Anlage, source: pv, delivery: default =>
2025.07.15 18:45:16 1: SolarForecast DEBUG> pvOut: 2780 W, pvIn: 0 W, AC->DC: 0 W, DC->AC: 0 W, etotal: 4712000 Wh
2025.07.15 18:45:16 1: SolarForecast DEBUG> collect Inverter 02 data - device: NR_PV_Anlage, source: pv, delivery: default =>
2025.07.15 18:45:16 1: SolarForecast DEBUG> pvOut: 3150 W, pvIn: 0 W, AC->DC: 0 W, DC->AC: 0 W, etotal: 1245000 Wh
2025.07.15 18:45:16 1: SolarForecast DEBUG> collect Inverter 03 data - device: NR_PV_Anlage, source: bat, delivery: default =>
2025.07.15 18:45:16 1: SolarForecast DEBUG> pvOut: 0 W, pvIn: 0 W, AC->DC: 0 W, DC->AC: 373 W, etotal: 0 Wh
2025.07.15 18:45:16 1: SolarForecast DEBUG> summary data of all Inverters - pv: 5930 W, this hour Generation: 4000 Wh
2025.07.15 18:45:16 1: SolarForecast DEBUG> State of Plant derating: 0, info: reductionState not set
2025.07.15 18:45:16 1: SolarForecast DEBUG> currently saved 'pvrlvd' value: 1
2025.07.15 18:45:16 1: SolarForecast DEBUG> current percentage pvrl/pvapifc deviation of hod 19: 108.4 % -> pvrlvd: 1
2025.07.15 18:45:16 1: SolarForecast DEBUG> collect Meter data - device: NR_PV_Anlage =>
2025.07.15 18:45:16 1: SolarForecast DEBUG> gcon: 0 W, gfeedin: 5113 W, contotal: 1852000 Wh, feedtotal: 4182000 Wh
2025.07.15 18:45:16 1: SolarForecast DEBUG> collect Battery Readings data: device=NR_PV_Anlage =>
2025.07.15 18:45:16 1: SolarForecast DEBUG> pin: 0 W, pout: 373 W, totalin: 131000 Wh, totalout: 108000 Wh, soc: 98
2025.07.15 18:45:16 1: SolarForecast DEBUG> EnergyConsumption input -> PV: 4000, PP: 0, GridIn: 4000, GridCon: 0, BatIn: 0, BatOut: 0
2025.07.15 18:45:16 1: SolarForecast DEBUG> EnergyConsumption result -> 0 Wh
1. Überprüfe die Zuordnung in SolarForecast
Stelle sicher, dass:
das Device (NR_PV_Anlage) einen Meter-Abschnitt mit Grid Consumption korrekt liefert,
oder, falls dein Setup keinen Grid-Verbrauchssensor hat (sondern nur Einspeisung), dass der Verbrauch korrekt aus pv + gfeedin – batout etc. errechnet wird.
2. Option EnergySourceFallback aktivieren
Falls deine Anlage keinen echten Verbrauchszähler hat (z. B. wie bei Victron, wo gcon oft 0 ist), kannst du in der Konfiguration folgendes setzen:
attr <DeinSolarForecastDevice> EnergySourceFallback yes
Das zwingt das Modul dazu, den Verbrauch zu berechnen, auch wenn GridCon = 0 ist.
3. Custom-Mapping überprüfen
Wenn du eigene Datenquellen per ReadingMap einbindest, prüfe, ob z. B. GridCon falsch zugeordnet ist oder leer bleibt.
userReadings windangle_txt
{
if( ReadingsVal( 'netatmo_M06_00_00_01_ac_e8', 'windangle', '' ) > 0 && ReadingsVal( 'netatmo_M06_00_00_01_ac_e8', 'windangle', '' ) < 360 ) {
return 'N'
} else {
return -1
}
}