Just thought I’d share my flows; perhaps it will inspire someone to do something similar.
My gas and electricity data is loaded into Domoticz (running on a Synology NAS) with a P1 cable. This data is queried by Homey every 15 minutes with this flow:
The extra card gets the data for the tiles in Homey Dash:
At the end of every day the total gas and electricity usage is posted as a notification in Homey and a push message to my phone:
And after that has been done, the last flow runs to reset the variables to zero:
Check the calculations; I have created variables in Better Logic so I only have to update my actual gas and electricity price within the Better Logic App (and not in the flows). Also, all outcome is rounded to two decimals with the round() function.