Hi everyone!
Apologies if this has already been talked about, but I haven't found any existing posts or bug reports.
I've been using HA for a while now, but am relatively new to LLMs and the voice and chat components.
I'm trying to use Voice Assistant with Ollama and I've set up the Ollama integration and a pipeline, but the prompt (https://github.com/home-assistant/core/blob/dev/homeassistant/helpers/llm.py#L76) that I was expecting the Ollama server to receive doesn't seem to come through.
I've exposed a handful of entities, but even if I hadn't I would expect more of a preamble in the prompt. As it is, the LLM is unable to answer any question about entity states, when tutorials generally show it working out of the box.
This is what the Ollama server receives:
Oct 31 13:52:39 ollama-01v ollama[149]: time=2025-10-31T13:52:39.848Z level=DEBUG source=routes.go:1417 msg="chat request" images=0 prompt="<|start_header_id|>system<|end_header_id|>\n\nCutting Knowledge Date: December 2023\n\nYou are a voice assistant for Home Assistant.\nAnswer questions about the world truthfully.\nAnswer in plain text. Keep it simple and to the point.\nCurrent time is 13:52:39. Today's date is 2025-10-31.<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nSummarise my smart home<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n"
And the reply I get is:
I don't have any information about your specific smart home setup. I'm a new instance, I don't retain data from previous conversations. Can you please tell me what devices and services are part of your smart home?
This is including the instructions I configured in the Ollama integration, but is missing all of the HomeAssistant magic that (I assume!) should also be there. Except for "Current time is" and "Today's date is". Or am I misunderstanding how Ollama should be receiving data about the state of all my entities?
HA version: 2025.10.4
Is anyone able to advise me?
Many thanks,
- Joe