flixlix / power-flow-card-plus

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

[OTHER] How will be the "CO2 Signal" Sensor be calculated (percentage) ? #114

Closed ChristophCaina closed 1 year ago

ChristophCaina commented 1 year ago

Hi, I am currently playing arround with some of the options of the power-flow-card plus... and testing the CO2 signal information...

  fossil_fuel_percentage:
    entity: sensor.co2_signal_grid_fossil_fuel_percentage
    icon: mdi:leaf
    color_icon: true
    display_zero: true
    name: Non Fossil
    state_type: percentage

In this case, I've set the state_type to percentage... which gives me a value of 62% image

How does the calculation work? CO2 signal provides 38% "total" ... and if I switch to state_type: power, the card is showing 0W - since I do have solar export...

image

ChristophCaina commented 1 year ago

update: it seems, that the percentages somehow meets the information shown in the Energy Dashboard (based on total kWh) -but it's still not equal ... image

flixlix commented 1 year ago

Comparing Energy and Power is like comparing Distance and Speed.

You can't use them interchangeably.

When you have state_type set to percentage, the following happens:

And here it makes sense, since the card is showing 62% and the sensor is a 38%. 62% + 38% = 100%

When you have state_type set to power, the following happens:

Meaning, if the fossil fuel percentage sensor is at 25% And your are importing 1000W from the grid The non-fossil circle will display: 0.25 * 1000W = 250W This is how much power coming from the grid right now is renewable.

Does this solve your issue?

ChristophCaina commented 1 year ago

lol.Right thanks - that explained everything.It was probably too early for me too See - and understand that 😅Gesendet von Outlook für Android