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!