Published beta-version of Feels Like Temperature Sensor
Have a nice day!
Published beta-version of Feels Like Temperature Sensor
Have a nice day!
This is cool. Not because of the functionality itself, just had a quick look, humiindex, heatindex, windchiltemp and dewpoint ask for something like 20-30 lines if ever.
But the documentation to see about whatās needed to turn this into a complete package is really appreciated by me. Especially since itās nothing too complexed to understand.
thanks a lot for the effort
We a different way of calculating feels like in Australia, itās based on Australian Apparent Temperature. Attaching my template for others
- platform: template
sensors:
feels_like:
friendly_name: 'Feels Like Outside'
value_template: >
{% set temperature = state_attr('weather.home', 'temperature') %}
{% set humidity = state_attr('weather.home', 'humidity') %}
{% set windspeedmps = state_attr('weather.home', 'wind_speed') / 3.6 %}
{% set wvp = (humidity/100) * 6.105 * e**((17.27*temperature) / (237.7 + temperature))%}
{{(temperature + 0.33 * wvp - 0.70 * windspeedmps - 4.00)|round(2)}}
unit_of_measurement: 'Ā°C'
The names are different, but the essence is actually the same. Take a look at the calculation formula in my component: ha-temperature-feels-like/sensor.py at d1082445dc9414d142659d7e947a30f8026b2aa9 Ā· Limych/ha-temperature-feels-like Ā· GitHub
Hey, they are similar but produce quite different results. I think itās because your script is expecting wind speed in mps where as my weather provider supplies it in kph. As per the screenshot, it may be worth tweaking the script to detect what units are used.
Thank you for bringing this situation to my attention.
In the component code, there really was a bug in the handling of units for wind speed.
In the new version 0.1.8 it has been fixed.
Can I ask what weather app this is?
Added the ability to specify groups as a source. Now you can, for example, collect all sensors of one room into a group and give it to the input of this sensor. Next, it itself will figure out how to use the provided data.
BOM in Australia actually publishes the āFeels Likeā - is there a reason you donāt use that @homeaus ?
Unless Iām missing something this component doesnāt calculate these right?
It doesnāt seem to be calculating correctly.
Itās claiming the real feel here at the moment is 22.0c and the temp is 24.1c. The actual real feel is 31c ā which seems right, itās spicy as hell right now outside, definitely not feeling like 22c.
My data sources are from environment Canada for all 3 (temp, humidity, wind speed).
This is not a weather app; this is a script which grabs temperature, humidity, and wind speed from your already-setup weather sensors, and calculates the āFeels likeā temperature, then creates a new sensor
What do you mean āactual real feelā?
There is no single correct formula for the apparent temperature.
There is a subjective perception of a specific person and there are formulas that try to mathematically approach this sensation. Many meteorological firms spend a lot of effort to come up with their own formula. And later they keep it a secret.
I took only one of the possible formulas to make this component. And I had to throw out the part from it that takes into account the absorption of solar energy by objects, because the solar energy depends on a specific place (from 800 W/mĀ² on a sunny day in Stockholm to 2000 W/mĀ² in the Sahara), and I doubt that an ordinary user will be able to calculate it. As a result, alas, the formula only calculates the ātemperature in the shadeā.
If you can suggest a more precise formula, I would be happy to use it in a component.
Definitely understand there is no absolute calculation, but regardless of my perception of the temperature outside, I can obviously tell itās hotter then the ācurrent outside temperatureā due to the humidity. The calculation results im getting with yours always says itās cooler then the actual temperature outside. I would understand a few degrees off here and there, but Iād expect it to at least show a positive humidex value.
The problem could be environment Canadaās sources. Iām going to try populating the temp, humidity, wind speed from a different source and see if that makes a difference.
Ah, the lower image looks like a weather appā¦
Yes, that blue image is. Itās accuweather for IOS. I just posted that as reference to what I thought the real feel temp should be in my area. The top one is HA/Lovelace displaying the āfeels likeā sensor this custom component creates.
Makes sense. Thanks!
@Limych Can I see an example of grouped sensors with humidity and temp? My yaml keeps throwing up errors when I try.
I donāt understand what difficulties there might be:
# Example of configuration.yaml
group:
weather_group:
entities:
- sensor.temperature
- sensor.humidity
sensor:
- platform: temperature_feels_like
source: group.weather_group