Skip to content

0.1.10

Choose a tag to compare

@ant0nkr ant0nkr released this 26 Sep 09:51

🔧 v0.1.10 - Critical Hotfix Release

🚨 Critical Fixes

Fixed Critical Switch Registration Error

  • 🐛 Fixed H_GRID_PEAK_SHAVING_POWER_1_AND_FUNC_EN undefined register error that was causing integration startup failures
  • ✅ Corrected switch register mappings for battery management functions:
    • Quick Charge Start now correctly uses H_FUNCTION_ENABLE_5 (register 233) bit 0
    • Battery Backup now correctly uses H_FUNCTION_ENABLE_5 (register 233) bit 1
    • Battery Maintenance now correctly uses H_FUNCTION_ENABLE_5 (register 233) bit 2
  • 🔧 Resolution: Replaced non-existent H_GRID_PEAK_SHAVING_POWER_1_AND_FUNC_EN with the correct H_FUNCTION_ENABLE_5 register reference

🧪 Enhanced Testing & Development

  • 📋 Added comprehensive Modbus communication test script (test_modbus_communication.py)
    • Real-device testing capabilities for different block sizes
    • Value search functionality for register debugging
    • Automated recommendation system for optimal communication parameters
  • 🔬 Updated unit test coverage with parameterized testing for both INPUT and HOLD register responses
  • 🐞 Improved debugging capabilities for Modbus protocol analysis

🔍 What This Fixes

Users experiencing the following issues should update immediately:

  • ❌ Integration failing to start with "undefined register" errors
  • ❌ Battery management switches (Quick Charge, Battery Backup, Maintenance) not appearing or functioning
  • AttributeError or ImportError related to H_GRID_PEAK_SHAVING_POWER_1_AND_FUNC_EN

📋 Technical Details

  • 🎯 Root Cause: The switch definitions were referencing a non-existent register constant that was never defined in the hold registers file
  • 💥 Impact: Integration would fail to initialize, preventing all functionality
  • 🛠️ Solution: Mapped the switches to the correct register (H_FUNCTION_ENABLE_5 at address 233) according to the Modbus protocol documentation

Immediate Action Required

Important

This is a critical hotfix - update immediately if you're experiencing integration startup issues.


Full Changelog: v0.1.9...v0.1.10