Troubleshooting¶
First steps¶
- Check the result of the last run: the sensor Last run of the briefing device shows the time and, as attributes, the result (generated, skipped, data block checked or error), duration and last error. The briefing sensor has the same
last_errorattribute. - Look at what the AI gets: enable the Prompt sensor and the Check data block button of the briefing (device page → entities → disabled entities → enable). Press Check data block and read the attributes
data_blockandpromptof the prompt sensor. After a real run,raw_responseshows the unmodified answer andshortened_responsethe answer of the shortening request. -
Enable debug logging, either with Enable debug logging on the integration page (disabling it downloads the log) or in
configuration.yaml:logger: logs: custom_components.ai_briefing: debugThen press Generate. The log shows whether a run was skipped, the full prompt and whether the answer had to be shortened. It contains personal data, see Privacy and costs.
-
Download diagnostics from the three-dot menu of the briefing device and attach it to a bug report.
Repairs¶
AI Briefing creates a notice under Settings → Repairs while no briefing can be generated because of the AI Task entity. The warning is logged once; the notice disappears after the next successful run.
| Notice | Cause | Fix |
|---|---|---|
AI Task entity not available (ai_task_unavailable) |
The chosen AI Task entity, or the default one, is missing or unavailable, e.g. because its integration failed to load or was removed. | Check the integration that provides the entity, or choose another one in the AI Briefing options or as default for data generation in the AI suggestions settings. |
No AI Task entity (ai_task_not_set) |
No entity is chosen in AI Briefing and Home Assistant has no default for data generation. | Choose an AI Task entity in the AI Briefing options or set a default in the AI suggestions settings. |
Common problems¶
"The AI Task did not answer within 120 seconds." The provider or model is too slow or not reachable. Local models in particular can take long on the first request after loading. Use a smaller or faster model, check the provider integration, then press Generate.
"The AI Task failed: …"
The AI Task integration reported an error, e.g. an invalid API key, an exhausted quota or a model that cannot generate data. The text after the colon comes from that integration; try the same entity under Developer tools → Actions with ai_task.generate_data.
"The AI Task returned an empty answer."
The model answered with nothing usable, or only with quotes or a code block. Check raw_response of the prompt sensor, try another model or simplify the prompt.
The text is cut off or truncated is true.
The answer was longer than the maximum length even after the shortening request, so it was cut at a sentence end. Raise the maximum length of the briefing, reduce the number of entities, or make the length rule in the prompt stricter. Small models often ignore length limits.
The state ends with "…".
The state shows only the first 250 characters. Use the markdown attribute for the full text.
The text does not change. Runs are skipped while nothing changed; Last run then shows "Skipped, no change". Changes of the configuration are picked up at the next scheduled run. Press Generate to call the AI right away.
The text changes too often or costs too much. An entity with a constantly changing state forces a new call on almost every run. Check the data block for such values and see Privacy and costs.
The action fails with "No briefing found for this target."
The target of ai_briefing.generate contains no entity or device of AI Briefing. Check the entity IDs; with a German system language they are German, see Entities.
The AI invents or mixes up facts. Check the data block first: clear display names ("Linda's work" instead of "Calendar 2") help the AI more than prompt rules. The default prompt forbids inventing facts, but no model is perfect.
"Unexpected error: …" This is a bug. Please open a bug report with diagnostics and the debug log.