We have a furnace setted up in the garage with his own energy-meter. The furnace does different runs on different times so the dynamic energyprice and energyconsumption will go up and down.
I want to make an automation which does the following:
If the energymeter (kWh-F) of the furnace measures above 0 watts than start monitoring kWh combined with dynamic energyprice (Live-E/kWh) till kWh-F is 0 watts again for 10 minutes.
When finished, send a notification to phone with total kWh-F and total (Live-E/kWh)
I am connected in HA with the energy supplier through an API to get Live pricing which changes every hour.
There is no need to add anything for this.
I think this can be done with templates as an action when the trigger (above 0) is fired, but I’m not good at it.
You could write the cost to a helper while the automation runs and send the value when finished.