Your code looks awesome - and I would test it - if the energy settings hadn’t disappeared from my control panel in Home Assistant with the latest updates…
I think you have the magic code that will handle propane energy from things like Tank Utility and others!
In case anyone is following this thread for directions, the latest 2022 update had a breaking change to the location of the “Energy” feature. Its now underneath Configuration → Dashboards → Energy.
Error while executing automation automation.percent_propane_today_input_automation: extra keys not allowed @ data[‘value_template’]
Percent Propane Yesterday Input Automation: Error executing script. Invalid data for call_service at pos 1: extra keys not allowed @ data[‘value_template’]
Yes seems to be working. Not sure about day to day sum. May need to change the settings to not reset everyday because it is a consumption sensor (goes positive one day and when nothing is used goes negative amt)