Custom Energy Consumption Sensor

Hello,

at the moment i don’t have a smart meter in my house, hopefully in 2 months.
My question is, how can i manually track my energy consumption?

For example:
Once a day i will read the energy consumption from my meter and save it to an custom sensor. Then i want to add this sensor to my energy dashboard for the grid consumption.

Is this even possible?

Ng

Hey there.
I understand you are looking for a short term solution!?

In order to input a number in Home Assistant you can define an input_number. You have to “transform” this number into a measurement sensor to be shown in the energy dashboard. The below is not tested but give it a try.

input_number:
  home_energy_total:
    name: Home Energy Total manual entry
    unit_of_measurement: "kWh"
    mode: box

template:
  - sensor:
      - name: Home Energy Total
        unit_of_measurement: "kWh"
        state_class: total
        state: "{{ states(input_number.home_energy_total) | float(0) }}"

For further config details, see:

Besides minor errors in my code, you might experience issues with the very sparse occurrence of updates. You gotta try it out.

1 Like

Thanks for your input, i had to adjust it a little bit.

Following is the final version:

input_number:
  grid_consumption:
    name: "Zaehlerstand manuell"
    unit_of_measurement: "kWh"
    mode: box
    min: 0
    max: 999999999
    step: 0.1

- sensor:
    - name: "Zaehlerstand"
      unit_of_measurement: "kWh"
      state_class: total_increasing
      device_class: energy
      state: '{{ states("input_number.grid_consumption") | float(0) }}'

What i will do next is to subtract the values of my plugs with energy meter sensor, so the value is more accurate

1 Like