I had all the templates created and working, but somehow, I deleted them during a purge.
Anyway, I can’t figure it out again. So, I have the emporia vue integration and hourly, daily, and monthly usage. I also have the SCE costs sensor that gives me the energy cost (variable).
How do I create an Energy Cost for the last hours starting midnight?
I don’t see how to link two sensors together. I read the documentation, if you have the consumption in kwh you will need to assign the tariffs manually, and the utility meter will create a sensor for each entity. You then must create a template sensor and apply whatever math you need. It’s not as simple as you think.