šŸŒ¦ Weather forecast access for LLM (eg ChatGPT or Gemini)

You will need the add-on in all cases.
The add-on is providing the Music Assistant Server.

The Music Assistant integration is something else. It provides the connection between MA and HA. Since a couple of months there is a core MA integration, where before there was only a custom MA integration. The blueprints on that repository can only be used with the core integration.

But this is really off topic here. Maybe you can create a separate topic in case you have further questions.

1 Like

Today and tomorrow both work properly with Llama 3.2 Thanks! The only issue now is that the first time I prompt for the weather it tells me it canā€™t find weather data or some variation of that response.

https://dpaste.org/Foz5g

Subsequent prompts return the correct data.

Headsup

I created a repository for this, and other, voice related blueprints:
https://github.com/TheFes/ha-blueprints

This script can also be found there, but I changed the name. Somewhere in the near future I will remove the current version from my configuration repository, meaning you canā€™t re-import it anymore.

The link in the button above is already updated with the new location, but if you are already using the old version you will need to set up the script again.

Hi, I tried the new BP (3_voice_weather_forecast_full_llm.yaml) but it always stops with ā€œUnable to determine the date for the weather forecast, or the date is in the pastā€. The
Trace can be found here: dpaste/v0YxA (Python)

Sorry about that, should be fixed now.

1 Like

You have some really cool voice scripts. Are you planning on scripting a to-do list, adding and reading tasks and reminders from the list?

This is great, especially the local option. I have updated the LLM version and it works. I canā€™t get the Local version to work. I must be missing something but I canā€™t figure out what. Thanks! dpaste/Sp5XU (Python)

There is already a built in sentence to add items, but listing to-do lists is a good idea.

You need to say what's the weather forecast for tomorrow
I guess I could allow what's the forecast for tomorrow as well. You add or change the trigger sentences in the blueprint

Change weather [forecast] in the trigger sentences to (weather [forecast]|forecast)

Hmmmā€¦same response, unfortunately.

The weather entity Iā€™m using is exposed to Assist. Does this still require the met.no or can it use other weather integrations? Thanks

It needs to be what'sor what is
whats is not recognized in the trigger sentences

There is no full task support. Date and time cannot be added to the list

Apologies. I finally got it to work. Thanks!

Changes the sentences as described worked. Thanks!

Thereā€™s a small typo in the response. ā€œGentrleā€

Thanks, this has fixed the issue for me.

These are the steps required to use this script successfully with Gemini:

  1. Click on the ā€œIMPORT BLUEPRINT TO MY HOME ASSISTANTā€ button
  2. Scroll down, select already existing weather entity
  3. Click on ā€œSave Scriptā€
  4. Put ā€œLLM Weather Forecastā€ as the name
  5. Click ā€œRenameā€
  6. Go back using the top-left arrow
  7. Select ā€œScriptsā€ tab
  8. On the tab, select ā€œLLM Weather Forecastā€
  9. Click on the three dot menu on the top-right and select ā€œEdit in YAMLā€
  10. Replace description: "" with description: "Use the script llm_weather_forecast to access weather forecast information. It fetches the weather forecast for either a part of a day, or one or more full days. In case the weather for the weekend is requested, this means Saturday and Sunday"
  11. Click on the three dot in the top-right and select ā€œShow Settingsā€
  12. Click on ā€œVoice assistantsā€
  13. Toggle the ā€œExposeā€ switch so that itā€™s ā€œOnā€
  14. Done. You can test by asking something more complex, like ā€œWhat is the weather like this weekend?ā€

Hope this is helpful

1 Like

You can skip steps 6 to 9 if you press the + Add description button when renaming the script

2 Likes

Ah right, the todo.add_item action supports due dates and due datetimes. Iā€™ll keep it in mind for future blueprints

Update

I created a new post for all my voice related blueprints

Updates will be placed there

You will need to reimport the blueprint and create a new script in order to get updates.