A Home Assistant integration that calculates the Humidex index based on your existing temperature and humidity sensors.
Humidex (humidity index) is a measure used by Canadian meteorologists to describe how hot and humid air feels to the human body. It combines air temperature and relative humidity into a single number to represent the perceived temperature.
- 20-29°C: Comfortable
- 30-39°C: Slightly uncomfortable
- 40-45°C: Very uncomfortable, avoid physical exertion
- 46°C and above: Dangerous, heat stroke imminent
- ✅ Real-time Humidex index calculation
- ✅ Automatic updates when temperature/humidity changes
- ✅ Support for Celsius and Fahrenheit sensors
- ✅ Optional atmospheric pressure sensor for enhanced precision
- ✅ Dual calculation methods (standard dew point-based and enhanced pressure-corrected)
- ✅ Graphical configuration interface (Config Flow)
- ✅ Multilingual support (French/English)
- ✅ HACS compatible
- ✅ Robust input data validation
- Open HACS in Home Assistant
- Go to "Integrations"
- Click the three dots in the top right
- Select "Custom repositories"
- Add
https://github.com/LightD31/humidex-haas an integration - Search for "Humidex Sensor" and install it
- Restart Home Assistant
- Download the files from GitHub
- Copy the
custom_components/humidex_sensorfolder to yourconfig/custom_components/directory - Restart Home Assistant
- Go to Configuration > Integrations
- Click + Add Integration
- Search for "Humidex Sensor"
- Follow the configuration wizard:
- Name: Custom name for your sensor (optional)
- Temperature entity: Select your temperature sensor
- Humidity entity: Select your humidity sensor
- Pressure entity: Select your atmospheric pressure sensor (optional, for enhanced precision)
- Temperature: Any sensor with device_class "temperature" (°C or °F)
- Humidity: Any sensor with device_class "humidity" (%)
- Pressure: Any sensor with device_class "atmospheric_pressure" (hPa/mbar) - Optional for enhanced precision
Once configured, the Humidex sensor will appear in your entities with:
- State: Humidex index value in °C
- Attributes:
temperature_entity: Source temperature entityhumidity_entity: Source humidity entitypressure_entity: Source pressure entity (if configured)calculation_method: Method used (standard or enhanced)comfort_level: Comfort level (cold, comfortable, slightly_uncomfortable, very_uncomfortable, dangerous)comfort_description: Comfort description, Localized
type: gauge
entity: sensor.humidex
name: Humidex Index
min: 15
max: 50
severity:
green: 29
yellow: 39
red: 45The integration uses the official Environment Canada formula based on dew point temperature:
When a pressure sensor is available, the integration can use a more precise calculation:
Where:
- T = temperature in °C
- RH = relative humidity in %
- T_dew = dew point temperature in °C
- e = water vapor pressure in hPa
- P = atmospheric pressure in hPa (optional)
- e_s = saturated vapor pressure
- 🐛 Issues: GitHub Issues
Contributions are welcome! Make a pull request or open an issue to discuss improvements.
This project is licensed under the MIT License. See the LICENSE file for more details.
- Humidex formula based on Environment and Climate Change Canada standards
- Inspired by the Home Assistant community
⭐ If this integration is useful to you, please consider giving the project a star!