Repository navigation
Update V52.0.4
Solar Forecast ML Suite V52.0.8 – Update
Since V52.0.0, quite a bit has accumulated again. This update mainly consists of bug fixes based on your feedback: small systems on rainy days, the EMS after a restart, and a lot of work on S-INV.
Fuel my late-night ideas with a coffee? I'd really appreciate it — it keeps this project running.
Thanks to everyone who sent me logs, screenshots, and bug reports. Almost every point below comes directly from that!
Solar Forecast ML
Small systems on rainy days
- No fixed lower limit for the weather-condition deduction anymore: Previously, a fixed minimum amount could be deducted per hour on cloudy days. For very small systems (under approx. 1 kWp), this almost pushed the forecast to zero. The deduction is now only relative, at most 35% of the hour.
- The midday correction (MDC) adapts to the system size: The trigger threshold grows with the kWp output. Small systems now receive their midday correction even when the deviation in kWh is small. From about 2.2 kWp onward, nothing changes.
- MDC with a forecast near 0: If the forecast is almost zero and there is still yield, the deviation is now correctly recognized.
AI
- Promotion Gate: Each model now remembers which version of the input data it was trained with. If the active champion is still running on an older version than the current code, “not worse” is sufficient for the next candidate. This way the AI learns faster again after an update. All other checks remain strict, including the protection for fresh installations.
- More robust against short database locks: A short lock no longer aborts the nightly training, and the shadow learning of the day is no longer lost as a result.
Corrections
- Morning routine: The error in the morning routine from 52.0.0 is fixed.
Solar Forecast ML STATS
EMS
- The mode is preserved: After an HA restart, a short EAI outage, or a configuration change, the EMS no longer falls back to “Observe”.
- As long as no valid data is available, the EMS pauses and switches nothing. As soon as the data is valid again, it continues automatically. The message “EMS paused … resumes automatically” appears only once per outage.
- The safety checks before every switching remain unchanged.
- EMS diagram: The colors in the legend and tooltip are corrected.
Start page
- Light mode: The scene is now also clearly readable in light mode.
- Grid tile: It now shows the total grid draw (house and battery) and thus matches the scene.
- Battery tile: If the battery is charged from the grid, it additionally shows “from grid X W”.
S-INV “Assignment”
- New section “STATS”: The power sensors of STATS itself (e.g. house consumption) can now also be switched to S-INV by click, including “Undo”.
EAI card
- The circle now shows the confidence of the selected hour; next to it is “Ø confidence 72 h”.
Solar Forecast EAI
- Current COP: It was previously often displayed as “Not yet available” when the heat pump power sensor updates rarely. This is fixed.
- PV window: The confidence is no longer a fixed number but is learned from your measurement data.
- As long as there is too little data, it shows “Learning phase – confidence increases with measurement data”.
- Instead of “No reliable PV window”, there is then a provisional window with time.
- Cleaned up: EAI no longer registers Home Assistant actions. The accidentally visible developer actions are gone; the automatic processes continue unchanged.
Grid Price Monitor
- No functional changes, only the version is aligned.
Solar Forecast ML S-INV 4.0.0
New inverters
-
Enphase (IQ8 microinverters)
- Via the IQ Gateway (Envoy) with Owner token, locally via HTTPS.
- Each microinverter is created as its own device.
- With production and consumption CTs, there are additionally grid power, grid meter, and house consumption.
- If the token becomes invalid, Home Assistant automatically asks for a new one.
-
Sigenergy (Sigen Hybrid SP/SP2/TP/TP2, SigenStor EC)
- Via Modbus TCP, read-only.
- Provides PV, strings, battery, and with a connected grid sensor, grid and house consumption.
Both are built according to manufacturer documentation and have not yet been tested on real hardware. I look forward to your feedback!
New
- Night sleep for all local inverters: Pure PV inverters that go offline from the grid at night (e.g. Hoymiles HMS-W with built-in DTU, Deye microinverters, Fronius without night mode) show 0 W at night and retain their meter readings. This also applies after an HA restart at night.
- Hybrids with battery are excluded.
- If a device fails during the day, it remains visibly “unavailable”.
- Failure of individual inverters: If one of several devices fails, the sums and power flows of the system remain available.
- Power: last value for 5 minutes, then 0 W.
- Meters: the last reading.
- The attribute
sinv_missing_sourcesshows which device is currently missing.
Corrections
- Anker with Smart Meter: The system’s grid meters now come from the Solarbank instead of the Smart Meter, which only sends sporadically. When switching, the meter reading is continued without a jump, so there is no outlier in the energy dashboard.
- Anker power flows: “Grid → Battery” showed 0 W when charging from the grid. The flows are now always calculated cleanly.
- Solakon: The sign of the battery power is now recognized per device (e.g. MQ2200, WF2000M).
- Power flows when charging: When the battery is charged, PV → Battery takes precedence over PV → House.
- House consumption today: No more short dips due to time-shifted devices. This had caused warnings in HA and small spikes in the statistics.
- Deye: Setup aborted with “UnknownStep”. This is fixed; both connection types work again.
- Modbus TCP (including Huawei): Delayed responses no longer lead to connection abortion, and error messages now name the specific values.
- Hoymiles DTU: On an unreadable response, S-INV retries once after 3 seconds instead of immediately reporting an error.
Please note
- Solakon: Right after the update, the battery power is briefly missing until the sign is recognized. With normal charging power this is minutes; with very low power up to about one hour.
- Double querying: If you additionally use integrations that query the same devices (e.g. hoymiles_wifi or ems_esp_manager), you should remove them. Many devices do not tolerate two queries at the same time.
S-INV now supports:
- Anker Solix
- Fronius
- Sungrow
- Huawei
- Zendure
- Hoymiles (OpenDTU, AhoyDTU, DTU/HMS-W)
- KOSTAL
- SolaX
- Solakon
- maxxisun
- Deye
- SolPlanet
- Enphase
- Sigenergy
Heat pumps:
- Bosch/Buderus (via EMS-ESP)
- Stiebel Eltron
- all others currently via bridge mode.
Restart Home Assistant once after the update.
Zara