Privacy and costs¶
What is sent to the AI¶
AI Briefing itself does not contact any external service. For each generated briefing it passes one prompt to the AI Task entity you chose, and that entity's integration sends it to its provider. The prompt consists of:
- the global prompt and the device prompt of the briefing,
- the data block: date, time and part of the day, the maximum length, and the display names of the persons of the briefing,
- for each selected entity:
- calendars: the display name of the calendar and up to 8 appointments with time, title and location (descriptions are not sent),
- weather: condition, temperatures and precipitation,
- to-do lists: up to 10 open items with their due date,
- any other entity: display name, state, unit and up to 6 short attributes. Coordinates, IDs, pictures and texts over 60 characters are skipped.
Nothing else is read: entities you did not select are never sent, and the persons of a briefing only contribute their display name (unless you also select a person entity as an entity, then its state such as home is sent). The prompt sensor and the Check data block button show exactly what would be sent, without calling the AI (see Entities).
Where it goes¶
- With a cloud provider (e.g. OpenAI, Google Gemini, Anthropic) the prompt leaves your network and is processed and possibly stored under the provider's terms.
- With a local model, e.g. via the Ollama integration, it stays in your network. Local models need suitable hardware; small models follow length and addressing rules less reliably, and slow ones can hit the 120 second timeout.
Recommendations:
- Only select entities whose data you are comfortable sharing with the provider.
- Calendars and to-do lists often contain the most personal text. A separate calendar for the briefing, or a local model, keeps the rest private.
- Display names are sent as well. "Linda's phone battery" is fine, a name containing an address is not.
Diagnostics and logs¶
Download diagnostics redacts:
- appointment titles and locations, to-do items and the notes on shared appointments,
- the lists of addressed and other persons,
- the global and device prompt, the data block, the prompt and the raw, shortened and final text (
markdownandplain_text).
Still visible are the configuration (entity IDs such as person.linda or calendar.linda_work, names of the briefings), display names of persons and entities in the raw data, states and attributes of other entities, results, timings, errors and the AI Task entity. Review the file before attaching it to a public issue.
The debug log and the attributes of the prompt sensor contain the full, unredacted prompt. The prompt sensor's long attributes are not stored in the recorder, but every user of your Home Assistant can see them while the sensor is enabled.
Costs and tokens¶
Number of calls:
- Each generated briefing is one AI call. If the answer is longer than the maximum length, a second call asks for a shorter version.
- Scheduled runs skip the call if the data, the date, the part of the day, the prompt and the AI Task entity are unchanged and the last run succeeded. The interval is therefore an upper limit:
| Interval | Scheduled runs per day and briefing |
|---|---|
| every 30 minutes | 48 |
| hourly | 24 |
| every 2 / 4 / 6 / 12 hours | 12 / 6 / 4 / 2 |
| daily | 1 |
- The Generate button, the action
ai_briefing.generateand automations that use it always call the AI. - Every value in the data block counts as a change. Numbers are rounded to one decimal place and the current temperature to whole degrees, but an entity whose state changes all the time (e.g. power consumption) causes a call on almost every run. Prefer slowly changing entities or a longer interval.
Size of a call: the default global prompt and default device prompt together have nearly 2,000 characters, a data block typically a few hundred to about 2,000 characters. The state of the prompt sensor shows the actual character count; as a rule of thumb one token is about 4 characters of English text. The answer is limited by the maximum length, about 75 to 100 tokens for 300 characters. What this costs depends on the model; a local model has no API costs.
token_usage: the attribute shows the token counts of the first call, if the AI Task integration includes them in its response. Many integrations do not, then it is empty. The usage page of your provider shows the exact numbers.