Hello everyone, I’m currently tinkering with the mould sensor and I’m not really getting anywhere. My configuration currently looks like this:
#######################################################################################################################################
#
# Dachflächenfenster - "Kalibrierungsfaktor Bad":
# temp_indoor = sensor.0x00158d0004069a3f_temperature = Badtemperatur
# temp_outdoor = sensor.niederschlagssensor_device_temperature = Dachtemperatur
# temp_criticalpoint = sensor.0x00158d000251ea28_device_temperature = Fenstertemperatur
#
#######################################################################################################################################
- platform: template
sensors:
calibration_factor_bathroom:
friendly_name: "Kalibrierungsfaktor Bad"
value_template: "{{ (states('sensor.0x00158d0004069a3f_temperature') | float - states('sensor.niederschlagssensor_device_temperature') | float) / (states('sensor.0x00158d000251ea28_device_temperature') | float - states('sensor.niederschlagssensor_device_temperature') | float) }}"
- platform: mold_indicator
name: Schimmelsensor Bad
indoor_temp_sensor: sensor.0x00158d0004069a3f_temperature
indoor_humidity_sensor: sensor.0x00158d0004069a3f_humidity
outdoor_temp_sensor: sensor.0x00158d000238a37c_temperature
calibration_factor: sensor.calibration_factor_bathroom
My idea was to calculate the calibration factor for the sensor dynamically, as the conditions are constantly changing:
Mold Indicator - Home Assistant → calibration factor
calibration_factor = (temp_indoor - temp_outdoor) / (temp_criticalpoint - temp_outdoor)
I have the problem that the mould sensor expects the calibration factor as float and does not accept a template. Somehow I don’t understand how this is supposed to work - surely the calibration factor is constantly changing?
How did you solve this?