Assign custom entity to an area (no unique id issue)

Hi there. I was using sankey chart to display my home power usage for a long time. It was pretty flexible to config so I was able to set area (and parent area) for every entity manually in config (like Floor → Bathroom or Garden → Terrace). Now sankey was implemented in Energy dashboard, which I love, but customization bascially doesn’t exist there.

I have like 20 power meters which are being used to read current power usage of devices which they are connected to and calculate total consumption in kWh. Configuration looks pretty much like this:

- platform: integration
  name: energy_spent_ups
  source: sensor.sonoff_1000bda5e7_power
  unit_prefix: k
  round: 2

and that brings us to te main problem. Those custom energy_spent_xxx entities cannot be assigned to an area as they have no uniquie ID. Without that sankey in Energy dashboard is unsorted and looks really bad. Is there any workaround for that?

Hello Gutek,

Can you assign labels?

Nope, energy spent entity has no options at all.

You can configure them with a unique_id.

unique_id string (Optional)

An ID that uniquely identifies the integration sensor. Set this to a unique value to allow customization through the UI.

1 Like