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
163 stars 22 forks source link

The arrow is always "on" even though I don't buy electricity #75

Open kamcioo opened 3 years ago

kamcioo commented 3 years ago

Which version of HA do you use? 2021.3.1

Which version of the card do you use? 0.1.5

Describe the bug Even though I'm producing enough electricity, the card show me, that I buy extra electricity (see attachment)

Configuration of the card Copy the complete configuration of the card, even if you think it isn't relevant.

type: 'custom:power-wheel-card'
title: Photovoltaik
solar_power_entity: sensor.solarlog_power_ac
grid_power_consumption_entity: sensor.solarlog_consumption_ac
grid_power_production_entity: sensor.solarlog_power_ac

IMG_5253

gurbyz commented 3 years ago

When you use the same sensor sensor.solarlog_power_ac twice you'll end up with strange results. Please find out if you have a sensor that gives you values for consuming from and producing to the grid. It could be the same sensor when it gives e.g. positive values for producing/exporting to the grid and negative values for consuming/importing from the grid. If you found such a sensor, please use it for grid_power_entity.

(If the polarity is the other way around, so positive values for consuming, then set also production_is_positive: false.)

Hope this helps you.

kamcioo commented 3 years ago

Thank You Gurbyz for the reply. Unfortunately I didn't found anything else what would work Only in this constellation (without arrow) are the results correct.