Skip to content

v1.1.0 major release

Latest
Compare
Choose a tag to compare
@bjoerrrn bjoerrrn released this 07 Feb 14:36
· 27 commits to main since this release
4d14f0a

πŸ›  Energy Consumption & Charging State Fixes
βœ… Fixed negative energy values when the charger resets (stored_power > total_energy_wh).
βœ… Corrected session energy display to prevent redundant values (X kWh of X kWh).
βœ… Added charger reset detection with logs when stored_power > total_energy_wh.

πŸ”„ Improved Charging State Handling
βœ… Modified "charging stopped" notification (only when charging ends, not on cable unplugging).
βœ… Prevented "charging stopped" from triggering on cable disconnection.
βœ… Introduced cable connection & disconnection detection:
β€’ "πŸ”Œ Cable disconnected" is only sent once, when unplugging.
β€’ "πŸ”Œ Cable connected" is only sent once, when replugging.
βœ… Ensured state is saved correctly in STATE_FILE:
β€’ "disconnected" is now properly recorded instead of defaulting to "idle".
β€’ When the cable is reconnected, it transitions back to "idle" or "charging" correctly.

πŸ” Fetching & Error Handling Improvements
βœ… Ensured 30-second retry loop in fetch_charging_status() and logged each attempt for debugging.
βœ… Improved exception handling in fetch_charging_status() (catches NoSuchElementException, TimeoutException).
βœ… Fixed missing exception handling in main():
β€’ Catches all errors and logs them as CRITICAL.
β€’ Sends a Discord alert when an unexpected error occurs.
β€’ Ensures driver.quit() always runs, even if an exception happens.

πŸ”” Improved Discord Notifications
βœ… Added Discord alerts when:
β€’ Fetching fails after 30 retries.
β€’ A fatal error occurs in fetch_charging_status().
β€’ Cable is unplugged (πŸ”Œ Cable disconnected).
β€’ Cable is reconnected (πŸ”Œ Cable connected).

πŸ›  Prevented Notification Spam
βœ… Tracked in STATE_FILE so alerts are sent only when the state changes.

Full Changelog: v1.0.6...v1.1.0