[SOLVED] Reimann Sum Integration reporting "unknown" state

I’m trying to sum up the power of my UPS, to integrate it in the new Energy dashboard :slight_smile:

  - platform: integration
    source: sensor.ups_load
    name: ups_load_total
    unit_prefix: k
    unit_time: min
    round: 3
    method: left

And the sensor.ups_load itself is computed as follow:

  - platform: template
      ups_watts:
        friendly_name: "UPS Load"
        unit_of_measurement: "W"
        device_class: 'power'
        value_template: "{{ states.sensor.nutdev1_load.state | float * 6 | int }}"

The UPS Load itself is fine :
Capture d’écran de 2021-09-22 14-15-51

But the ups_load_total is always “unavailable”.

Any idea?

Remove these and see what happens:

    unit_prefix: k
    unit_time: min

Your entity_id is sensor.ups_watts, not sensor.ups_load.

  - platform: integration
    source: sensor.ups_watts
    name: ups_load_total
    unit_prefix: k
    unit_time: min
    round: 3
    method: left
2 Likes

Oh my… Thanks!