Open LeonEmm opened 2 years ago
Edit:I Changed the frequency of the i2c bus to 400kHz and the update-interval of the Sensor to 60 secondsbut still got the same Error. The Log-File says on a sunny day:
[14:24:48][D][tsl2561:126]: Got illuminance=0.0lx [14:24:48][D][sensor:113]: 'Sensor South': Sending state 0.00000 lx with 1 decimals of accuracy
when the Sensor reports 0.0 lux, it is still reachable but i have to restart the ESP to get Values. From this point the sensor is working perfectly until it hits another sunny day and climbes above the 10k lux mark...
A small update: I performed every update available and the drops ar getting less and less, but they are still threre....
Hi @LeonEmm,
I am experiencing a similar behavior with TSL2561. I my case the sensor is not reporting 0, but nan, when his max value is breached.
[12:08:56][W][tsl2561:068]: TSL2561 sensor is saturated.
[12:08:56][D][tsl2561:126]: Got illuminance=nanlx
[12:08:56][D][sensor:094]: 'Illuminance (TSL2561)': Sending state nan lx with 1 decimals of accuracy
I checked the source code, and it looks like, that the author of the integration decided to return NAN, if the sensor is saturated:
if ((ch0 == 0xFFFF) || (ch1 == 0xFFFF)) { ESP_LOGW(TAG, "TSL2561 sensor is saturated."); return NAN; }
The problem
Hello everybody,
recently I changed from ESPEasy to ESPHome due a migration to Homeassistant. I have to ESP32 with a TSL2561 to measure my outside brightness. Since the first OTA Flash to ESPHome, my Sensor crashes at high Brigntess (>10,000lux). With the ESPEasy firmware nothing likt this happened. When the sensor crashes, the ESP is still reachable but is reporting 0lx. This happens on two ESP-Instances with the same configuration. Has anyone an Idea, why this happens?
Which version of ESPHome has the issue?
2021.12.3
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2021.12.8
What platform are you using?
ESP32
Board
ESP32 esp-wrover-kit
Component causing the issue
TSL2561
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response