Guide - show a BACnet energy meter in the Energy dashboard

Goal: a BACnet energy counter keeps correct long-term statistics in Home Assistant and can be used in the Energy dashboard.

Before you start

Steps

  1. Each BACnet device is its own entry, titled with the device name, under Settings → Devices & Services → BACnet IP. Click Configure on the entry of your device.
  2. Choose Customize objects: type, COV, state class, properties.
  3. In Objects to customize, pick the energy object and click Submit.
  4. Check the settings of the object. In this list every field starts with the object, for example Analog Value (4) - SP - type; the other fields of that object (COV, extra properties, other properties) look the same.
    • type is sensor. A writable Analog Value is a number by default; change it to sensor in this save, because the Energy dashboard only lists sensors.
    • state class is Automatic. For these energy units this gives Total increasing by itself, so a meter needs no further setting.
  5. Click Submit. The integration reloads by itself.

You should see the energy sensor on the device page. The Energy dashboard now lists it.

A value that is not a counter

A "last month" total or another energy value that resets or jumps is not a counter. Set state class to Measurement for that object. The sensor then becomes a stored amount (device class energy storage), no longer a meter. Total is for a meter that can also go down, and None turns statistics off.

If it doesn't work

More detail: Customize objects and Entities and attributes. Water and gas meters: Water meter guide.