Repository navigation
Update EAI & STATS to Version V40.0.2
Release Notes: SFML EAI // SFML ML // SFML STATS V40.0.2
This release brings comprehensive overhauls to sensor processing, simplified configuration workflows, and essential stability and compatibility improvements for Home Assistant integration (including HA 2026.7.x).
Fuel my late-night ideas with a coffee? I'd really appreciate it — keep this project running!
SFML EAI
1. Intelligent Sensor Autofill (Reduced Configuration Effort)
- Detection of Existing Mappings: EAI can now detect existing sensor assignments from SFML, STATS, and Weather Fusion AI and automatically suggest them in the input fields.
- No Automatic Adoption: Suggestions are displayed as pre-filled fields only. Mappings are never applied automatically; they require explicit user confirmation and review.
- Priority for Existing Data: Manually assigned sensors always take precedence and will not be overwritten.
2. Separate Tracking for Heat Pump Booster Heater and Compressor
For heat pumps equipped with an electric booster heater (heating rod), the following metrics can now be tracked separately:
- Booster heater activity
- Current booster heater power output
- Daily energy consumption of the booster heater
Logic & Compatibility:
- Shared Meters: Existing setups using a shared energy meter remain fully compatible, ensuring no double-counting of the booster heater.
- Separate Meters: With separate tracking enabled, the compressor and booster heater are correctly combined to calculate total power and total energy.
3. Streamlined EV Charger Configuration & System Hardening
- Truly Optional Sensors: Only essential data is now required for EV Charger setup (current EV charger power and the selected demand source: state of charge, required energy, or planned distance).
- Optional Fields: Daily energy, vehicle connected, and charging active are now fully optional.
- Edge Case Safeguards: Comprehensive handling has been implemented for edge cases, including missing sensor sources, multiple integration instances, invalid units, modified configurations, failed discharges, and outdated or conflicting assignments.
- Quality & Security: All changes were rigorously tested against live code and Home Assistant 2026.7. Both an independent QA review and a dedicated Security and Privacy audit were successfully completed, giving full release clearance for the current codebase.
4. Streamlined Setup Flow for Weather Intelligence
- When activating Weather Intelligence exclusively, the subsequent query for electricity prices and tariffs is skipped.
- Once the weather configuration is complete, the setup proceeds directly to the summary.
- Optional price and tariff configurations remain available whenever heat pumps or EV chargers are active.
5. Bug Fix: Home Assistant 2026.7.x Compatibility
- Fixed sensor processing for heat pumps: Constant/unchanging values were occasionally incorrectly flagged as outdated by Home Assistant (HA 2026.7.x), causing valid power, energy, and operating metrics to show as "Not available".
6. Decoupled Heat Pump Sensor Queries
- Standby states on certain heat pumps were reported as
unavailableby Home Assistant, triggering false "missing data source" warnings. - Sensor polling logic has been moved out of Home Assistant's core layer and into dedicated EAI code, ensuring long-term stability across future Home Assistant updates.
7. Weather Intelligence: Historical Data via Home Assistant Recorder
- Based on user feedback, EAI Weather Fusion AI now pulls historical data and comparisons directly from the Home Assistant Recorder instead of the SFML database, allowing users to leverage longer-term historical data.
SFML ML
- AI Stack Overhaul & Promotion Gate: In preparation for the upcoming shadow detection fix, the AI stack architecture was updated and equipped with a Promotion Gate. This gate preserves the best-performing model state over a 7-day period to prevent erratic behavior.
- NOTE on Runtime Optimization: The End-of-Day (EOD) process within the gate now typically takes only 10 to 40 seconds. The full evaluation run (16/16) is executed only upon a verified model improvement or routinely once every 7 days.
SFML STATS
- Compatibility Fixes: Minor adjustments and fixes implemented to align with the updates made in EAI.