Intent:
Make a system calculated value available to the Mold Integration.
Issue:
It will not validate.
Background
The Mold Integration has a 'calibration factor" that is the result of a calculation. I don’t want to use a one time calculation for that factor and have created templates to calculate it based on current conditions. The template that is generating that factor is:
- platform: template
sensors:
mold_upstairs_bathroom_calibration_factor:
friendly_name: "Mold - Upstairs Bathroom Calibration Factor"
value_template: '{{ ((states("sensor.bw_upstairs_inside_air_temp") | float | round(2) - states("sensor.bw_outside_air_temperature") | float | round(2)) | round(2)) / ((states("sensor.lumi_lumi_weather_90e0ed07_temperature") | float | round(2) - states("sensor.bw_outside_air_temperature") | float | round(2)) | round(2)) }}'
The templates are producing a number:
However when I use that templated value in the configuration:
sensor:
- platform: mold_indicator
name: Mold - Upstairs Bathroom
indoor_temp_sensor: sensor.lumi_lumi_weather_90e0ed07_temperature
indoor_humidity_sensor: sensor.lumi_lumi_weather_90e0ed07_humidity
outdoor_temp_sensor: sensor.davis_vantage_pro_air_temp_outside
calibration_factor: {{(states("sensor.mold_upstairs_bathroom_calibration_factor") | float(0))}}
It will not pass the Configuration Validation:
What have I misformatted to make this work? Thanks in advance.