Automation: on Android app -> TTS -> open Assist -> use response as action?

It’s just the last step that I cannot solve… :rage:
Searched, read a lot of topics but no luck.

  1. TTS
action:
  - service: notify.mobile_app_<device>
    data:
      message: TTS
      data:
        tts_text: <message>
  1. Open Assist
service: notify.mobile_app_<device>
data:
  message: command_activity
  data:
    intent_package_name: io.homeassistant.companion.android.(minimal)
    intent_action: android.intent.action.ASSIST

How do I pass on the answer, a ‘yes’ or ‘no’ to do something (or not)?

Thank you for putting me in the right direction!

For the moment, Assist doesn’t support conversational context.

Hello,

Look at this, first attempt with esp32 but work also with intent android assist

From the topic you are referring to:

Some steps would work, but for:
3: the equivalent for Android that I found is

service: notify.mobile_app_<device>
data:
  message: command_activity
  data:
    intent_package_name: io.homeassistant.companion.android.(minimal)
    intent_action: android.intent.action.ASSIST

Do you know any other way?
5: How to close the app?

How would you perform the action, that is: to translate a ‘yes’ answer to an action?

What seems to work somehow:
In a script:

  • TTS
  • Delay 2s
  • Trigger an automation

The automation (triggered with the ‘yes’ sentence)
action:

  • Open Assist
  • Delay 5s and say ‘yes’
  • Call a service to do what is wanted

But… I get a response from Assist that it could not understand and the Assist app remains open.