Entity sensor.solar_radiation Wrong unit
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
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.
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?
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:
![]()
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!