#HA Voice Preview Edition and weather forecasts
1 messages · Page 1 of 1 (latest)
assuming you already have a weather integration set up and just want the voice part:
have a look at this, i used it as an example when i was setting up mine to do this - https://www.juanmtech.com/home-assistant-voice-pe-first-look-and-setup/
i had to modify it a bit but it gives you a general idea
We’re diving into the new Home Assistant Voice Preview Edition—a new voice assistant that is not like any other.
Yes, you can if you have weather exposed to Assist
yep, I've got weather.forecast_home exposed to Assist. I just don't know how to phrase my questions, maybe?
"What's the weather like"
Perfect, I used the automation he recommended...but in place of temp and humidity, I'm just getting "null" 🤔
yeah i had to adjust the stuff it references to work
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.
Yeah for me I just wrote a simple script to grab the weather data, then let an LLM summarize it for me 😁
should also mention, I'm using on-device processing, no HA Cloud (yet) 😁
Thanks! is that just replacing weather.tomorrow_io_home_daily with weather.forecast_home ?
something like that, i remember playing with it a bit and it started working so i left it at that 😛
sweet, thanks again. this should help a lot
that actually did it! with one exception: forecasts have chance of humidity as "percent." Yes, the word, with no number before it 😆
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
I also wrote that wrong. 🤦♂️
I meant precipitation, not humidity. Humidity is correct!
hmmmm. it's using forecast.precipitation_probability ; should it be using something else? 🤔
in dev tools go to states and look up your weather/forcast entities and you can see which attributes they have
Thanks! I think that explains it, looks like weather.forecast_home doesn't have the above attribute 😦
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 🙂
that's the plan! thank you again so much for your help 👍
I'm very new at this, every little piece helps
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
exactly my plan. phase 1 was getting voice assistant PE to work. phase 2: weather (99% of the way there!)
phase 3: spotify 😱
look at music assistant addon+integration when you get there.
add spotify as a source and your speakers at outputs and magic happens
I did that. phase 3 is getting PE to play spotify tracks when I ask it. that's the hard part