Just curious about the sentance trigger

I’m not trying to solve a specific problem but…

There is no mention of the sentance trigger in the following document:

Trigger data

Is there a way to see what the trigger object holds for a sentance trigger?

Yeah, test it. I set up this automation:

trigger:
  - platform: conversation
    command: hello world
condition: []
action:
  - delay:
      minutes: 1

typed “hello world” into the assist box, opened the automation trace and found this:

this:
  entity_id: automation.sentence_test
  state: 'on'
  attributes:
    id: '1689946311568'
    last_triggered: null
    mode: single
    current: 0
    friendly_name: Sentence test
  last_changed: '2023-07-21T13:32:00.865726+00:00'
  last_updated: '2023-07-21T13:32:00.865726+00:00'
  context:
    id: 01H5WACVZ1C4QKJ9PHK7GK9BPQ
    parent_id: null
    user_id: null
trigger:
  id: '0'
  idx: '0'
  alias: null
  platform: conversation
  sentence: hello world
1 Like

Does it take null commands, so we could do something like this?

trigger:
  - platform: conversation
    command: {}
action:
  - choose:
      - conditions:
          - "{{ 'run the secret test' in trigger.sentence }}"
        sequence:
          - service: etc...
      - conditions:
          - "{{ 'code blue' in trigger.sentence }}"
        sequence:
          - service: etc...
      - conditions:
          - "{{ 'do you want to play a game' in trigger.sentence }}"
        sequence:
          - service: etc...

You can test that yourself :smiley: . However, this does the same thing:

That does not work unfortunately.
I wanted to work with wildcards myself, like I have requested here.
Unfortunately that’s also not possible yet.
Assist is quite limited for more creative usecases currently.

Thanks, @tom_l . At least I learnt that the value of trigger.sentence is the actual sentance passed to assist rather than the template sentence in the automation template.