#Double energy tariff cost tracking inquiry

1 messages · Page 1 of 1 (latest)

torn abyss
#

We are paying double tarrif in our bills.
From 6AM to 10PM the price is higher then the rest of the day. How to track these cost?

#

There a 2 price.
From 6AM to 10PM is price A
10PM to 6AM price B

torn abyss
#

Double energy tariff cost tracking inquiry

heavy plover
#

You can use a utility meter to create two kWh entities, and add both of them to energy with different fixed prices.
Or you can use the single entity and "use an entity with current price". Then you can make a template that returns a different $/kWh based on time of day. Or make an input_number with the price, and change it every morning/evening with an automation.

Lots of options based on what you're comfortable with.

torn abyss
#

That means I have to create a helper?

#

I don't know where to go to begin. I'm lost

#

Oh yeah I see

#

But I don't know how to do

torn abyss
#

I have found this video helpful
https://youtube.com/watch?v=bb5aDtn2wUA

Would you like to keep track of how much energy you're using at peak and off-peak times separately in Home Assistant's Energy Dashboard? This guide will walk you through the whole process. Full article here: https://www.speaktothegeek.co.uk/2023/02/off-peak-tariffs-in-home-assistants-energy-dashboard/

Buy me a coffee:
https://www.buymeacoffee.c...

▶ Play video
#

So now I've got 2 entities instead of one

heavy plover
#

That's good, right?

torn abyss
#

I prefer to have a single entity

#

If it's possible

heavy plover
#

You can use a utility meter to create two kWh entities, and add both of them to energy with different fixed prices.
Or you can use the single entity and "use an entity with current price". Then you can make a template that returns a different $/kWh based on time of day. Or make an input_number with the price, and change it every morning/evening with an automation.

I did mention this in my first comment.

torn abyss
#

Without using automations too. Cause after each upgrade, all automations are gone from the web interface and can take few days to a week to reappear again

heavy plover
#

Well that's not supposed to happen 🤷

torn abyss
#

Currently have 1566 lines of automations.

I got informed that i s due to high IO load on the disk

heavy plover
#

that is the track for if you want two energy sensors

torn abyss
#

How to do for just one?

heavy plover
#

You can use a utility meter to create two kWh entities, and add both of them to energy with different fixed prices.
Or you can use the single entity and "use an entity with current price". Then you can make a template that returns a different $/kWh based on time of day. Or make an input_number with the price, and change it every morning/evening with an automation.

torn abyss
#

Yes But Idk how

spring fractal
#

something like this should work

torn abyss
#

How I got mine.

HP = Heure pleine = peak
HC = Heure creuse = offpeak

This is how they called

#

Aaand done!

Thanks so much @spring fractal 😊

torn abyss
#

After power outages all prices are gone...

Happened servral times. Blackouts are very short. Enough long to make my pie cool down. Need to heat the oven again.

It's installed on a Raspberry Pi 4 4G.

spring fractal
#

power outages can cause database corruption

torn abyss
#

Is it possible to fix that?

spring fractal
#

not really no, especially not on a pi

#

sd cards are notorious for data corruption

#

get a UPS for your pi

torn abyss
#

Shoot!

It was previously installed as a ProxMox VM. Since one of my two servers is down so I needed to migrate my TrueNAS server to the remaining machine.

After that I decided to plug to my UPS.

#

It's using a high endurance SD card though

#

Just created an automation

spring fractal
#

Endurance is not resilience

torn abyss
#

Is there a a way to regenerate the prices? Since the kWh values are there

spring fractal
#

Maybe it's not generating the statistics because it's missing a property like device class or measurement unit

#

Any issues in dev tools -> statistics?

torn abyss
#

Yesterday the prices are present

#

Here from the very beginning

spring fractal
#

cost enetity is generated, it will have a name like *_cost

torn abyss
#

Peak and offpeak cost are handled by this automation

spring fractal
#

there is a generated entity which holds the cost statistics, it has a name like <sensor>_cost

#

ok good

torn abyss
#

The issue is here. It's gone

#

I mean earlier values before outage are gone

spring fractal
#

yeah, that's probably data base corruption then

#

otherwise I have no idea. Data doesn't just dissapear except if the database goes corrupt

torn abyss
#

Is there a way for the system to caculate the prices again?

spring fractal
#

unfortunately no

#

well yeah, besides restoring a backup

torn abyss
#

I don't unfortunately

#

I mean I don't have

#

Can't connect to the NAS since I migrated to the Pi

spring fractal
#

you should make regular, automated backups to the cloud or off from your pi. For example nabu casa, or the google drive backup addon.

torn abyss
#

Thanks I avoid GAFAM as much as possible

Privacy matters

spring fractal
#

but it's free and works well

#

otherwise use nabu, or your nas

#

just dont save backups on your pi because your SD card will die at some point and then it's RIP backups as well

torn abyss
torn abyss
#

unsuccessful

#

Have 10 GB of data on it

#

Okii. It was due to the share is disabled