Closed DrCoolzic closed 2 years ago
Hey there @esphome/core, mind taking a look at this issue as it has been labeled with an integration (sensor
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
Hey there anybody looking at this problem? Badly needed for the Teleinfo component! Thanks
Can someone look at this problem. It should not be a big modification to add the two missing device classes :)
These were added to dev
in https://github.com/esphome/esphome/pull/3624
Many thanks. Is this update available on 2022.6.3 ?
The problem
Currently ESPHome does not support two very important device classes: “apparent_power” and “reactive_power”. This is very annoying because currently there is no way for a sensor to report values with VA or VAR for unit_of_measurement. If using device_class=power these units of measurement are rejected for statistical data recording …
In the Sensor Component documentation, it is mentioned that:
But as mentioned two are missing: apparent_power and reactive_power
Which version of ESPHome has the issue?
2022.6.2
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2022.6.7
What platform are you using?
ESP8266
Board
irrelevant
Component causing the issue
irrelevant
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
If trying to use power instead of apparent_power
we get error
Please refer to Add sensor device classes for apparent and reactive power #688 https://github.com/home-assistant/architecture/discussions/688
and Device class “power” should support “VA” and “VAR” units #57236 https://github.com/home-assistant/core/issues/57236
for more info