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

UndefinedError: 'dict object' has no attribute 'precipitation_probability' #1

Open
valsily opened this issue Dec 29, 2024 · 0 comments

Comments

@valsily
Copy link

valsily commented Dec 29, 2024

With:

Core 2024.12.5 Supervisor 2024.12.0 Operating System 14.1 Frontend 20241127.8

This following line in eink_dashboard_sensor.yaml

{{ hourly['weather.forecast_home'].forecast[0].precipitation_probability | round }}%

triggers the following error in the system log

Logger: homeassistant.helpers.sensor
Source: helpers/trigger_template_entity.py:204
First occurred: 11:45:00 AM (1 occurrences)
Last logged: 11:45:00 AM

Error rendering state template for sensor.eink_sensors: UndefinedError: 'dict object' has no attribute 'precipitation_probability'

Changing it to the following fixes the error:

{{ hourly['weather.forecast_home'].forecast[0].precipitation | round }}%

I am using Meteorologisk institutt (Met.no)

Thanks for this project.

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

1 participant