- Extra classes to use for styling with card-mod:
.position-value
,.arrow-value
,.icon
,.position-icon
and.arrow-icon
. Example in Readme file.
- Documentation improvement. As mentioned in #60.
- Prevent impact for HA breaking change about getting LitElement from hui-view. Better solution for issue #61 than in version 0.1.3.
- Documentation improvements
- Rewrite of the icons paragraph in the documentation.
- Added a paragraph for 'view toggling' in the documentation.
- Updated HACS installation instruction. Simplified some documentation.
- Battery feature documentation restructured.
- Updated installation instructions and HACS info file.
- Rewrite of the documentation for requirements and configuration.
- Prevent impact for HA breaking change about getting LitElement from hui-view. Possible solution for issue #61.
- Allowing to hide the title. Default value for
title
is empty now. If you want the previous behavior you could addtitle: 'Power wheel'
to your config. Issue #51. - ** BETA.** You can switch the polarity of
battery_power_entity
with the new card parametercharging_is_positive
. No need to make an extra template sensor for this anymore. Issue #46.
- Removed deprecated input parameter
energy_price
. This parameter was deprecated since version 0.1.0.
- After a startup of HA sensor validation errors stayed visible since the new startup order of HA 0.111.0. Sensor validation is disabled temporarily.
- Custom color for active arrows. New card parameter
active_arrow_color
. - Invert grid icon coloring for consuming/producing. New card parameter
invert_grid_colors
. Defaultfalse
.
- Provisional fix for icon sizes (as of HA 0.110.0). Issue #48.
- BETA. Basic support for a battery in the power view.
- New card parameter
battery_power_entity
. Charging should have positive values. - New card parameter
battery_soc_entity
to display the state of charge. - New card parameter
battery_icon
to override the default icon.
- New card parameter
- Total rebuild of the core functions.
- Moved from web-components-tester to Karma.
- DEPRECATED. Visual warning if still using card parameter
energy_price
which is deprecated since version 0.0.13. Please replaceenergy_price
byenergy_consumption_rate
in your setup. - Log version to console also when not in debug mode.
- Number of decimals can be set to zero in energy view and money view. Issue #39.
- Prepare for future card config changes.
- Removal of support for Customer Updater.
- Preparations to support HACS. Repo file tree restructuring and repo name change from
custom-cards-lovelace
topower-wheel-card
.
- Update for HA Cast. LitElement is taken from
hui-view
.
- Fixed a link in readme.
- Split energy rates for consuming from the grid and producing to the grid.
- Use new card parameters
energy_consumption_rate
and optionalenergy_production_rate
. - DEPRECATED. Current card parameter
energy_price
is deprecated and its value will be used as value forenergy_consumption_rate
for a while. Please replaceenergy_price
byenergy_consumption_rate
in your setup.
- Use new card parameters
- Hide values near arrows in more cases.
- Code improvements.
- Replaced ES6 rest destructuring language constructs to support iOS10.3 on iPad4.
- Added version number to the debug warning in the card, because not all browsers have a dev console.
- Added
home_energy_entity
to the registered sensors in debug info.
- Support for one (nett) grid power sensor.
Some setups don't have separate sensors for grid power consumption (from the grid) and grid power production (to the grid).
Previously you had to make an extra template sensor for this.
- Use current card parameter
grid_power_entity
to supply your input for the card. Default the polarity of this parameter has to be positive for producing (to the grid) and negative for consuming (from the grid).
- Use current card parameter
- Support for one (nett) grid energy sensor.
Some setups don't have separate sensors for grid energy consumption (from the grid) and grid energy production (to the grid).
Previously you were not able to use the energy view.
- Use current card parameter
grid_energy_entity
to supply your input for the card. - Use current card parameter
home_energy_entity
to supply your input for the card. This extra parameter is needed because the consumed energy of your home can't be calculated if you only have one grid energy sensor. - Default the polarity of these parameters has to be positive for producing (to the grid) and negative for consuming (from the grid).
- Nb. There still won't be active arrows in the energy view nor values near the arrows. This is because you supply too less information to calculate these values. Power-wheel-card can't do magic.
- Use current card parameter
- Support for switching the polarity of
grid_power_entity
,grid_energy_entity
andhome_energy_entity
. Default the polarity of these parameters has to be positive for producing (to the grid) and negative for consuming (from the grid).- You can switch the polarity of all these 3 entities with the new card parameter
production_is_positive
. - Nb. The parameter is switching the polarity of exactly only the 3 mentioned input parameters. All other input parameters are not affected.
- Nb. The parameter is switching the polarity of input values to be able to use them in calculations. Negative output values (i.e. displayed values) always represent consuming (from the grid).
- You can switch the polarity of all these 3 entities with the new card parameter
- Arrows will reverse when their value becomes negative. (E.g. solar panel inverters start consuming when there is no sun and some users have a sensor that detects this.) The values next to arrows always are positive now.
- About coloring the solar, grid and home icons, polarity of their values ('+' when producing, '-' when consuming) and sign of their values ('+' or '-'):
- When
color_icons
is set totrue
the Solar, Grid and Home values always are displayed as positive values, because the color of the icon represents the plus or minus sign already. - The polarity of the values for Grid and Home is switched for better consistency throughout the card.
The polarity of the colors stayed the same.
The changed polarity is visible only when
color_icons
is set tofalse
, because negative values are displayed then only. - Card parameter
color_icons
is now defaulttrue
. If you don't want colored icons and see negative values, you have to set the parameter tofalse
explicitly.
- When
- Added user agent to the debug output.
- Automated testing before each commit.
- Added tests to get a good functional and code coverage. There are 627 tests now.
- New
debug
parameter for logging debug information in the console of the browser. Useful when you want to investigate or register an issue. - Errors and warnings are displayed in the card if they occur after the config step of HA Lovelace.
- Setup for automated testing of the card. 142 tests to start with.
- Replaced default grid icon
mdi:flash-circle
withmdi:transmission-tower
which is available since HA 0.87.0. - Render styles according to version 2.0.0-rc.5 of lit-element in HA 0.87.0.
- Validation on HA sensors in the config. Display an error when a sensor couldn't be found. E.g. when a user makes a typo in the config.
- Improved error display on validation of units of sensors.
- Performance improvement on unit definition. Define once instead of on each render.
- Code improvements. Small performance improvements.
- Fix for disappearing
hui-error-entity-row
in HA 0.88.0 which would break the card.
- Set a different title per view by using optional card parameters
title_power
,title_energy
and/ortitle_money
. All three card parameters default to the value of card parametertitle
. - Auto-toggle between views. Click the recycle icon to turn on and off the auto-toggle.
The initial auto-toggle state can be set by optional card parameter
initial_auto_toggle_view
. The period between views can be set by optional card parameterauto_toggle_view_period
(in seconds).
- Performance. Update only on specific changes of the
hass
object. - Don't suppress zero values on solar, home and grid icon; only on arrows.
- More explanation in the readme about which sensor to use for what card parameter.
- All zero values are suppressed. And values on the arrows are visible only when relevant. E.g. on a sunny day when part of your produced solar panel energy was returned to the grid and the other part was consumed by your home.
- More-info dialogues for arrows that are related to a sensor.
- Immediate response when you click on the unit to toggle between views.
- Using the local version of lit-element.
- Code improvements.
- More-info dialogues only for icons that are related to a sensor.
- Reduced clickable area for toggling the view.
- Upgrade to lit-element 0.6.5.
- Switch back from unpkg-gcp.firebaseapp.com to unpkg.com again because of CORS error.
- Unit is displayed in the center of the wheel.
- BREAKING. To switch views click the unit. The button has been removed.
- Arrow coloring now also in energy view. *)
- Power, energy and money values displayed next to all arrows. *)
- A third view: money view for displaying energy costs and savings. *)
When you supply card parameter
energy_price
(in addition to the parameters needed for the energy view) the money view becomes available.
*) To make this feature possible the breaking changes as described below were needed.
- Rewrite: separating calculating values in the code.
- Value for home will be calculated always and not taken from evt. home sensors anymore.
- BREAKING. Card parameter
grid_power_entity
has been split intogrid_power_consumption_entity
andgrid_power_production_entity
. Both card parameters are required and should have positive values. The combined parametergrid_power_entity
can still be used to supply the grid icon in the power view, but the power value isn't used anymore. - BREAKING. Card parameter
grid_energy_entity
has been split intogrid_energy_consumption_entity
andgrid_energy_production_entity
. Both card parameters are required if you want to use the energy view and should have positive values. The combined parametergrid_energy_entity
can still be used to supply the grid icon in the energy view, but the energy value isn't used anymore.
- Switch from unpkg.com to unpkg-gcp.firebaseapp.com for broken lit-html dependency.
- New optional card parameters
solor_energy_entity
,grid_energy_entity
andhome_energy_entity
to feed the new energy view of the wheel. If you want to use the energy view the first two are required. The third one for home energy will be calculated if omitted. - A button to toggle between power view and the new energy view. The button is visible only when the energy view is available.
- A card parameter
initial_view
to set the initial view to power view or energy view. Valid values are"power"
(default) and"energy"
. - A card parameter
energy_decimals
to set the number of decimals used in the energy view.
- Rewrite of the code.
- Preparations in the code for showing values near arrows in a future release.
- A slightly better positioning of the icons.
- BREAKING. Renamed card parameter
decimals
topower_decimals
. - BREAKING. Renamed card parameter
solar_power_icon
tosolar_icon
. - BREAKING. Renamed card parameter
grid_power_icon
togrid_icon
. - BREAKING. Renamed card parameter
home_power_icon
tohome_icon
. - BREAKING. Renamed card parameter
color_power_icons
tocolor_icons
.
- Added
color_power_icons
as optional boolean card parameter to color the power icons or not (=default). Yellow for consuming, green for producing. With the new optional card parametersconsuming_color
andproducing_color
you can choose your own colors. - Click on the power icons to open the more-info modals of your sensors.
- Support for custom_updater custom component.
- Performance. Moved some code to run it only after config changes.
- Better syntax for 'Example requirements configuration' in readme.
- Icon for home power can also be set via
customize:
sensor settings now.
- Added
solar_power_icon
andgrid_power_icon
as optional card parameters. - Added
decimals
as optional card parameter to display the power values in this number of decimals. - Added
home_power_entity
as optional card parameter in case you already have a sensor for it and want to use it, instead of letting the card calculate the value of it.
- Calculates the current power that your home is consuming: home power. Input for the calculation is the (produced) solar power and the (consumed or produced) grid power.
- Displays the three power values (solar, grid and home) in 'a wheel'.
- Displays the transition between these powers as arrows. E.g. if your solar power panels produce power, the arrow from solar to home turns active. And if your solar power panels produce enough power to deliver some back to the grid, the arrow from solar to grid turns active.
- Works for default theme and custom themes that use standard CSS vars.