Hi!
I have configured the energy system yesterday, and I’m loving it so far. I’m using a combination of a CT clamp on a Mottram board with an ESP8266 and ESPHome for mains current measurement, and a Tuya smart plug for voltage measurement. It gets multiplied in ESPHome and posted as power measurement, and integrated for energy measurement.
Then, I split this into peak/offpeak tariffs as is well known, and compute the total cost including taxes, based on what my energy supplier lists. So far, so good!
Now, I’d like to compare this peak/offpeak tariff cost with a dynamic cost plan, where the price varies every hour. The closest I could get is by importing the hourly cost as an entity (via the Nordpool integration) and adding it as an additional energy grid source. This correctly computes the cost for all three tariffs (peak/offpeak/dynamic), but Home Assistant now off course assumes my energy consumption is double of what it actually is, and the total cost is obviously off from what I pay:
What I’m asking: is there some neat way to simulate the other tariff cost, and maybe even graph it against the actual one? This is potentially something I’m willing to contribute to the energy dashboard code, if that would be acceptable.