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

Bug No weather forecast when using the DWD (German weather service) #2450

Open
andreas-bulling opened this issue Dec 31, 2024 · 8 comments
Open
Labels
Bug Identifies an issue where the system is not functioning as expected. Page: weather Concerns specific to the page's interface or functionality.
Milestone

Comments

@andreas-bulling
Copy link

andreas-bulling commented Dec 31, 2024

TFT Version

4.3.12

Firmware Version

4.3.12

Blueprint Version

4.3.12

Panel Model

EU

What is the bug?

When using the popular DWD weather integration (German weather forecast - the prime forecast available here) there is no forecast.

https://github.com/hg1337/homeassistant-dwd

But the forecast data appears to be there - even hourly:

image

Steps to Reproduce

No response

Your Panel's YAML

Happy to provide additional information but so far I haven't seen anything unusual in the logs. :/

ESPHome Logs

No response

Home Assistant Logs

No response

@andreas-bulling andreas-bulling added the Bug Identifies an issue where the system is not functioning as expected. label Dec 31, 2024
@edwardtfn
Copy link
Collaborator

In your Home Assistant, could you please go to,Developer Tools, tab States, then filter by your weather entity and please.let me know what is displayed for both the column state but also the column attributes?
It's OK if you hide the sensitive info before sharing, I'm more interested in understand how the balões are provided than in the values itself. 😉

@edwardtfn edwardtfn added the Page: weather Concerns specific to the page's interface or functionality. label Dec 31, 2024
@andreas-bulling
Copy link
Author

No problem - there is no sensitive information in here as far as I can see. The station is a general one for Stuttgart

Is this what you are looking for?

image

@andreas-bulling
Copy link
Author

I found something in the HomeAssistant logs:

Error while executing automation automation.configure_panel_ground_floor: ValueError: Template error: float got invalid input 'None' when rendering template '{{ states(accuweather_sensor_prefix ~ "uv_index" ~ accuweather_sensor_sufix, rounded=true) | default("unknown") if accuweather else ( forecast_day | selectattr("uv_index", "defined") | rejectattr("uv_index", "eq", "") | map(attribute="uv_index") | map("float") | list | max | round(0) if forecast_day | selectattr("uv_index", "defined") | rejectattr("uv_index", "eq", "") | map(attribute="uv_index") | map("float") | list | count > 0 ) }}' but no default was specified

Configure Panel Ground Floor: Main choices: NSPanel event: Choose at step 2: Page changed: Choose at step 1: Weather pages: If at step 12: Error executing script. Error rendering template for if at pos 3: ValueError: Template error: float got invalid input 'None' when rendering template '{{ states(accuweather_sensor_prefix ~ "uv_index" ~ accuweather_sensor_sufix, rounded=true) | default("unknown") if accuweather else ( forecast_day | selectattr("uv_index", "defined") | rejectattr("uv_index", "eq", "") | map(attribute="uv_index") | map("float") | list | max | round(0) if forecast_day | selectattr("uv_index", "defined") | rejectattr("uv_index", "eq", "") | map(attribute="uv_index") | map("float") | list | count > 0 ) }}' but no default was specified
Configure Panel Ground Floor: Main choices: NSPanel event: Choose at step 2: Page changed: Choose at step 1: Weather pages: Error executing script. Error rendering template for if at pos 12: ValueError: Template error: float got invalid input 'None' when rendering template '{{ states(accuweather_sensor_prefix ~ "uv_index" ~ accuweather_sensor_sufix, rounded=true) | default("unknown") if accuweather else ( forecast_day | selectattr("uv_index", "defined") | rejectattr("uv_index", "eq", "") | map(attribute="uv_index") | map("float") | list | max | round(0) if forecast_day | selectattr("uv_index", "defined") | rejectattr("uv_index", "eq", "") | map(attribute="uv_index") | map("float") | list | count > 0 ) }}' but no default was specified
Configure Panel Ground Floor: Main choices: NSPanel event: Choose at step 2: Page changed: Error executing script. Error rendering template for choose at pos 1: ValueError: Template error: float got invalid input 'None' when rendering template '{{ states(accuweather_sensor_prefix ~ "uv_index" ~ accuweather_sensor_sufix, rounded=true) | default("unknown") if accuweather else ( forecast_day | selectattr("uv_index", "defined") | rejectattr("uv_index", "eq", "") | map(attribute="uv_index") | map("float") | list | max | round(0) if forecast_day | selectattr("uv_index", "defined") | rejectattr("uv_index", "eq", "") | map(attribute="uv_index") | map("float") | list | count > 0 ) }}' but no default was specified
Configure Panel Ground Floor: Main choices: NSPanel event: Error executing script. Error rendering template for choose at pos 2: ValueError: Template error: float got invalid input 'None' when rendering template '{{ states(accuweather_sensor_prefix ~ "uv_index" ~ accuweather_sensor_sufix, rounded=true) | default("unknown") if accuweather else ( forecast_day | selectattr("uv_index", "defined") | rejectattr("uv_index", "eq", "") | map(attribute="uv_index") | map("float") | list | max | round(0) if forecast_day | selectattr("uv_index", "defined") | rejectattr("uv_index", "eq", "") | map(attribute="uv_index") | map("float") | list | count > 0 ) }}' but no default was specified
Configure Panel Ground Floor: Error executing script. Error rendering template for choose at pos 3: ValueError: Template error: float got invalid input 'None' when rendering template '{{ states(accuweather_sensor_prefix ~ "uv_index" ~ accuweather_sensor_sufix, rounded=true) | default("unknown") if accuweather else ( forecast_day | selectattr("uv_index", "defined") | rejectattr("uv_index", "eq", "") | map(attribute="uv_index") | map("float") | list | max | round(0) if forecast_day | selectattr("uv_index", "defined") | rejectattr("uv_index", "eq", "") | map(attribute="uv_index") | map("float") | list | count > 0 ) }}' but no default was specified

@edwardtfn
Copy link
Collaborator

Great. This is what I need.
I'm not at home right now, but will jump at this as soon as possible.

@edwardtfn edwardtfn added this to the v4.4.0 milestone Dec 31, 2024
@andreas-bulling
Copy link
Author

andreas-bulling commented Jan 1, 2025

Suddenly it shows a forecast - but only for the next day. I didn't change anything - no idea why this is /(partly) working suddenly.

@andreas-bulling
Copy link
Author

@edwardtfn Any update on this if I may ask?

@andreas-bulling
Copy link
Author

Hi @edwardtfn - sorry to be a bit pushy but is there any update on this issue? It would be fantastic if DWD was supported - it's THE weather service people in Germany use. That is, adding support for it would potentially benefit a very large number of people. Thanks a lot!

@edwardtfn
Copy link
Collaborator

Unfortunately I've been totally out of time in the past weeks, but I will.look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Identifies an issue where the system is not functioning as expected. Page: weather Concerns specific to the page's interface or functionality.
Projects
None yet
Development

No branches or pull requests

2 participants