Just FYI, yes this would be great. The keyword is “Should”, that is all good in theory, but not in practice.
My weather integration does not give simple things like “chance of rain today” as an entity - It would be great if it did! Sure.
But I have to dig down into the Attributes (array of forecasts) to get that data, as do many others. So your statement of “Should be simple” doesn’t track to our real world experiences.
And to be honest, simply accessing the attributes was super easy - this is one of the few HA changes that makes things much much harder and more complicated than they were before. (I just had a single line in my TTS yaml that read out todays chance of rain, for example)
FYI I use Tomorrow.io and not Accuweather because…Accuweather is funnily enough not very accurate where I live - Tomorow.io gives much more sane and accurate weather reports - but there are essentially no entities with such data - its all in the Forecast attribute.
Appreciate your volunteer help to the community. I understand this is super easy for you. It’s just worth noting that many don’t have you level of experience and knowledge in this field. There are no doubt things in life that I find super easy, that you would struggle with, and I might struggle to comprehend why those things are a struggle for you, when they are so easy for me… It is worth remembering the opposite is also true.
I will state this upgrade has one of the few HA upgrades that makes things far more complex and time consuming, than it used to be.
That is a complement - it means most of the upgrades improve things
There were system-stability reasons behind this decision. Mainly the state machine that HA uses is already large and has to be sent to client(s) quite often. To get the state machine into a maintainable state, some things have had to be removed. Given the huge amount of entities that have to be stored in the state machine, the developers are looking for as many things as they can to remove to keep the system stable.
There might have been easier/better ways to do it and we might see those in future versions. I know that this was decided a long time ago (and had a deprecation notice associated with it for at least 6 months). So, I mean, there was time to get it done. But I get where you are coming from.
hi, I used this code before, now I can’t understand how to create a sensor that tells me tomorrow’s minimum temperature.
I created this by looking at your examples but I don’t see the sensor.
what am I doing wrong?
Thank you
I just wasted a couple of hours also trying to figure out why many examples around don’t work. I realise though this is the problem with breaking changes, that the plethora of ‘helpful’ examples on the internet no longer work and you’re left wondering why as a beginner.
Got it working now though with template.yaml using OpenWeatherMap!
I need some assistance getting todays and tonight’s weather forecast for NWS integration . I have set up a template sensor and it is populating the sensor with data. The issue I am having is that it seems to be pulling stale data. As you can see from the results, even though this was pulled today (4/29) the first forecast is from 4/27 instead.
weather.galveston:
forecast:
- detailed_description: >-
Partly sunny, with a high near 78. Southeast wind around 25 mph, with
gusts as high as 40 mph.
datetime: "2024-04-27T14:00:00-05:00"
precipitation_probability: 0
is_daytime: true
condition: windy-variant
wind_bearing: 135
temperature: 78
dew_point: 73
wind_speed: 25
humidity: 87
- detailed_description: >-
Mostly cloudy, with a low around 74. Southeast wind 25 to 30 mph, with
gusts as high as 40 mph.
datetime: "2024-04-27T18:00:00-05:00"
precipitation_probability: 0
is_daytime: false
condition: windy-variant
wind_bearing: 135
temperature: 74
dew_point: 73
wind_speed: 27.5
humidity: 90
- detailed_description: >-
A chance of showers and thunderstorms after 1pm. Mostly cloudy, with a
high near 77. Southeast wind 15 to 25 mph, with gusts as high as 40 mph.
Chance of precipitation is 30%. New rainfall amounts less than a tenth
of an inch possible.
datetime: "2024-04-28T06:00:00-05:00"
precipitation_probability: 30
is_daytime: true
condition: lightning-rainy
wind_bearing: 135
temperature: 77
dew_point: 74
wind_speed: 20
humidity: 91
- detailed_description: >-
A chance of showers and thunderstorms. Mostly cloudy, with a low around
73. Southeast wind 15 to 20 mph, with gusts as high as 30 mph. Chance of
precipitation is 40%.
datetime: "2024-04-28T18:00:00-05:00"
precipitation_probability: 40
is_daytime: false
condition: lightning-rainy
wind_bearing: 135
temperature: 73
dew_point: 73
wind_speed: 17.5
humidity: 94
- detailed_description: >-
A chance of showers and thunderstorms. Partly sunny, with a high near
78. South wind 10 to 15 mph, with gusts as high as 25 mph. Chance of
precipitation is 50%.
datetime: "2024-04-29T06:00:00-05:00"
precipitation_probability: 50
is_daytime: true
condition: lightning-rainy
wind_bearing: 180
temperature: 78
dew_point: 74
wind_speed: 12.5
humidity: 94
- detailed_description: >-
A chance of showers and thunderstorms. Mostly cloudy, with a low around
74. Chance of precipitation is 50%.
datetime: "2024-04-29T18:00:00-05:00"
precipitation_probability: 50
is_daytime: false
condition: lightning-rainy
wind_bearing: 135
temperature: 74
dew_point: 73
wind_speed: 15
humidity: 94
- detailed_description: >-
A chance of showers and thunderstorms. Partly sunny, with a high near
79. Chance of precipitation is 40%.
datetime: "2024-04-30T06:00:00-05:00"
precipitation_probability: 40
is_daytime: true
condition: lightning-rainy
wind_bearing: 135
temperature: 79
dew_point: 73
wind_speed: 15
humidity: 92
- detailed_description: >-
A chance of showers and thunderstorms before 7pm. Mostly cloudy, with a
low around 75. Chance of precipitation is 40%.
datetime: "2024-04-30T18:00:00-05:00"
precipitation_probability: 40
is_daytime: false
condition: lightning-rainy
wind_bearing: 135
temperature: 75
dew_point: 73
wind_speed: 15
humidity: 91
- detailed_description: Partly sunny, with a high near 79.
datetime: "2024-05-01T06:00:00-05:00"
precipitation_probability: 0
is_daytime: true
condition: cloudy
wind_bearing: 135
temperature: 79
dew_point: 73
wind_speed: 15
humidity: 91
- detailed_description: Mostly cloudy, with a low around 75.
datetime: "2024-05-01T18:00:00-05:00"
precipitation_probability: 0
is_daytime: false
condition: cloudy
wind_bearing: 135
temperature: 75
dew_point: 73
wind_speed: 17.5
humidity: 92
- detailed_description: >-
A slight chance of showers and thunderstorms after 1pm. Partly sunny,
with a high near 79. Chance of precipitation is 20%.
datetime: "2024-05-02T06:00:00-05:00"
precipitation_probability: 20
is_daytime: true
condition: lightning-rainy
wind_bearing: 135
temperature: 79
dew_point: 73
wind_speed: 17.5
humidity: 94
- detailed_description: >-
A slight chance of showers and thunderstorms. Mostly cloudy, with a low
around 75. Chance of precipitation is 20%.
datetime: "2024-05-02T18:00:00-05:00"
precipitation_probability: 20
is_daytime: false
condition: lightning-rainy
wind_bearing: 135
temperature: 75
dew_point: 73
wind_speed: 15
humidity: 92
- detailed_description: >-
A slight chance of showers and thunderstorms. Partly sunny, with a high
near 79. Chance of precipitation is 20%.
datetime: "2024-05-03T06:00:00-05:00"
precipitation_probability: 20
is_daytime: true
condition: lightning-rainy
wind_bearing: 135
temperature: 79
dew_point: 72
wind_speed: 15
humidity: 90
- detailed_description: >-
A slight chance of showers and thunderstorms before 7pm. Mostly cloudy,
with a low around 72. Chance of precipitation is 20%.
datetime: "2024-05-03T18:00:00-05:00"
precipitation_probability: 20
is_daytime: false
condition: lightning-rainy
wind_bearing: 90
temperature: 72
dew_point: 72
wind_speed: 10
humidity: 91
This is the template I use for my briefing which used to update for day and night, but now is stuck with data from the 27th.
I just updated to 2024.4 and I immediately got an error describing the deprecated forecast mentioned in the breaking changes. (overlooked it before updating).
At this point I can’t get my forecasts working again which is a bummer.
Well another fun stop on this continuing saga of ridiculousness.
No matter how I do it none of these templates pull the number in as a number. So I can’t have anything use it as a number. The float and is_number tests always fail.
I really hope the devs responsible for removing such a vital function with no similarly easy replacement read this large thread of frustrations. It should not be this hard to pull a daily temperature and test it against something. I’ve been able to do this for years with home assistant and now automations are broken. I can’t remember anything being this frustratingly difficult with home assistant before and I have been templating and using yaml since the early days.