MindFreeze / ha-sankey-chart

A Home Assistant lovelace card to display a sankey chart. For example for power consumption
MIT License
348 stars 15 forks source link

Invalid entity config on autoconfig #163

Closed kernel610 closed 5 months ago

kernel610 commented 5 months ago

Checklist:

Release with the issue: Home Assistant Core: 2024.2.2 ha-sankey-chart: v1.20.0

Last working release (if known): I don't know exact version but it was working a few weeks ago.

Browser and Operating System: Chrome MacOS Sonoma 14.3

Description of problem: The card renders as an error when using autoconfig. I've tried removing all entities from the Energy Dashboard one-by-one and still receive the error after refreshing the card.

image

If I set energy_date_selection: false, the dashboard renders blank despite entities with values still configured.

image

I can get it to render with just one section and a few entities but that doesn't make sense for the purpose of the sankey chart.

I'm guessing the error is in the starting section but can't seem to get anything to work.

MindFreeze commented 5 months ago

It looks like you don't have any energy sources configured, like grid, solar. This case isn't covered. If you don't have a real sensor for that, you can create a sum helper sensor from your consumer devices and use that for now.

MindFreeze commented 5 months ago

@kernel610 Please try v1.20.1 . It should work even without energy sources

kernel610 commented 5 months ago

Confirmed this is fixed in v1.20.1. Thanks for the quick fix!