#Double energy tariff cost tracking inquiry
1 messages · Page 1 of 1 (latest)
Double energy tariff cost tracking inquiry
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.
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
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...
So now I've got 2 entities instead of one
That's good, right?
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.
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
Well that's not supposed to happen 🤷
Currently have 1566 lines of automations.
I got informed that i s due to high IO load on the disk
So, Am I on the right track?
that is the track for if you want two energy sensors
How to do for just one?
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.
Yes But Idk how
something like this should work
Thanks!
I don't know where to go to create a template sensor
okii after a quick ressearch
How I got mine.
HP = Heure pleine = peak
HC = Heure creuse = offpeak
This is how they called
Aaand done!
Thanks so much @spring fractal 😊
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.
power outages can cause database corruption
Is it possible to fix that?
not really no, especially not on a pi
sd cards are notorious for data corruption
get a UPS for your pi
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
Endurance is not resilience
Is there a a way to regenerate the prices? Since the kWh values are there
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?
cost enetity is generated, it will have a name like *_cost
there is a generated entity which holds the cost statistics, it has a name like <sensor>_cost
ok good
yeah, that's probably data base corruption then
otherwise I have no idea. Data doesn't just dissapear except if the database goes corrupt
Is there a way for the system to caculate the prices again?
I don't unfortunately
I mean I don't have
Can't connect to the NAS since I migrated to the Pi
you should make regular, automated backups to the cloud or off from your pi. For example nabu casa, or the google drive backup addon.
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
Thanks I know. Eventhough I have a high endurance card I never do it