You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When in "auto" gain mode, it properly adjusts the gain value and reports relative values across full spectrum, infrared, visible, and an estimated/calculated lux. However, it does not provide any indication via sensor value publishing of the actual gain used for those readings. When transitioning between extremes (very dark, to very bright or vice-versa) the auto gain mode appears to function correctly; however, without a "gain" readout for what is being used to determine the raw values/lux, it can create a misleading situation where low and high light values spanning an auto adjustment may be perceived as inverted.
This can lead to incorrect conclusions for automation and users where a room may be perceived as darker than before even though it is now brighter (or vice versa).
I believe the correct route would be to publish the actual gain value being used when in "auto" mode, as well as other modes, probably as a numeric value (e.g. 1x, 25x, 400x, 9500x). This seems like it might be a feature request, but I can also see the case for filing it as a bug since it provides values that are potentially misleading relative to one another.
The issue appears to be consistent across any version supporting the component. It appears, based on esphome/feature-requests#267 that this is a hold-over from the addition of "auto" mode.
The text was updated successfully, but these errors were encountered:
The problem
The TSL2591 Ambient Light Sensor component (https://esphome.io/components/sensor/tsl2591.html) does not currently expose its actual gain value when in "auto" gain mode.
When in "auto" gain mode, it properly adjusts the gain value and reports relative values across full spectrum, infrared, visible, and an estimated/calculated lux. However, it does not provide any indication via sensor value publishing of the actual gain used for those readings. When transitioning between extremes (very dark, to very bright or vice-versa) the auto gain mode appears to function correctly; however, without a "gain" readout for what is being used to determine the raw values/lux, it can create a misleading situation where low and high light values spanning an auto adjustment may be perceived as inverted.
This can lead to incorrect conclusions for automation and users where a room may be perceived as darker than before even though it is now brighter (or vice versa).
I believe the correct route would be to publish the actual gain value being used when in "auto" mode, as well as other modes, probably as a numeric value (e.g. 1x, 25x, 400x, 9500x). This seems like it might be a feature request, but I can also see the case for filing it as a bug since it provides values that are potentially misleading relative to one another.
Which version of ESPHome has the issue?
2022.12.3
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.1.2
What platform are you using?
ESP32
Board
No response
Component causing the issue
tsl2591
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
The issue appears to be consistent across any version supporting the component. It appears, based on esphome/feature-requests#267 that this is a hold-over from the addition of "auto" mode.
The text was updated successfully, but these errors were encountered: