You need an entity for Sankey that reports the total. But since I am not measuring it with a real sensor, I would like to use the total “grid” value that HA energy integration is calculating. But I have not found the sensor/entity name yet. Only the card information for the different energy cards that automatically use it.
But since the HA Energy integration needs manual updating whenever a new consumption measurement is added, I will probably just use auto-entities twice. One to collect all consumption and then one to show their relative consumption (e.g. by area).
But I need to get auto-entities working with Sankey first. Not quite sure if it is supported or not. My first try yesterday failed.
?
But where is the “911W grid power consumption” coming from? It does not just “have” this value. You need to define it via entities, do you not? At least that is what I take from the instructions.
You have to define the first (parent) and the subsequent value sources.
So I need to tell the card what the total is before it can then split it into the shares of the consumers (which I also need to define).
It’s very neat, using it too for a few days already.
It supports either power (instant) or energy, so you could have a chart for the power being used at the moment, and one for the accumulated energy used during the day.
You need to define the entities, they will not get auto-calculated. However, that’s fairly simple to with template sensors.
If you have a grid entity, and individual measured loads, you can create a template sensor for the sum of all your individual measured loads, and another to show the ‘rest’ by subtracting the measured loads from the grid.
Yes, I am not a big fan of creating template sensors. They need maintenance.
I prefer using wildcards and filters to have them created by the cards on the fly. Why create sensors when tools like auto-entities or the integration if those features into the cards could do it on-the-fly.
Plus, updates can brake manually created sensors.
Looks like auto-entities does not work with this card or I cannot figure out how to do it (sense you need multiple filters for the different levels).
Thanks @tom_l for the heads-up on the neat card.
After playing around with it and adding support for state-based colors, I came up with an entity dependency tree:
Thanks for this excellent card, it looks great!
I started to prepare my power distribution based on it and already have few questions:
Is it possible to skip section? E.g. to link parent in section 3 with child in section 5? I’d like to have all end devices aligned in the very last section, but some structure to reach to them migh have different number of sublevels, depending on complexity. For now if I place child object in non consecutive section it diplsys there, but there is no connection drwn to parent.
Is it possible to have dynamic height of the card, e.g. something like 80% of entire page view? Would be very useful while using in panel view…
Here is sample of what I managed to achieve so far with this card:
Was having trouble justifying installing more energy sensors. This just changed that idea totally.
Heard about Sankey on the HA podcast and ordered more powertags straight away.
I started using it and are OK with using current sensors like power or utility sensors like daily energy etc.
However I completely fail to get data on previous day energy represented.
Can anyone spot what I’m doing wrong? I’m not getting any branches being drawn. I’ve been playing around with different settings and so far not a single branch has been drawn.
I thought maybe it was the theme I’m using (Metrology by Madelena) but she also uses the Sankey chart, so I doubt that’s it. Plus, I tried swapping the theme for this particular dashboard with no change in behavior.
Code seems OK. However I see huge disrepancy in values you try to connect. E.g. Total Power is 76kW, while Network Rack Power is only 41W. I guess the line is drawn, but is so tiny that cannot be spotted Try to add some more contrasting to background color for entities (white?) perhaps somthing will become visible. You can also add at the top level min_box_height: 20 (or any other value) to force minimum height of the entity box in pixels. This also enforces width of the line at the child end, so perhaps something will start to be visible.
I finally figured out what I did wrong: under children I had - entity_id: sensor.idrac_host1_powerconsumption when I really should have had just - sensor.idrac_host1_powerconsumption. It’s working now that I’ve fixed that.
Here’s the fixed version (still a work in progress though):