Skip to content

v.2.1_Final_2025_v2

Choose a tag to compare

@whyisthisbroken whyisthisbroken released this 27 Dec 13:26
· 23 commits to main since this release
1a93746

The real Final Version 2025 - okay maybe not - we will see :P

🚀 New Features

  • Battery Runtime Estimate Sensor: New text sensor that displays estimated time until battery is full or empty based on current power flow (e.g., "Full in: 2h 30min" or "Empty in: 1h 45min")
  • Event-based Template Sensors: Battery Remaining Capacity now updates immediately when SOC changes instead of fixed intervals
  • Boot Optimization: Added on_boot trigger with 30s delay to ensure proper sensor initialization

⚡ Performance Improvements

Modbus Optimization (57% traffic reduction)

Implemented register_count for batched register reads:

  • Versions Block (31100-31102): 3 requests → 1 request
  • Battery Block (32100-32105): 5 requests → 1 request
  • AC Block (32200-32203): 3 requests → 1 request
  • Energy Block (33000-33011): 6 requests → 1 request
  • Internal Temps (35000-35002): 3 requests → 1 request
  • Cell Temps (35010-35011): 2 requests → 1 request
  • Cell Voltages (37007-37008): 2 requests → 1 request

Result: Reduced from ~35 to ~15 Modbus requests per 3s cycle

Update Frequency Optimization

  • battery_soc: skip_updates 59 → 29 (faster response)
  • battery_total_energy: skip_updates 149 → 29 (fixes boot NAN issue)
  • All energy sensors: standardized to skip_updates 59
  • Battery Remaining Capacity: 120s → event-based (~3s response time)

🔧 Technical Improvements

  • AC Voltage filter: delta 1.0 → 0.5 (more accurate detection)
  • Added on_value trigger to battery_soc for immediate template sensor updates
  • Unified skip_updates values for consistency

📈 Impact

  • Response Time: Battery Remaining Capacity 40x faster (120s → ~3s)
  • Bus Load: 57% reduction in Modbus traffic
  • Boot Time: Reliable sensor initialization within 30-90 seconds
  • CPU Efficiency: Event-based updates reduce unnecessary calculations

🐛 Bug Fixes

  • Fixed Battery Remaining Capacity showing NAN after boot
  • Resolved slow update issues for critical battery metrics

📋 Breaking Changes

None - fully backward compatible

🔄 Migration Notes

Simply replace your old YAML file with the new version. All sensor IDs and names remain unchanged.


Tested on: LILYGO T-CAN485 with Marstek Venus E Battery
ESPHome Version: 2025.12.2