5

Basically I want to make my Google home device make an announcement when my mail arrives via Domoticz sensor.

I know IFTTT can trigger Domoticz via web URL but is there a function to trigger Google Assistant in a similar fashion?

0

1 Answer 1

2

You can send commands to a Google Home device on the same network to play a MP3 from a URL. With this you can have the Home Device play arbitrary messages.

There are libraries to do this e.g. for nodejs google-home-notify that takes a string, sends it to Google's Text to Speech API and then has the Google Home play the output.

The example code for this node is very simple:

var googlehomenotifier = require('../')("192.168.178.131", "en-US", 1);

googlehomenotifier.notify("Some crazy textmessage", function (result) {
  console.log(result);
})

Where 192.168.178.131 is the IP address of the Google Home device on your local network.

There is also a Python version that might plug into Domoticz easier.

2
  • Thanks I'll give it a try. I found some discussion that looked promising here as well: community.smartthings.com/t/google-home-respond-to-a-trigger/…
    – naps1saps
    Commented Mar 1, 2019 at 1:22
  • I currently use HomeAssistant which has a built in process to send TTS commands to my local google home device. It can also send TTS commands to my Android phone which is amazing!
    – naps1saps
    Commented Jan 11, 2022 at 1:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.