Get name or area of a voice assistant

This is the trigger data of a sentence trigger:

{
  "id": "0",
  "idx": "0",
  "alias": null,
  "platform": "conversation",
  "sentence": "show trigger data",
  "details": {},
  "slots": {},
  "device_id": "7f06893ef0ea09416ef752da3f68aebf",
  "user_input": {
    "text": "show trigger data",
    "context": {
      "id": "01JRSEPDNY3EM9RKPCRA9N2CN7",
      "parent_id": "01JRSEPDNX0PB6TABM8NK0GEYH",
      "user_id": null
    },
    "conversation_id": "01JRSEPMQPT82JZCE777331S2H",
    "device_id": "7f06893ef0ea09416ef752da3f68aebf",
    "language": "en",
    "agent_id": "conversation.home_assistant",
    "extra_system_prompt": null
  }
}

There is a device ID in there, but it’s hard to remember. Can I somehow fetch the name or area of the device so that I can use it as a condition in a Choose action?

{{ area_name(trigger.device_id) }}
{{ device_attr(trigger.device_id, 'name')}}

Just be aware that any Sentence trigger-based automation will fail in the text Conversation tool if you use such a basic option, since there is no device_id in that case.

The companion app also has a device ID, even in keyboard mode.

The web interface doesn’t, but I think I can live with that. The logged in user name would be nice maybe.