I have the sensor as in the instructions.
it works well too
I’m just not clear about this log entry?
Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:714
Integration: Sensor (documentation, issues)
First occurred: 22:20:32 (16 occurrences)
Last logged: 22:20:33
Entity sensor.wetterstation_590nm (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' 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 create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22
Entity sensor.wetterstation_630nm (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' 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 create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22
Entity sensor.wetterstation_680nm (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' 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 create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22
Entity sensor.wetterstation_clear (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' 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 create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22
Entity sensor.wetterstation_nir (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' 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 create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22<sub>Tex
Please post the yaml for the sensor. Also please use the correct formatting. Logs and yaml should be enclosed by preformatted text tags - these are accessed by using </> on the posting toolbar.
Everything works, but there are warnings in the core protocol
Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:714
Integration: Sensor (documentation, issues)
First occurred: 31. Januar 2024 um 13:23:55 (17 occurrences)
Last logged: 31. Januar 2024 um 17:08:42
Entity sensor.wetterstation_630nm (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' 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 create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22
Entity sensor.wetterstation_680nm (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' 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 create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22
Entity sensor.wetterstation_clear (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' 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 create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22
Entity sensor.wetterstation_nir (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' 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 create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22
Entity sensor.bewegungmelder_light (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'None' 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 create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22
well sometimes you cant just take the code from documentation 1:1 bc things change.
the error clearly says that you cant use only a number value “#” or “none” you need to define a unit_of_measurement for each sensor from f1 to nir
ex:
f1:
name: “415nm”
unit_of_measurement: nm
if everything works you sould have a light spectrum graph, how did u archive that?
can you post a screenshot of it?
If everything works you should report this as a bug!
We cannot be sure of exact measurement unit. Definitely its photons engaging electrons related ) It would be great if its Quantums of photons.
Datasheet is written by crippled ugly monsters to make people’s life more complex. It has many unclear things and many important things split between 10 different documents.
Readings are unitless ADC counts which - as per datasheet - represent irradiance.
For each channel there is different ratio between irradiance (in W/m2) and number of counts.
Number of counts also affected by current selected gain (x1, x2, x4…) ratio and integration time
To get value not related to particular time and gain there is concept of BasicCounts = AdcCounts / (Gain ratio x Integration time in ms)
Integration time in ms = (astep+1)x(atime+1)x2.78us/1000.
to get ratios for (1) check datasheet section 6. for each band there is typical number of counts for particular radiance.
for example band F3: 210 counts per 107.67μW/cm2 = 1.95 counts per μW/cm2 FOR GAIN: 64x, Integration Time: 27.8ms!!! it shall be converted to basic counts → 210/(64*27.8) = 0.1180. So the ration is 0.1180 basic counts for 107.67 uW/cm2 means 1 basic count = 912.45 uW/cm2
SATURATION. Sensor easily gets saturated, not sure this component exposes that. There is STATUS Register (Address 0x93) in the device which shall be read to get this info. When saturated - data is wrong and unusable.
Haha. Saturation can be analog :)))) sensor is overwhelmed and digital - adc is too happy. ADC value shall not be more than (atime+1)x(astep+1), in another case its unreliable.