#Weather forecast with ChatGPT

1 messages · Page 1 of 1 (latest)

candid granite
#

well, no point in repeating what the bot converted.
Basically - i want to get the Assistant to give me the weather forecast.
That's one of the most important features to improve the wife-acceptance-factor and continue to the goal of replacing Alexa.

willow needle
candid granite
#

hmmm i am not aware that i have a custom intent_script at all.

#

and i would be surprised, if that would be the case because i usually name files ASCII-conform

#

yes, just confirmed - assuming there is not any automagic anywhere i dont have any custom intent_script. The above text is made in the GUI.

jagged leaf
#

@candid granite just to confirm, you're using HA's voice control feature to try to interact with the Open-Meteo integration, and the only setup information you included is those lines above?

#

Is there any additional logging information available? It kind of seems like the request intended for the Open-Metro API is being sent to OpenAI's API instead, but I can't confirm with the available info.

candid granite
candid granite
#
Logger: homeassistant.helpers.intent
Quelle: helpers/intent.py:1019
Erstmals aufgetreten: 15:29:51 (2 Vorkommnisse)
Zuletzt protokolliert: 15:30:28

Service call failed for weather.home_2
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 1019, in async_handle_states
    await service_coro
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 631, in _wait_for_one
    return f.result()  # May raise f.exception().
           ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/intent/__init__.py", line 207, in async_call_service
    raise intent.IntentHandleError(
homeassistant.helpers.intent.IntentHandleError: Service turn_on does not support entity weather.home_2

lol ... Service "turn_on" ? wtf ?

#

i suspect, i have to add a custom intent after all.

jagged leaf
#

Have you tried any of the troubleshooting information, by the way? Based on the voice assistant weather docs, it seems like it might not support a lot of potential ways to phrase a weather query. Since I don't speak any German and haven't looked at Home Assistant's localization efforts, it's kind of hard to say

#

I assume you've gone through the voice troubleshooting docs that the weather portion of the voice assistant docs link to?

candid granite
#

actually, no, as i could not find it ? which docs are you referring to ?

candid granite
#

found it. now i have - it's not much, covering only the basics.

as i mentioned above, getting the information about the CURRENT weather is no problem.

#

the problem, if i would have to guess, is that the entity is not exposing the forecast itself.
instead there is a service (which i mention in the setup lines) that you can call.

i guess that is not possible? Calling a service from withing the assistant?
Instead i have to either create an entity that carries the information or create an intent.
ist that assumption correct ?

willow needle
#

I use an intent_script which gets exposed to the LLMs through the Assist API. The intent_script calls the weather.get_forecasts service and passes the result back to the LLM.

I have used the same script as is in this GitHub gist. You just need to modify the weather entity_id within the WeatherGetForecastDaily and WeatherGetForecastHourly intents.

https://gist.github.com/tronikos/d10b7bd04bd37cb839543470c5266e58

candid granite
#

i'll take a shot at it, thanks!