Skip to content

v1.2.0 major release

Compare
Choose a tag to compare
@bjoerrrn bjoerrrn released this 19 Feb 17:14
· 2 commits to main since this release
5cc3f0a

🔧 Major Changes & Enhancements

  1. Added Support for Multiple Notification Services

    • Introduced Pushover and Ntfy notifications alongside Discord.
    • Configurable via wallbox_monitor.credo.
  2. Improved State Management (state file Enhancements)

    • Introduced a repeat check mechanism (repeat_check flag) to prevent false positives on cable disconnections.
    • Start time preservation now ensures accurate tracking of charging sessions.
  3. Refined Charging Detection & Handling

    • Charging state transition is now more robust.
    • Fixed edge cases where charging stopped was reported incorrectly.
  4. Better Error Handling & Debugging

    • Added DEBUG mode (DEBUG_MODE=true via environment variable) for additional logs.
    • Improved exception handling when fetching charging status.

🚀 New Features

Cable Disconnect Verification

  • On first detection, the script waits for the next execution before confirming the disconnection.
  • Prevents unnecessary alerts from temporary connection losses.

Session Energy Tracking

  • Now tracks the exact session energy consumption and sends a summary.
  • Includes format_duration() for precise reporting of charging time.

Enhanced Logging

  • Logs before & after state changes for debugging.
  • Added state file content logging when corruption is detected.

🐛 Fixes & Optimizations

🔹 Fixed start_time loss issue

  • Previously, start_time was reset after charge rate notifications, causing incorrect session tracking.
  • Now preserved correctly throughout execution.

🔹 Fixed incorrect total_energy_wh handling

  • Previously, total_energy_wh could reset or mismatch during transitions.
  • Now stored and retrieved properly across state changes.

🔹 Optimized Selenium Retries

  • Reduced excessive retries (30 → 10) for faster script execution.
  • Improved error resilience in fetching charging rate & energy.

📌 Summary

🔹 More reliable charge state detection
🔹 More detailed session energy reporting
🔹 More notification options (Pushover, Ntfy)
🔹 Less false positives on cable disconnections
🔹 Better debug logging for troubleshooting

✅ Upgrade recommended for more accurate tracking and fewer false alerts! 🚀

Full Changelog: v1.1.0...v1.2.0