-
In particular, I noticed that Tasmota appears to support several different I²C ambient light sensors, but none of them are supported by default. According to https://github.com/arendst/Tasmota/blob/development/tasmota/include/tasmota_configurations_ESP32.h the MAX44009 would only add 0,8kiB of code size, SEN0390 LuxV30b only 0,5kiB and the VEML770 a larger 4,5kiB. On the other hand the AS3935 Lightning/Thunderstorm Sensor is enabled by default? Is there any particular rationale behind these decisions, because I find it hard to believe that a Thunderstorm detection sensor would be more popular than a basic ambient light detector? (And obviously I’d like an ALS sensor to also be enabled-by-default, but again, I’m sure everyone has their favourite pet- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There are no "rules" or defined criteria, but when it comes to commonality there are indeed several ambient light sensors available, meaning that each of those does not count strongly in "popularity", and contrary to what you state, standard ESP32 builds includes BH1750, analog LDR, and also UV sensor VEML6070. OTOH, the AS3935 has a lot less "competition", and while it may be less popular than the whole category of ambient light sensors, that is not in itself an argument for adding further specific ones of the latter. Not trying to argue about what "should" be added, or making claims about what's widespread in the wild, more to illustrate the complexities. History plays a role too, and there is a tendency for drivers added more recently not being seen as something which immediately "belongs" in the default builds. Risk of I2C address clashes can also count against particular sensor drivers, and of course size requirements. As you can see in the linked builds table, standard-included sensor drivers largely match what's in the space-restricted sensor build for the 1 MB ESP8266 memory model. Of course, with the browser-based build tools available (no install needed), adding your favorite one(s) is not much work or complexity. |
Beta Was this translation helpful? Give feedback.
There are no "rules" or defined criteria, but when it comes to commonality there are indeed several ambient light sensors available, meaning that each of those does not count strongly in "popularity", and contrary to what you state, standard ESP32 builds includes BH1750, analog LDR, and also UV sensor VEML6070.
OTOH, the AS3935 has a lot less "competition", and while it may be less popular than the whole category of ambient light sensors, that is not in itself an argument for adding further specific ones of the latter. Not trying to argue about what "should" be added, or making claims about what's widespread in the wild, more to illustrate the complexities.
History plays a role too, and t…