-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Retrieve Heat Index from DHT22 (AM2301(2)) Sensor #4771
Comments
Heat Index is calculated through the Adafruit library in your example. It is not a sensor value
|
Thank you. |
The Dew point value is also not a sensor value but it is calculated and displayed by Tasmota. I would also like to have the heat index value available in Tasmota beside the dew point value. So a vote for this functionality from me. |
…le with ``#define USE_HEAT_INDEX`` (#4771)
This is by design, only units that can be changed are explit |
In general, it is up to HA to "know" what unit applies to each value, but when there is a sensor with "Temperature", the default temperature unit of Tasmota, C/F, should already be included in the sensor payload. In HA, this is not linked to HeatIndex, as hatasmota has a table of what sensor names are which unit, and possibly One question may be if the heat index calculation above is in C or F, or works for both. The many "magic numbers" suggests that the formula may be for Fahrenheit. If this speculation is correct, it would be needed to make sure that Tasmota can calculate HeatIndex for both types of temperature units, before it would work well to have hatasmota "know" that the |
Don't worry. HeatIndex, just like Dewpoint adjusts to Fahrenheit AND celsius as other temperature results. The above code is just part of the final Tasmota implementation. |
Thank you for implementing this feature! |
Then, next step could be to fix hatasmota to include this. Or maybe open the old can of worms about Tasmota being able to report units with the various sensor values, instead of the subscriber needing to know all those units by itself. |
Also see #19666 for more generalized support for including units in the payloads, instead of the subscriber having to "know" this implicitly. |
Ha. I noticed yesterday the BMP/E code indeed doesn't use the generic TempHum functions. I guess because not all BMP's support humidity but looking briefly at the code I couldn't understand how the humidity was handled. Will investigate today (again). |
Again, it is because hatasmota (the Tasmota Integration feature of HA) has a table to select which JSON field names (like Humidity) has what unit of measurement, as those are nowhere in the JSON. Hence it does not "know" what |
Shall the HeatIndex be added for the SCD40 / 41 sensor too?
|
It should have been there. If not I’ll fix it asap. It should be everywhere where dewpoint is too. Note: it’s only there if enabled at compile time. Default disabled on esp8266 as too much code space. |
Ok. This compile option wasn't noted in this issue so far. |
I reviewed the WIKI and searched considerably and I found no reference to retrieving the Heat Index from a DHT22 sensor. I am wondering if there is an away or can it be added?
I retrieve the heat index using a regular Arduino sketch
Thank you in advance and I hope I did not miss anything
The text was updated successfully, but these errors were encountered: