flixlix / power-flow-card-plus

A power distribution card inspired by the official Energy Distribution card for Home Assistant
577 stars 72 forks source link

[BUG] fossil_fuel_percentage entity value is swapped (or documentation is wrong) #650

Open BoGnY opened 3 months ago

BoGnY commented 3 months ago

Describe the bug This is the documentation:

Entity ID providing a state with the value of the percentage of fossil fuel consumption. The state should be 100 when all the energy from the grid comes from high emission sources and 0 when all the energy from the grid comes from low emission sources.

So, states with 0 means 100% green energy..

But sensor with 0 currently mark all as fossil/high emission...

To Reproduce Steps to reproduce the behavior:

  1. Create percent sensor with states 0
  2. Use it as fossil_fuel_percentage entity
  3. As shown in screenshot, all imported energy is reported as fossil

Expected behavior Shows correct percentage.

Screenshots Sensor template: image

Power flow config: image

Card: image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Please make sure all of this applies and check the checkboxes, by writing "X" inside of them.