To use the Utility Meter I had to add this template sensor to record only the hourly energy consumption:
sensors:
util_meter:
friendly_name: 'Hourly Utility Meter'
unit_of_measurement: 'kWh'
value_template: '{{ states.sensor.furnace_hourly.attributes.last_period | float }}'
Configuration code:
furnace_hourly:
source: sensor.sensor_furnace_power_integral
cycle: hourly
I removed states.sensor.furnace_hourly and sensor.sensor_furnace_power_integral from my recorder because I don’t want to fill up the database with intermediate calculation data.
While I have a workaround, it would be more convenient for users to have a “Last Period” state instead of or in addition to an attribute.