Skip to content

Entities and actions

Entities

Per briefing, e.g. "Bedroom" (IDs for an English system language):

Entity Content
sensor.ai_briefing_bedroom the first 250 characters as state (quick info), the full text is in the attributes markdown and plain_text
button.ai_briefing_bedroom_generate generates the briefing immediately, even without changes
sensor.ai_briefing_bedroom_last_run diagnostic: time of the last run; result (generated / skipped / data block checked / error), duration, tokens and last error as attributes
sensor.ai_briefing_bedroom_prompt diagnostic, disabled by default: character count of the prompt; data block, prompt, raw response, shortened response and raw data as attributes
button.ai_briefing_bedroom_check_data_block diagnostic, disabled by default: builds data block and prompt without calling the AI

The entity IDs are created from the device name "AI Briefing Bedroom" and the entity names in the system language at the time the briefing is added. With a German system language they are, for example, sensor.ai_briefing_schlafzimmer and button.ai_briefing_schlafzimmer_erzeugen. You can rename them in the entity settings; the examples on this site use the English IDs.

The two disabled diagnostic entities can be enabled in the entity settings when needed.

Device page of a briefing Device page of a briefing

Attributes of the briefing sensor:

Attribute Content
markdown the full text with heading, bold values and emojis, use it in Markdown cards
plain_text the full text without Markdown syntax or emojis, ready for TTS speech output and push notifications
generated_at time the text was generated (ISO 8601)
char_count length of the text
truncated true if the text had to be cut at a sentence end, see Prompt
addressed names of the persons addressed directly
token_usage token usage of the AI call, if the AI Task integration reports it, see Privacy and costs
last_error reason of the last failed run, otherwise empty
data_hash fingerprint of the data used to detect changes

markdown, plain_text and data_hash as well as the long attributes of the prompt sensor are not stored in the recorder. After a restart the last text is restored without calling the AI.

Action ai_briefing.generate

Generates the targeted briefings now, even if nothing changed, and returns the result. Target briefings by any of their entities or by their device; without a target, all briefings are generated.

action: ai_briefing.generate
target:
  entity_id: sensor.ai_briefing_bedroom
response_variable: briefing

Response:

briefings:
  - name: Bedroom
    text: |-
      # Good morning, Linda and Joachim ☀️

      Linda has **2 appointments** starting at **9 am**, …
    plain_text: Good morning, Linda and Joachim. Linda has 2 appointments starting at 9 am, …
    generated_at: "2026-12-01T07:00:00+01:00"
    truncated: false
    addressed:
      - Linda
      - Joachim
    error: null
text: |-
  # Good morning, Linda and Joachim ☀️

  Linda has **2 appointments** starting at **9 am**, …
plain_text: Good morning, Linda and Joachim. Linda has 2 appointments starting at 9 am, …
  • briefings contains one entry per targeted briefing.
  • Top-level text and plain_text are only present if exactly one briefing was targeted. Use {{ briefing.text }} (with Markdown) or {{ briefing.plain_text }} (without Markdown or emojis, e.g. for tts.speak).
  • If a briefing fails, the reason is in its error field, its text is the previous text (if any) and the others are still generated. The action itself only fails if no briefing could be generated, e.g. because the AI Task entity is unavailable.

Diagnostics

Download diagnostics in the three-dot menu of a briefing device (or of the integration entry for all briefings) provides a JSON file with configuration, raw data, result, duration and last error. It also names the chosen and the actually used AI Task entity. What is redacted is described in Privacy and costs.

Errors

If a run fails, the previous text stays and last_error names the reason. If the AI does not answer within 120 seconds, the run is aborted. If the AI Task entity is missing or unavailable, or if none is chosen and no default is set, a warning appears once in the log and a notice under Settings → Repairs. Causes and fixes are listed in Troubleshooting.