Energy Dashboard Sankey: Sub-meters from smart-me integration incorrectly grouped as intermediate nodes instead of parallel consumers

Description

When using the smart-me integration with multiple apartment sub-meters
in a multi-family building (Mehrfamilienhaus), the Energy Dashboard
Sankey diagram incorrectly creates an intermediate node for one of the
sub-meters, routing all other consumers through it instead of showing
them as parallel consumers.

Setup

  • Home Assistant (latest version)
  • smart-me integration (cloud-based sub-meter system)
  • 1x billing meter (Bilanzzähler) as grid reference
  • 1x PV meter
  • 5x apartment/consumer sub-meters:
    • Apartment Ground Floor (EG)
    • Apartment Upper Floor (OG)
    • Apartment Attic (DG)
    • Common electricity (Allgemeinstrom)
    • EV charging stations (Wallboxen)

All devices configured under “Individual electric devices” in the
Energy Dashboard with no “Upstream device” set for any of them.

Expected behavior

All 5 consumer meters shown as parallel nodes:

PV ──┐
├──→ Home ──→ Apartment EG
Grid ┘ ──→ Apartment OG
──→ Apartment DG
──→ Common electricity
──→ EV charging

Actual behavior

One apartment meter (“1. Obergeschoss / OG”) appears as an
intermediate node, with all other consumers incorrectly routed
through it:

PV ──┐
├──→ Home ──→ 1. Obergeschoss ──→ Apartment EG
Grid ┘ ──→ Apartment DG
──→ Common electricity
──→ EV charging

Additional context

  • “Upstream device” field is empty for all configured devices
  • The power sensors use the smart-me internal device hierarchy
    (Eingangsbereich → sub-device), which HA may interpret as a
    physical hierarchy
  • All kWh values and other dashboard views are correct –
    this is purely a Sankey visualization issue
  • The issue affects multi-family building setups with multiple
    sub-meters from the same integration

Workaround

None found. Removing the power (W) sensor from the device
configuration does not resolve the issue.

Screenshots