gurbyz / power-wheel-card

An intuitive way to represent the power and energy that your home is consuming or producing. (A custom card for the Lovelace UI of Home Assistant.)
Apache License 2.0
165 stars 22 forks source link

Battery Icon display is duplicated. #81

Open mstoffel-sag opened 3 years ago

mstoffel-sag commented 3 years ago

Which version of HA do you use? core-2021.6.2 Which version of the card do you use? power-wheel-cardVersion: 0.1.5L

Describe the bug Somtimes the Battery Icon is duplicated. But it vanishes also on reatltime.

Configuration of the card type: custom:power-wheel-card title: Power wheel solar_power_entity: sensor.power_photovoltaics_fronius_power_flow_4_http_10_13_24_193 grid_power_entity: sensor.power_grid_fronius_power_flow_4_http_10_13_24_193 battery_power_entity: sensor.power_battery_fronius_power_flow_4_http_10_13_24_193 battery_soc_entity: sensor.state_of_charge_fronius_power_flow_4_http_10_13_24_193 home_energy_entity: sensor.power_load_fronius_power_flow_4_http_10_13_24_193 charging_is_positive: false

Dev console debug output power-wheel-cardVersion: 0.1.5Lovelace resource: power-wheel-card.jsHA version: 2021.6.2Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36Report issues here: https://github.com/gurbyz/power-wheel-card/issuesProcessed config: { "type": "custom:power-wheel-card", "title": "Power wheel", "solar_power_entity": "sensor.power_photovoltaics_fronius_power_flow_4_http_10_13_24_193", "grid_power_entity": "sensor.power_grid_fronius_power_flow_4_http_10_13_24_193", "battery_power_entity": "sensor.power_battery_fronius_power_flow_4_http_10_13_24_193", "battery_soc_entity": "sensor.state_of_charge_fronius_power_flow_4_http_10_13_24_193", "home_energy_entity": "sensor.power_load_fronius_power_flow_4_http_10_13_24_193", "debug": true, "charging_is_positive": 1, "production_is_positive": 1, "title_power": "Power wheel", "title_energy": "Power wheel", "title_money": "Power wheel", "power_decimals": 0, "energy_decimals": 3, "money_decimals": 2, "money_unit": "€", "color_icons": true, "consuming_color": "var(--label-badge-yellow, #f4b400)", "producing_color": "var(--label-badge-green, #0da035)", "invert_grid_colors": false, "active_arrow_color": "var(--paper-item-icon-active-color, #fdd835)", "initial_view": "power", "initial_auto_toggle_view": false, "auto_toggle_view_period": 10}Registered sensors: [ "sensor.power_photovoltaics_fronius_power_flow_4_http_10_13_24_193", "sensor.power_grid_fronius_power_flow_4_http_10_13_24_193", "sensor.power_battery_fronius_power_flow_4_http_10_13_24_193", "sensor.power_load_fronius_power_flow_4_http_10_13_24_193", "sensor.state_of_charge_fronius_power_flow_4_http_10_13_24_193"]Views object: { "power": { "title": "Power wheel", "oneGridSensor": true, "twoGridSensors": false, "batteryCapable": true, "capable": true, "unit": "W" }, "energy": { "title": "Power wheel", "oneGridSensor": false, "twoGridSensors": false, "capable": false }, "money": { "title": "Power wheel", "oneGridSensor": false, "twoGridSensors": false, "capable": false, "unit": "€" }}

image

flixlix commented 2 years ago

This is expected.

For now battery support is implemented in the current layout grid. This is why the battery shows up in two different places and is visible only when in use. This however should be temporary. First priority is to get all the values and arrows right and improve later. If it functionally works with a battery completely, then it's time to change the layout into a better interface. Many suggestions for the final UI have been given.

BettySwallocks commented 2 years ago

I'm just starting to try and use this power wheel card on a new solar/battery integration into HA 2022.8 latest. Has there been any development on the card to improve battery visuals or is the development stalled?