HA's Voice assistant question

I have built a voice local voice assistant using an old Google speaker, and it all works very well for controlling devices, however, I have been playing with the sentence automations, this below works well, when I say the wake word, it wakes up quickly I say “Time please” and the time is reported, albeit, basically, on the office speaker…

service: media_player.play_media
target:
  entity_id: media_player.office_display
data:
  media_content_id: >-
    media-source://tts/cloud?message=The time is {{ now().strftime('%H %M')
    }}&language=en-IE&gender=female
  media_content_type: provider
metadata:
  title: The time.
  thumbnail: https://brands.home-assistant.io/_/cloud/logo.png
  media_class: app
  children_media_class: null
  navigateIds:
    - {}
    - media_content_type: app
      media_content_id: media-source://tts
    - media_content_type: provider
      media_content_id: >-
        media-source://tts/cloud?message=The time is {{ now().strftime('%H %M')
        }}&language=en-IE&gender=female

What I can’t seem to do is get the speaker I asked the question to to respond with the answer all it says is “Done”. So if I change the automation to…

service: media_player.play_media
target:
  entity_id: media_player.onju_voice_onju_voice
data:
  media_content_id: >-
    media-source://tts/cloud?message=The time is {{ now().strftime('%H %M')
    }}&language=en-IE&gender=female
  media_content_type: provider
metadata:
  title: The time.
  thumbnail: https://brands.home-assistant.io/_/cloud/logo.png
  media_class: app
  children_media_class: null
  navigateIds:
    - {}
    - media_content_type: app
      media_content_id: media-source://tts
    - media_content_type: provider
      media_content_id: >-
        media-source://tts/cloud?message=The time is {{ now().strftime('%H %M')
        }}&language=en-IE&gender=female

It waits a second or 2 then just says “Done”

Is this a natural limit of the system so far, if so fine… or am I doing something wrong?

Thanks.

Hi @itnassol ,

This is because scripts using a voice trigger cannot modify the assist’s response. To do so, you have to create custom sentences.

The scripts with voice trigger csn execute any script, but always answer with done (for now?).

You can take a look at my post “goodnight routine” in the voice assistant contest category. This uses a package I created using custom sentences. You could use it’s structure and modify it to your needs.

Hi Don,

thank you for that, I will certainly take a look and see what I can learn. Thank you again.

1 Like