cheelio / power-usage-card

Lovelace pie chart card that displays current energy usage
8 stars 19 forks source link

Negative unknown breaks chart #3

Open hstern opened 3 years ago

hstern commented 3 years ago

The chart draws incorrectly if you end up with a negative value for unknown. This can happen if your power meter reads incorrectly, such as when you use a single sensor for a two-wire circuit with a multiplier, or if the various sensors are on different devices and are merely out of sync.

In the screenshot below the bulk should be blue (heat pump), not orange (unknown).

image

hstern commented 3 years ago

If you do some creative mousing over this happens:

image