Thanks for all of the amazing work on this. I think I am almost there, but it isn’t recognizing my location. I am using a script based on the stock blueprint and am feeding it an openweather integration. Currently using llama3.1, but I have tried others. I have the script exposed and have given it a couple of aliases that I am using to trigger.
Any thoughts on the location thing?
I should add I’m trying to do this using Home Assistant Voice Preview if that matters.
@WrongHole Hi, the location thing is probably Ollama trying to imagine a reason why it is failing. Can you upload a full trace of the script to https://dpaste.org
@ckhyatt The LLM provided hourly as type, and this resulted in the forecast period being in the past (1 hour, from 00:00 to 01:00).
The weather forecast action doesn’t provide forecasts for periods completely in the past.
Ah, got it. Amusingly, if i ask twice in a row i get two different responses. One slightly more verbose than the other. It understand tomorrow, at any rate.
note that for daily forecast, my weather forecast are simple YYYY-MM-DD /ex: “2025-01-26”.
to fix this I have revisited below test, the other way around for date & time conversion:
from:
{% if start | as_datetime <= item.datetime | as_datetime < end | as_datetime %}
...
{% endif %}
to
{% if start <= item.datetime | as_timestamp | timestamp_local < end %}
...
{% endif %}
FYI: I’m using the Google generative AI as LLM. It alwas responded that it did not have access to weather data. I then changed the prompt so that it includes the script name that should be used. Bingo it now works.
example in German:
Verwende das script llm_weather_forecasts um Wetterdaten zu erhalten.
Thanks for this BP. It’s really great.
I realized on github that you also developed a blueprint to use LLM to control Music Assistant (LLM Script for Music Assitant voice requests). I tried to use it but it somehow cannot connect to Music Assistant. I also cannot select a default player. Is the BP supposed to be ready for general use?