Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mold indicator unavailable state #119707

Closed
matteo-martinelli opened this issue Jun 14, 2024 · 1 comment
Closed

Mold indicator unavailable state #119707

matteo-martinelli opened this issue Jun 14, 2024 · 1 comment

Comments

@matteo-martinelli
Copy link

matteo-martinelli commented Jun 14, 2024

The problem

I have implemented the mold indicator following the documentation. In the following, the YAML:

sensor:
  - platform: mold_indicator
    name: 'Living Room Mold Indicator'
    indoor_temp_sensor: sensor.living_room_hygrometer_temperature
    indoor_humidity_sensor: sensor.living_room_hygrometer_humidity
    outdoor_temp_sensor: sensor.outdoor_temperature
    calibration_factor: 2.0

To have a suitable sensor to expose to the field outdoor_temp_sensor, I have created the following template:

- template:
    - sensor:
        - name: 'Outdoor Temperature'
          unit_of_measurement: '°C'
          state: >-
            '{{ state_attr("weather.home_city_forecast_my_city", "temperature") | float(0)}}

The result is the following:

image

In particular, logs show the following message:

image

What version of Home Assistant Core has the issue?

core-2024.4.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Mold indicator

Link to integration documentation on our website

core-2024.4.4

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@elupus
Copy link
Contributor

elupus commented Jun 15, 2024

You have any extra quote (`) in your template string.

@elupus elupus closed this as completed Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants