github Tomer27cz/energy-line-gauge v2.3.0
Release v2.3.0

latest release: v2.3.1
5 months ago

⚡ UI & Internal Updates

  • Component Migration: Replaced the deprecated ha-menu and mwc-icon-button components with the newer ha-dropdown and ha-icon-button components in the editor UI.
  • Theme Compatibility: Updated legacy Material Design CSS variables (e.g., --mdc-text-field-fill-color, --mdc-shape-small) to standard Home Assistant variables (e.g., --ha-color-form-background, --ha-border-radius-sm).
  • Documentation: Updated the linear-gradient configuration example in the README to demonstrate to left directions and rem based color stops.

🐛 Bug Fixes

  • Visual Overflow Prevention: Implemented a true state sum calculation and an effective ceiling scale to prevent the gauge from visually overflowing when the combined device states exceed the main state. Sub-device widths are now proportionally scaled to fit strictly inside the rendered main container.
  • Division by Zero Hazards: Added safety checks to prevent division by zero errors when the main state or maximum value evaluates to zero.
  • Untracked Proportions: Updated the calculation for untracked energy to scale proportionally alongside the new visual overflow logic, ensuring it never drops below zero.
  • Severity Editor Input: Fixed an issue in the severity editor by explicitly marking the from value in the number selector as not required.

🤝 Contributing

Thanks to everyone for your feedback. All contributions are welcome!

🍻 Support the Project

Thank you for all your support and for using the Energy Line Gauge card!

If you enjoy using this card and want to support its development, consider buying me a beer!
Your support helps keep the project alive and well-maintained. Cheers!


🔗 Full Changelog: v2.2.9...v2.3.0

Don't miss a new energy-line-gauge release

NewReleases is sending notifications on new releases.