Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103231

Wrong unit (kkWh) for integration sensor

$
0
0

Hi,

I have set up an integration sensor to keep track of how much energy the electric car has consumed. I get a warning in the HA log every time at bootup that I cannot find out how to fix. Seems like the unit is kkWh (double k) even though I think it should be kWh.

Error message:

Source: components/sensor/recorder.py:259
Integration: Sensor (documentation, issues)
First occurred: 13:45:29 (1 occurrences)
Last logged: 13:45:29

sensor.energi_id4_laddning has unit kkWh which is unsupported for device_class energy

The sensor configuration:

  - platform: integration
    name: "Energi ID4 laddning"
    source: sensor.volkswagen_id_id_4_charge_power
    unit_time: h
    method: left

The source comes from an custom integration for the VW ID-family. If I look at it in the developer tools, it looks as follows:

As I understand the documentation, a sensor with unit “kW” fed into the integration component to be integrated over hours, should produce kWh. However, from somewhere I get an additional k.

Any ideas how to fix this? Could it be some old configuration that has been wrong which is still “stuck” in the recorder?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103231

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>