Releases: pacemaker82/Compact-Power-Card
1.3.3.1
Fixed
- Power flow lines now recalculate flow speed at the end of the animation run. This should remove any more dot "juddering" when entity values change.
--
If you enjoy this card, please give it a star on the github repository. Thank you!
1.3.3
Added
Devices and labels are now unlimited!
Important: you must increase the size of the card to see more labels/devices. Just adding them to the card configuration / YAML is not enough, the card hides them if rows/column minimums aren't met.
Cap limits are in place for the default size of the card (12 columns, 3 rows): 2 Grid, 2 Battery, 4 PV labels, 8 Devices.
Note: There are of course theoretical limits due to the size of the cards which I cannot really avoid without making the UI tiny. In testing I am seeing 8 devices and PV labels for every 12 columns used, in theory grid and battery labels should be unlimited if you keep growing the card height.
Another Note: On small screens (phones), the width of wide cards is squeezed small - in this case a max of 8 PV labels or devices will be shown in the UI.
Reminder: Card resizing is managed using sections.
Your mileage may vary with this change. It can lead to overlapping labels and other undesirable effects as there are so many possible scenarios that I can't really control.
Other Changes
curve_factorupdated to support 0-5 range.curved_linesis now deprecated. Usecurve_factor: 0for same effect.- Refactored all geometry across render and update to remove duplication.
1.3.2.8
Added
import_entityandexport_entityongridcan be set instead of single grid power entity. (YAML only)charge_entityanddischarge_entityonbatterycan be set instead of a single battery power entity (YAML only)
Changed
- Added a time-based smoothing to the flow animations to try and resolve glitches from fast updating power entities.
1.3.2.7
Changed
- Flow line animation durations only change when there is a >15% change in power.
- Reduced card height when No PV or No Battery situation occurs, adding labels increases card height again.
Fixed
- Issue where a non-numeric label state wasn't appearing with bold text.
- PV labels show in the correct position when there is no battery. (2 only)
1.3.2.6
Added
- Card-level
remove_glow_effectsoption to disable glow/drop-shadow effects in dark mode.
Fixed
- Issue where some labels in numerical formats like "23:00:00" were being rendered as decimals.
1.3.2.5
Added
- Card-level
remove_glow_effectsoption to disable glow/drop-shadow effects in dark mode.
Fixed
- Issue where some labels in numerical formats like "23:00:00" were being rendered as decimals.
1.3.2.4
Added
- Tap actions for
more-infoandnavigate, the latter needing anavigation_pathto navigate to. Works on Home, PV, Grid and Battery as an override for the defaultmore-info. - Glow to the home icon in dark mode.
Changed
- Providing a home entity no longer includes it as part of the icon gradient calculation. Gradients and power flows are inferred from PV/battery/grid only. You can subtract devices from the home entity value using
subtract_devices_from_home: true(unchanged from before) - Improved gradient transitions on home icon
Fixed
- Issue where power flow dots weren't reaching their destination.
1.3.2.3
Added
New label fields below. To use these, the card must be used within sections UI, and card must be set to 4 or more rows in height. See readme for more on how to set that.
namefield ondevicesso you can show a label on each device.namefield onPVlabelsto show optional name label.
Changed
- Improved the layout for no-pv and no-battery situations
- Adjusted the blend width on the home icon gradient to smoothen it out a little more.
Fixed
force_hide_under_thresholdnow hides devices at 0W even without a threshold.- Issue where having more than 8 devices in YAML and using
force_hide_under_thresholdwasn't working as expected.
1.3.2.2
Added
- Home icon (by default) is now coloured with a gradient based on the amount of grid, battery, pv powering the home. The angle of the gradient will prefer where the most power is coming from. To disable it, use
disable_home_gradient: truein the card options. Thanks to @whyisthisbroken for the suggestion!
Changed
- When attaching a switch entity to a device, the icon now shows a line indicator to show it is a switch.
- When using PV, Grid and Home only, PV shows up where battery normally would. PV labels stay as is, as 4 are supported. @warbringer
- Allow
input_booleanentities in device switch compatibility for @llhotka
Fixed
- Issue where card was not loading on refresh for a while due to state change logic.