Integration sensor do not create energy entities

Hi, I got some devices that report the energy consumption in watts so I follow the new integration sensor that should create statistic energy entities to add it as an individual device to energy monitor. But the HA does not create any other entities. So it is not in the individual energy consumption list. Could somebody help how add this device to the energy dashboard?

template.yaml

  - name: UPS Energy consumption
    unit_of_measurement: "W"
    device_class: energy
    state: >
        {{ (states('sensor.ups_load')|float(0)) / 100 * 865}}

sensor.yaml

- platform: integration
  source: sensor.ups_energy_consumption
  name: Rack power consumption
  unit_prefix: k
  round: 2

The device class for the power sensor is incorrect. It should be power, not energy.

1 Like