Energy Dashboard: Cannot unlock cost tracking for a long-term statistic (thames_water:thameswater_consumption_hourly)

Hi everyone,
I am using a custom Thames Water integration. I want to use the hourly historical data on the Energy Dashboard because it distributes water usage perfectly over past hours instead of giving huge 3-day “catch-up” spikes.

However, the “Use an entity with current price” option is greyed out in the UI.

Looking under the hood at my energy JSON file, the tracking ID is a pure statistic string, not a standard sensor entity:
"stat_energy_from": "thames_water:thameswater_consumption_hourly"

Because this is a background statistic without an active sensor. counterpart in the live state machine, my attempts to force attributes using customize.yaml like this are being ignored by the UI pricing engine:

yaml

sensor.thames_water_consumption_hourly:
  device_class: water
  state_class: total_increasing
  unit_of_measurement: "m³"

How can I inject the monetary device class properties into a raw integration statistic block so the Energy Dashboard allows me to assign a price tracker (sensor.water_current_price)?

Thank you!

Your energy stat is an “external statistic”, meaning it is not an entity in the state machine, and the statistics are inserted manually into the database instead of being generated from an entity.

These types of statistics cannot have price sensors or fixed price. The only way an external statistic may have cost tracked is if there is a second statistic that represents the cost (likely another external statistic generated by the same integration).

It has nothing to do with customize, device class, or attributes.

Ok Thanks karwosts for the information. Thats a shame,