Say anything to Google Home throught HTTP

Hello,

How can I pass via HTTP Post a message that will be read over Google home via a script?

  1. I have set up a voice notification script via TTS :
alias: bienvenue
 sequence:
   - service: tts.google_translate_say
     entity_id: media_player.cuisine
     data:
       message: This is where I would like the variable message to be
       language: en

Works fine.
2) I can trigger it externally via Postman (POST, with Authorization): IPADDRESS:8123/api/services/script/bienvenue

Questions :

  1. How can I add a message β€œwelcome xxx” to the Postman HTTP ? JSON ? How ?
  2. How can I β€œget” it in HA and use it in my script, to replace the β€œmessage” I had in yaml?

Thanks so much. Newbie here.

Thanks. New to HA

1 Like

If you’re willing to use a community addon you can try this:

the addon:

the rest sensors:

an example automation: