Yes. If you create an input_number helper, you can use a template to turn what you enter into a value that the energy dashboard will accept. Something like:
- sensor:
- name: Gas reading
unique_id: 5f7e5894-f719-42a7-84a4-1ea99ebfc7fe
state: "{{ states('input_number.gas') | float(0) }}"
unit_of_measurement: m³
device_class: gas
state_class: total_increasing
If you don’t have smart meters, you might be interested in the PowerCalc integration.