New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[P026][Sysvars] Add Internal temperature sensor value for ESP32 #4820
[P026][Sysvars] Add Internal temperature sensor value for ESP32 #4820
Conversation
Couldn't you come up with an even longer name? I think this one can even be used on nearly all display plugins in their line strings. ;) |
Shortened to |
I think the sensor needs some 'time' to stabilize as there is a check to see if the value returned is |
By the way, it looks like the temperature sensor on the ESP32 (classic) is just (barely) capable of giving proper readings. I think it just tracks the offset in frequency of the internal 150 kHz oscillator (its accuracy is highly temperature dependent) compared to the crystal frequency. The ESP32-S2/S3/C3/C2/C6 seem to have a more reliable temperature sensor, or at least have a factory calibration. I think that's why Espressif removed the "temperature sensor" from the features summary of the ESP32 classic. |
I just upload this PR into the 'latest' web flasher: https://td-er.nl/ESPEasy/latest/ |
So if on the classic ESP32 we cannot obtain acceptable values (-273.15 is unacceptable) I suggest to remove this feature for the ESP32 board. |
Like I said, I think the temperature sensor may need some more polling as it will only return this extreme value when the sensor returns this specific value (128 if I'm not mistaken) Still the temperature reading on ESP32 classic should not be used as a true temperature value. Only as a trend. |
…feature/P026-add-internal-temperature-also-as-systemvar
Just tested the last commit of this PR (via Action run https://github.com/letscontrolit/ESPEasy/actions/runs/6305109576) and I can confirm now all is OK and I don't have more any -273.15 value. |
Resolves #4817
Features:
%inttemp%
(Internal temperature) for ESP32TODO: