Utility meter not available as source in energy dashboard

I have set up cheap and peak rate sensors using the utility meter integration UI.

The energy dashboard does not offer either of these sensors in the drop down when I try to add them to the Grid Consumption section.

Found this old post https://community.home-assistant.io/t/utility-meter-sensor-not-show-as-energy-source/340670

which suggest the sensor needs a device class.

How can I add a device class - there’s no YAML - it’s all been done via the UI?

The states shown for the one of the created sensors are:

state_class: total_increasing
source: sensor.powerwall_site_import
status: paused
last_period: 0
tariff: Cheap
last_reset: 2022-11-01T17:08:13.854133+00:00
icon: mdi:counter
friendly_name: Grid Import Octopus Go Cheap

I’m probably missing something but what is the purpose of the Utility meter integration if it can’t be used in the energy dashboard?
Thanks

Suddenly both meters showed up in the energy dashboard add consumption drop down.

No idea how or why. Going for a lie down

When you open up the energy dashboard settings in HA you will be greated with a message at the top about devices taking several hours to show up in the energy dashboard after being added to HA.

Thanks but that’s not how I understand the info in energy dashboard settings

it says “After setting up a new device, it can take up to 2 hours for new data to arrive in your energy dashboard.”

My problem is I wasn’t able to set up a new device in the energy dashboard - I understand that once a new device has been added to the energy dashboard it takes some time for it to start showing data.

I’m wondering if the issue was caused because the utility meter I set up probably didn’t change for several hours as there was no grid import - its state was showing as UNKNOWN. Once there was a bit of import (5 hours later) the sensor started showing data. It was then I could add it as a source in the energy dashboard. Just a hypothesis.

It’s working now so I’m leaving well alone! Thanks again for taking an interest

1 Like

It is actually like that.
The energy dashboard needs to see the device actively reporting values for some time in order to be able to add it to the dashboard.

I found out what this issue is for all in the future. The device_class need to be device_class: energy then it shows up to be added. But this is not set untill data flows into the meter. So set it up and then wait for some data to come in (developer tools > check statistics if you need to) . Then check the developer tools > state and you should now see device_class: energy has been added.