Mold Indicator

The Mold Indicator sensor integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] uses data from two temperature sensors and a humidity sensor to predict the humidity near a cold surface. High humidity may lead to mold growth at more than ~70% and causes condensation at 100%.

The sensor data may be used, for example, to detect bad air quality (high humidity) or automate the operation of indoor air humidifiers to keep the indoor humidity at an optimum.

Configuration

To add the Mold Indicator helper to your Home Assistant instance, use this My button:

Manual configuration steps

If the above My button doesn’t work, you can also perform the following steps manually:

  • Browse to your Home Assistant instance.

  • Go to Settings > Devices & Services.

  • At the top of the screen, select the tab: Helpers.

  • In the bottom right corner, select the Create helper button.

  • From the list, select Mold Indicator.

  • Follow the instructions on screen to complete the setup.

Further information about these configuration options can be found under the YAML configuration

Name

The name of the sensor.

Indoor temperature sensor

The entity ID of the indoor temperature sensor.

Indoor humidity sensor

The entity ID of the indoor humidity sensor.

Outdoor temperature sensor

The entity ID of the outdoor temperature sensor.

Calibration factor

Needs to be calibrated to the critical point in the room.

YAML Configuration

To use the Mold Indicator sensor in your installation, add the following to your configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file. After changing the configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file, restart Home Assistant to apply the changes.

# Example configuration.yaml entry
sensor:
  - platform: mold_indicator
    indoor_temp_sensor: sensor.temp
    indoor_humidity_sensor: sensor.humidity
    outdoor_temp_sensor: sensor.weather_temperature
    calibration_factor: 2.0
    unique_id: very_unique_id_123

Configuration Variables

name string (Optional)

The name of the sensor.

indoor_temp_sensor string Required

The entity ID of the indoor temperature sensor.

indoor_humidity_sensor string Required

The entity ID of the indoor humidity sensor.

outdoor_temp_sensor string Required

The entity ID of the outdoor temperature sensor.

calibration_factor float Required

Needs to be calibrated to the critical point in the room.

unique_id string (Optional)

Provide a unique id for the sensor.

In this case, the weather forecast temperature sensor is used for the outside temperature.

Background

First, this sensor predicts the temperature near the given surface by estimating it from the indoor and outdoor temperatures. The predicted temperature starts with the indoor temperature, then either brings it closer to the outdoor temperature (if the calibration factor is positive, indicating the surface is influenced by the outdoors) or away (if the calibration factor is negative, indicating the surface is inversely correlated with the outdoor temperature).

From there, the sensor calculates the relative humidity near the given surface based on the dew point.

Calibration

The Mold Indicator sensor integration needs to be calibrated in order to estimate the temperature at the critical point from the outdoor and indoor temperature. First find the coldest surface in the room (critical point), which is typically near the window frames, but depends on the insulation of your home. For calibration you need to measure the temperature at this critical point and simultaneously write down the values for the indoor- and outdoor temperature sensors used for the Mold Indicator. Be sure that there is a significant indoor to outdoor temperature difference to get the best calibration results.

With the three measured temperatures (in Celsius or Fahrenheit), the calibration_factor for your configuration file is given by:

calibration_factor = (temp_indoor - temp_outdoor) / (temp_criticalpoint - temp_outdoor)