-
Notifications
You must be signed in to change notification settings - Fork 19
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
"Weather" element showing "Condition not observed" in card title #4
Comments
Do you know what station you're using? This value is returned if the station hasn't reported a condition, e.g. https://weather.gc.ca/city/pages/nu-24_metric_e.html. It could be that the default closest station doesn't report full data. You can override the automatic selection using the |
I'm using custom defined station as per your instructions. However, does it make sense to remove "Not observed" as that has no value whatsoever? Could be a simple enough rule to filter that out? |
I suppose I could just set it as If you’re using a station with no observations, are you using the weather component only for the forecast aspect? |
Weather component for the forecast and Sensor for details of the current conditions. And no, seems that my station doesn't support "conditions". So, if there is a way to not display that label - that'd be one way to go. |
I was about to open a bug for Home Assistant for this very issue... I'll add my comment here instead. It looks like a lot of stations do not take observations at all... including the one closest to me. Markham, Ontario (i.e. https://weather.gc.ca/city/pages/on-85_metric_e.html) My suggestion is if possible, when "Condition not observed" is the data, it might be nicer to use the value from the hourly forecast instead -- i.e. https://weather.gc.ca/forecast/hourly/on-85_metric_e.html |
That's a great idea, I should be able to work that in without too much trouble. Thanks! |
Here's the Xpath query to get the first hourlyForecast element:
And for the condition we care about:
|
Thanks, but it's even easier; the |
Eh? Did you push the commit? I don't see it in the repo. |
Commit: michaeldavie/home-assistant@93f9be3 To be merged as part of this PR: home-assistant/core#24884 |
Thanks, I noticed this issue as well. The forecasts weren't being updated correctly, so I've fixed this in 0.0.25. I just opened a PR to merge this change into Home Assistant, and hopefully it'll make it into 0.99. |
Not sure why that caption is there and what to do to fix that. Don't see any details on that in the docs.
The text was updated successfully, but these errors were encountered: