Zitat von: DS_Starter am 31 Oktober 2025, 11:29:43Ich habe die kleine Anpassung in ___batFindMinPhWh eingebaut und sieht nun so aus:
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeMgmt Bat 01 - selected charging strategy: smartPower
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeMgmt Bat 01 - General load termination condition: 0
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeMgmt Bat 01 - control time Slot - Slot start: 00:00, Slot end: 23:59
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeMgmt Bat 01 - Battery efficiency used: 87 %
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeMgmt Bat 01 - weighted self-consumption: 0 %
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeMgmt Bat 01 - charging target: 100 % / 7680 Wh
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeMgmt Bat 01 - Percentage of the total amount of charging energy required: 100.0 %
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeMgmt Bat 01 - The PV generation, consumption and surplus listed below are based on the battery's share of the total amount of charging energy required!
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeOTP Bat 01 - used safety margin: 20 %
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeOTP Bat 01 - charging target: 7680 Wh, remaining: 2243 Wh -> target likely achievable? yes
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeOTP Bat 01 - current Ratio of surplus / energy requirement to achieve the load target: 623.35 %
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeOTP Bat 01 31/12 - hod:13/00, lr/lc:1/1, SocS/E:5437/7680 Wh, SurpH/D/R:4550/8468/13979 Wh, OTP:704/587 W
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeOTP Bat 01 31/13 - hod:14/01, lr/lc:0/1, SocS/E:7680/7680 Wh, SurpH/D/R:4667/3801/9429 Wh, OTP:3000/0 W
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeOTP Bat 01 31/14 - hod:15/02, lr/lc:0/1, SocS/E:7680/7680 Wh, SurpH/D/R:3121/680/4762 Wh, OTP:3000/0 W
2025.10.31 12:11:16 1: PV_SolarForecast DEBUG> ChargeOTP Bat 01 31/15 - hod:16/03, lr/lc:0/1, SocS/E:7680/7680 Wh, SurpH/D/R:1641/0/1641 Wh, OTP:3000/0 W
2025-10-30 12:17:28 batteryHeatingSchedule {our %volumes;
$volumes{a} = 42; for my $hod (@hods) {
my $cap = $hsurp->{$hod}{surplswh};
my $nhr = $hsurp->{$hod}{nhr};
$cap = $cap / 60 * (60 - int $minute) if($nhr eq '00');
$charged += $mid < $cap ? $mid : $cap;
}
2025.10.31 11:19:38.507 1: SolCast DEBUG> ChargeMgmt Bat 01 - charging target: 75 % / 21312 Wh
2025.10.31 11:19:38.507 1: SolCast DEBUG> ChargeMgmt Bat 01 - Percentage of the total amount of charging energy required: 100.0 %
2025.10.31 11:19:38.508 1: SolCast DEBUG> ChargeMgmt Bat 01 - The PV generation, consumption and surplus listed below are based on the battery's share of the total amount of charging energy required!
2025.10.31 11:19:38.515 1: SolCast DEBUG> ChargeOTP Bat 01 - used safety margin: 20 %
2025.10.31 11:19:38.515 1: SolCast DEBUG> ChargeOTP Bat 01 - charging target: 21312 Wh, remaining: 7672 Wh -> target likely achievable? no
2025.10.31 11:19:38.515 1: SolCast DEBUG> ChargeOTP Bat 01 - current Ratio of surplus / energy requirement to achieve the load target: 82.27 %
2025.10.31 11:19:38.516 1: SolCast DEBUG> ChargeOTP Bat 01 31/11 - hod:12/00, lr/lc:1/1, SocS/E:13640/14850 Wh, SurpH/D:1864/4135 Wh, OTP:2432/2027 W
2025.10.31 11:19:38.516 1: SolCast DEBUG> ChargeOTP Bat 01 31/12 - hod:13/01, lr/lc:1/1, SocS/E:14850/16044 Wh, SurpH/D:1257/2878 Wh, OTP:2432/2027 W
2025.10.31 11:19:38.516 1: SolCast DEBUG> ChargeOTP Bat 01 31/13 - hod:14/02, lr/lc:1/1, SocS/E:16044/17970 Wh, SurpH/D:2027/851 Wh, OTP:2432/2027 W
2025.10.31 11:19:38.517 1: SolCast DEBUG> ChargeOTP Bat 01 31/14 - hod:15/03, lr/lc:1/1, SocS/E:17970/19500 Wh, SurpH/D:1610/0 Wh, OTP:1932/1610 W
2025.10.31 11:19:38.517 1: SolCast DEBUG> ChargeOTP Bat 01 31/15 - hod:16/04, lr/lc:1/1, SocS/E:19500/19637 Wh, SurpH/D:144/0 Wh, OTP:5040/144 W
2025.10.31 11:19:38.517 1: SolCast DEBUG> ChargeOTP Bat 01 31/16 - hod:17/05, lr/lc:1/1, SocS/E:19637/19178 Wh, SurpH/D:0/0 Wh, OTP:5040/- W
ZitatKann es sein, dass das MQTT2 Modul mit den Newlines nicht klarkommt?
$ mosquitto_pub -i test -t saic/XXX/vehicles/123/drivetrain/batteryHeatingSchedule -f x.json
ausfuehre, wobei x.json eine Datei mit obigen Inhalt (samt Newlines) ist, dann wird ein MQTT2_DEVICE angelegt, mitfhem> l test
Internals:
CFGFN
CID test
DEF test
FUUID 69048d4b-f33f-c296-824a-a7d181eaf44a220a
IODev m2s
NAME test
NR 36
STATE ???
TYPE MQTT2_DEVICE
eventCount 1
READINGS:
2025-10-31 11:19:55 IODev m2s
2025-10-31 11:19:55 mode off
2025-10-31 11:19:55 startTime 00:00
Attributes:
readingList test:saic/rko/vehicles/123/drivetrain/batteryHeatingSchedule:.* { json2nameValue($EVENT) }
room MQTT2_DEVICE