JonahKr / power-distribution-card

A Lovelace Card for visualizing power distributions.
MIT License
219 stars 13 forks source link

Problem ratio 100% #157

Closed schumissimo63 closed 11 months ago

schumissimo63 commented 11 months ago

Hello I use your plugin which is really very good, thank you for your work!!! I encounter a problem, whatever I do my ration remains at 100%, where is my error, after multiple tests and research I have not found it.

Thanking you in advance for your help.

`type: custom:power-distribution-card title: Title entities:

schumissimo63 commented 11 months ago

Hello I use your plugin which is really very good, thank you for your work!!! I encounter a problem, whatever I do my ration remains at 100%, where is my error, after multiple tests and research I have not found it.

Thanking you in advance for your help.

`type: custom:power-distribution-card title: Title entities:

  • decimals: 2 display_abs: true name: Maison unit_of_display: kWh consumer: true icon: mdi:home entity: sensor.conso_energie_jour preset: consumer invert_value: true
  • decimals: 2 display_abs: true name: Import unit_of_display: kWh icon: mdi:transmission-tower entity: sensor.energie_importee_jour preset: grid invert_value: false calc_excluded: false
  • decimals: 2 display_abs: true name: Solaire unit_of_display: kWh icon: mdi:solar-power producer: true entity: sensor.prod_solaire_jour preset: solar calc_excluded: false
  • decimals: 2 display_abs: true name: Export unit_of_display: kWh icon: mdi:lightning-bolt-outline producer: true entity: sensor.energie_exportee_jour preset: producer invert_value: true calc_excluded: false center: type: bars content:

    • preset: autarky name: AS bar_color: red
    • preset: ratio name: Ratio bar_color: green animation: flash 2023-12-21_122431 `
schumissimo63 commented 11 months ago

Everything works very well, I misinterpret the ratio in the card. Thank you again for your wonderful work.

JonahKr commented 11 months ago

Glad you're enjoying it! Just to write it down in case someone stumbles over this in the future: The Ratio measures the proportion of self produced Energy used at home. Since in this case 2,8 < 11,4 the ratio is 100%, since all of the produced power would be consumed by the home.

Take care and stay safe!