Skip to content

Releases: gurbyz/power-wheel-card

Release 0.0.12

13 Mar 18:45
e794655
Compare
Choose a tag to compare

0.0.12

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.

Fixes

  • Added home_energy_entity to the registered sensors in debug info.

Release 0.0.11

03 Mar 16:38
d0d7103
Compare
Choose a tag to compare

0.0.11

New features

  • 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).
  • 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.
  • Support for switching the polarity of grid_power_entity, grid_energy_entity and home_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).

Improvements

  • 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 to true 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 to false, because negative values are displayed then only.
    • Card parameter color_icons is now default true.
      If you don't want colored icons and see negative values, you have to set the parameter to false explicitly.
  • 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.

Release 0.0.10

19 Feb 21:41
2c6b8dc
Compare
Choose a tag to compare

0.0.10

New features

  • 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.

Improvements

  • Setup for automated testing of the card. 142 tests to start with.
  • Replaced default grid icon mdi:flash-circle with mdi: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.

Fixes

  • Fix for disappearing hui-error-entity-row in HA 0.88.0 which would break the card.

Release 0.0.9

06 Feb 11:18
9470560
Compare
Choose a tag to compare

0.0.9

Features

  • Set a different title per view by using optional card parameters title_power, title_energy and/or title_money.
    All three card parameters default to the value of card parameter title.
  • 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 parameter auto_toggle_view_period (in seconds).

Improvements

  • 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.

Release 0.0.8

02 Feb 08:28
ec48a68
Compare
Choose a tag to compare

0.0.8

New features

  • 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.

Improvements

  • Immediate response when you click on the unit to toggle between views.
  • Using the local version of lit-element.
  • Code improvements.

Fixes

  • More-info dialogues only for icons that are related to a sensor.
  • Reduced clickable area for toggling the view.

Release 0.0.7

27 Jan 15:18
0901811
Compare
Choose a tag to compare

0.0.7

Improvements

  • Upgrade to lit-element 0.6.5.

Fixes

  • Switch back from unpkg-gcp.firebaseapp.com to unpkg.com again because of CORS error.

Release 0.0.6

18 Jan 19:43
26d2963
Compare
Choose a tag to compare

0.0.6

New features

  • 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.

Improvements

  • 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 into grid_power_consumption_entity and grid_power_production_entity.
    Both card parameters are required and should have positive values.
    The combined parameter grid_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 into grid_energy_consumption_entity and grid_energy_production_entity.
    Both card parameters are required if you want to use the energy view and should have positive values.
    The combined parameter grid_energy_entity can still be used to supply the grid icon in the energy view, but the energy value isn't used anymore.

Release 0.0.5

15 Jan 19:59
e24590a
Compare
Choose a tag to compare

0.0.5

Fixes

  • Switch from unpkg.com to unpkg-gcp.firebaseapp.com for broken lit-html dependency.

Release 0.0.4

22 Dec 12:42
51e5d38
Compare
Choose a tag to compare

0.0.4

New features

  • New optional card parameters solor_energy_entity, grid_energy_entity and home_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.

Improvements

  • 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 to power_decimals.
  • BREAKING. Renamed card parameter solar_power_icon to solar_icon.
  • BREAKING. Renamed card parameter grid_power_icon to grid_icon.
  • BREAKING. Renamed card parameter home_power_icon to home_icon.
  • BREAKING. Renamed card parameter color_power_icons to color_icons.

Release 0.0.3

13 Dec 15:15
7c306b0
Compare
Choose a tag to compare

0.0.3

New features

  • 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 parameters consuming_color and producing_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.

Improvements

  • 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.