Replies: 5 comments 20 replies
-
Beta Was this translation helpful? Give feedback.
-
This is essentially what you are trying to create if you go the HA dashboard route; |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Many thanks to @Daibutt for all your help with setting up the cheap and peak sensors. I now have my dashboard set up pretty much how I'd like it, with all the information I want to see at a glance... In case it's helpful for others, here's all the added code, like I sent previously in this thread but with some tweaks and corrections... Template sensors to read power (kW) only at the specified times:
Integration sensors to get energy (kWh) from above power values:
Utility Meters to reset energy totals daily: grid_daily_peak: And Template sensors to show cost so far that day:
As far as I can see it's working well! Some of my figures seem to be ever so slightly different to those on the built-in Energy dashboard. I'll call this a success; thank you again @Daibutt for your help. |
Beta Was this translation helpful? Give feedback.
-
Noted, cheers. I’d updated those already, I think it relates to the time format code returning only the hour rather than the full ‘24h’ format. I’ve updated to use %H and 00:30:00 etc…. And will see how it behaves overnight!
… On 14 Oct 2022, at 08:54, C00K50N ***@***.***> wrote:
Our amazing Go tariff (00:30-04:30 cheap) ran out while I was in the process of working this out. So while my first figures were for those times, my final code reflects our new Go Faster tariff (01:30-06:30 cheap). Forgive me if you've already spotted this, but if you've copied the code without changing the times on the if/then lines, perhaps that's where the discrepancy comes in for you. Mine seems to be working spot on.
If your tariff has your cheap rate at different times, you'll want to find the grid_consumption_peak and grid_consumption_cheap template sensors, and change your times on both accordingly.
I'm not sure why it would be reading as cheap during the day though, 12 hours offset. Mine isn't doing that as far as I know. It's difficult to be sure to be fair, as we are so far managing to use little or no grid import during the day as we're working just from the batteries most days.
—
Reply to this email directly, view it on GitHub <#53 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/A3RFX2BPQXNJEOIXMQJQEP3WDEGTNANCNFSM6AAAAAAQ6YDIRE>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
To anyone out there who's far more knowledgeable than me!...
I'd love to create a sensor which tells me how much kWh and £ I have imported from the grid so far today. I know we have the grid_daily sensor, but since I'm on a time of use tariff (Octopus Go - cheaper rates between specified times overnight) I can't simply multiply that kWh figure.
So, can someone help me with how I'd go about creating a version of grid_daily but only for between say 00:30-04:30, and another for between 00:00-00:30 plus 04:30-23:59? Then can I tie that to my £/kWh for those times to get an idea of cost so far that day?
I already have a "Helper" set up with the cost at those specified times, but I'm unsure how to tie that to the grid_daily.
Can anyone help me please?
Beta Was this translation helpful? Give feedback.
All reactions