#Add sensor energy cost to energy dashboard

1 messages · Page 1 of 1 (latest)

flint meadow
#

I seem to have deleted all of my electricity energy cost sensors.
If I search for cost in statistics there is only gas and water cost sensors, is there a easy way to replace them?

I need sensors for energy_consumed and energy_produced tariff 1 and 2

storm pilot
#

there is not an easy way to regenerate history

flint meadow
#

I don't need the history but the sensors, now my energy dashboard shows no cost for electricity.

storm pilot
#

If you want to debug it, probably good start is to share the energy diagnostic

#

(download from settings page)

flint meadow
#

My energy sensors all work fine they record kWh, it is just the cost sensors that have somehow been removed from my energy dashboard.

storm pilot
#

Yes you've said that. The diagnostic will have the clues.

flint meadow
#

Where in settings can I find this?

storm pilot
#

in config/energy, top right corner

#

its a download button

flint meadow
storm pilot
#

Ok that's the wrong thing. That's from the energy dashboard. There's a different download from the energy configuration page.

flint meadow
storm pilot
#

Do you remember deleting the sensors or do you mean they just disappeared on their own?

flint meadow
#

I think i deleted them myself, have been cleaning old sensors

storm pilot
#

I'm surprised you were able to do that

#

You can probably recreate them if you open the grid settings, set the cost back to none, save, edit again and then change the cost back to number again?

flint meadow
#

I will try it thanks

#

Delated them and now restarting HA, it will probebly take some time for the new sensors to work 🤞

flint meadow
#

After more than 2 hour still no cost sensor, no change😢

storm pilot
#

Did you do the steps I lined out?
Do they show up in info: cost_sensors in diagnostic?

#

The energy integration should create the cost sensor

flint meadow
storm pilot
#

hmm sorry I don't know. Normally as soon as you save it with a price an entity should be added to cost_sensors.

#

I don't know how you "deleted" the entity before, since you can't delete entities that are currently being used by the energy integration (delete is disabled)

#

so unless you were mucking around in the storage or something I'm not sure how you got here