First time asking for help here, so go gentle on me!
Trying to do something which I’d have thought would be super simple but having no luck at all. I’m trying to get the probability it will rain tomorrow (or otherwise) in order to inform wether to run an automated watering system or not.
I’ve modified a template from the official docs at Weather - Home Assistant (Example template sensor using get_forecasts) and come up with the following:
This continutes to report ‘unknown’ pretty much however I tweak it or change it, and I can’t really see anything wrong.
So questions 2 really:
what have I got wrong? if it’s glaringly obvious to anyone
how can I sensibly go about debugging this, is there an obvious place in the logs which will show when this template runs what data is being returned (or otherwise) in the ‘daily’ response variable or report what’s not working correctly.
Thanks for all your help, I’m still getting my head around a lot of this stuff.
Fairly sure that was just a typo when putting back the last thing I tried (which didn’t work) before copying into the forum, but will correct that now and check it.
As expected, that’s not made any difference (although as you say it definitely wouldn’t have worked like that) - any other ideas?
Hi all,
Same issue here.
I noticed that action weather.get_forecasts in general doesn’t have that field precipitation_probability despite the documentation.
Any changes recently?
Should it be visible if calling automation in GUI?
If I try to get some other values which are available in a GUI, such us temperature or humidity it does work. But not the precipitation_probability.
Also, another question. How to get maximum forecasted temperature daily? There is a templow which I can get. Does something similar exist for temphi?
Thx
It depends what your weather provider provides. If they don’t supply a probability, HA can’t invent one.
Also, it depends what your weather provider provides. You could create one from an hourly forecast. Using “Copy to clipboard (template)” on the Actions tab for my weather entity, to create a temphi equivalent from tomorrow’s forecast entries:
Hi Troon,
Indeed, it all depends on weather provider.
I was talking about Home Assistant default one: Meteorologisk institutt (Met.no)
So is it known that they stopped providing this data? Such as precipitation probability? Yesterday I created several custom sensors. All of them works but precipitation probability. So I suppose they stopped provided this info. Unless I’m doing something wrong.
What about max temperature, Thank you very much for your idea. I’ll check it out later today. So far I’m playing with various weather providers. Trying to find the one which has forecast data I need.
The HA integration appears not to reference that data field, so if met.no provide it, HA isn’t using it. That seems unlikely, so I suspect they’re not providing it.
If you don’t want to mess around with trying different providers blindly, the Accuweather integration provides all 3 reports in the forecast out of the box:
Note that the temperature in this case is the max temperature (as referenced in the docs in your first post), so you should be covered for all scenarios.
For the sake of learning new stuff. Would you have an idea why it won’t work from my templates.yaml like this?
So I created two actions, one hourly, one daily. Two variables to work with them.
First sensor, which simply show lowest temperature forecasted for today works.
Second sensor, however shows “unknown” state.
It literally suppose to do the same like in template editor. Take entire forecast by hours, filter only those records which has a datetime from now plus one day and then select only temperature attribute and then take max value of it.
And yet it says “unknown” state for the sensor.
How do you get those data? Out of the box I have a lot of sensors but not like those. For instance, a lot of sensors for real feel temperature but no templow.
Beyond that, I didn’t do anything special to get them in the forecast response. At most, if you still don’t see them after having switched, check the integration page that your sensors aren’t disabled (I had to disable around 80 sensors, because there was way too much data for what I needed).
Разобрался сам. Вот рабочий вариант.
Беру значения температур за сегодняшний день, а не за последние 24 часа.
Помогли логи Home Assistant. Где он собственно писал, что не так. Собственно главная проблема была он не мог string во float преобразовать
Do NOT call the get forecast service every minute! You will spam the provider API & get blocked, or worse, piss off the provider & cause issues for the entire HA community.
If you’re fetching hourly forecasts, calling the forecast service once an hour should be more than enough.