When you setup the Mopeka app you configure the Tank size.
It would be nice if this were either pulled or also configured in HA. I have my Mopeka sensor as an energy source but the Tank size has to be configured in the formula. That should be present natively in Mopeka sensor data.
template:
- sensor:
name: "Propane Level"
unique_id: propane_level
icon: mdi:fire
device_class: gas
state_class: total_increasing
unit_of_measurement: "ft³"
state: "{{ ( states('sensor.pro_plus_####_tank_level') | float * 0.01 * 250 * 35.65 ) }}"
utility_meter:
daily_propane:
source: sensor.propane_level
cycle: daily
monthly_propane:
source: sensor.propane_level
cycle: monthly
yearly_propane:
source: sensor.propane_level
cycle: yearly
Maybe this all could be integrated into the Mopeka sensor so its natively supported by the energy card?