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
- The device is already added (see Getting started).
- The object is an analog object (Analog Input or Analog Value) in an energy unit: J, kJ, MJ, Wh, kWh or MWh.
Steps
- 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.
- Choose Customize objects: type, COV, state class, properties.
- In Objects to customize, pick the energy object and click Submit.
- 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 anumberby default; change it tosensorin 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.
- type is
- 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
- The sensor is missing in the Energy dashboard: check that type is
sensor. - After a unit or state class change, Developer tools → Statistics lists the sensor with an issue: click Fix issue once per sensor.
More detail: Customize objects and Entities and attributes. Water and gas meters: Water meter guide.