core icon indicating copy to clipboard operation
core copied to clipboard

Entity sensor.solar_radiation Wrong unit

Open haaino opened this issue 3 years ago • 1 comments

The problem

Entity sensor.solar_radiation (<class 'custom_components.ecowitt.sensor.EcowittSensor'>) is using native unit of measurement 'W/m^2' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

What version of Home Assistant Core has the issue?

2023.2.3.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

ECOWITT

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:677 
Integration: Sensor (documentation, issues) 
First occurred: 09:01:19 (1 occurrences) 
Last logged: 09:01:19

Entity sensor.solar_radiation (<class 'custom_components.ecowitt.sensor.EcowittSensor'>) is using native unit of measurement 'W/m^2' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Additional information

No response

haaino avatar Feb 05 '23 08:02 haaino

custom_components.ecowitt.sensor.EcowittSensor

You appear to be using the legacy custom component of the ecowitt integration. The built-in ecowitt integration (available since 2022.9) does not show this warning for the solar radiation sensor.

exxamalte avatar Feb 06 '23 11:02 exxamalte

Thank you for your feedback.

I thought that I already migrated to the native integration.

Is there a method that I can use to check if I'm using the native or the custom integration?

haaino avatar Feb 07 '23 09:02 haaino

Is there a method that I can use to check if I'm using the native or the custom integration?

On the integrations page, custom integrations have a little parcel icon in the top right corner: parcel-icon

exxamalte avatar Feb 08 '23 06:02 exxamalte

Your are completely right. It still is a HACS component. I clearly did something wrong during the attempted migration.

Is there a description on how to migrate from hacs to native support?

Thanks for helping out!

haaino avatar Feb 08 '23 11:02 haaino