#HA Voice Preview Edition and weather forecasts

1 messages · Page 1 of 1 (latest)

ripe root
#

Still very new to HA. I’ve got my HA Pi server setup, and installed HA Voice PE, which is working great! Now…how can I get it to tell me today’s weather, as well as a weather forecast?

wheat elk
fickle plaza
#

Yes, you can if you have weather exposed to Assist

ripe root
snow sierra
#

"What's the weather like"

ripe root
wheat elk
#

It is currently {{ states('weather.forecast_home') }} with a temperature of {{ state_attr('weather.forecast_home', 'temperature')|round() }}° and a humidity of {{ state_attr('weather.forecast_home', 'humidity') }}%

The forecast for today is {{ forecast.condition }} with a high temperature of {{ forecast.temperature|round() }}° and a low of {{ forecast.templow|round() }}°. ```

```{% set forecast = forecast_data['weather.forecast_home'].forecast[1] %} 
The forecast for tomorrow is {{ forecast.condition }} with a high temperature of {{ forecast.temperature|round() }}° and a low of {{ forecast.templow|round() }}°. ```
#

there is some examples from my automations.

snow sierra
#

Yeah for me I just wrote a simple script to grab the weather data, then let an LLM summarize it for me 😁

ripe root
#

should also mention, I'm using on-device processing, no HA Cloud (yet) 😁

ripe root
wheat elk
#

something like that, i remember playing with it a bit and it started working so i left it at that 😛

ripe root
#

sweet, thanks again. this should help a lot

ripe root
wheat elk
#

lol, might have to play with that a bit to get it to work. or you could just drop the humidity part too. depends if that matters to you

ripe root
#

I also wrote that wrong. 🤦‍♂️

#

I meant precipitation, not humidity. Humidity is correct!

ripe root
#

hmmmm. it's using forecast.precipitation_probability ; should it be using something else? 🤔

wheat elk
#

in dev tools go to states and look up your weather/forcast entities and you can see which attributes they have

ripe root
#

Thanks! I think that explains it, looks like weather.forecast_home doesn't have the above attribute 😦

wheat elk
#

there might be be other weather integrations that have more info for your location that you could get and then reference. can investigate if you want more info.
hopefully you have the knowledge to put the pieces together now though 🙂

ripe root
#

that's the plan! thank you again so much for your help 👍

#

I'm very new at this, every little piece helps

wheat elk
#

no worries
just remember: don't panic about trying to do too much too soon
enjoy the small wins and they will turn into big wins

ripe root
#

exactly my plan. phase 1 was getting voice assistant PE to work. phase 2: weather (99% of the way there!)

#

phase 3: spotify 😱

wheat elk
#

add spotify as a source and your speakers at outputs and magic happens

ripe root
#

I did that. phase 3 is getting PE to play spotify tracks when I ask it. that's the hard part