Play audio file on Google home

Alexa, Google Home and Siri

Moderator: leecollings

Post Reply
User avatar
thecosmicgate
Posts: 188
Joined: Monday 06 April 2015 14:37
Target OS: Linux
Domoticz version: newest
Location: The Netherlands / Hoeven
Contact:

Play audio file on Google home

Post by thecosmicgate »

Can somebody tell me or assist me how it's possible to play some kind of an audio file on Google home using domoticz.
I want to push a button (dummy switch) on domoticz which would play a sound on Google home.

At the end I should use this as a chime so when somebody presses the doorbell (z-wave) Google home plays the chosen file =sound

Thnx for helping

Sent from my ONEPLUS A6003 using Tapatalk

It's nice to be important, but it's more important to be nice
Scooter ;)
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Play audio file on Google home

Post by sincze »

Have a look around at the forum and look for 'stream2chromecast'.
After installing that you can for sure call a script from within domoticz that will play the sound for you when somebody presses the doorbell.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
User avatar
thecosmicgate
Posts: 188
Joined: Monday 06 April 2015 14:37
Target OS: Linux
Domoticz version: newest
Location: The Netherlands / Hoeven
Contact:

Re: Play audio file on Google home

Post by thecosmicgate »

sincze wrote:Have a look around at the forum and look for 'stream2chromecast'.
After installing that you can for sure call a script from within domoticz that will play the sound for you when somebody presses the doorbell.
Thnx @sincze , will have a look

Sent from my ONEPLUS A6003 using Tapatalk

It's nice to be important, but it's more important to be nice
Scooter ;)
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Play audio file on Google home

Post by pvm »

Did you get this to work? Stream to Google home (mini?) and not chromecast?
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Play audio file on Google home

Post by freijn »

Yeah, Please note Google Home has its own speaker :-) interested too
alanlsmith
Posts: 132
Joined: Monday 07 August 2017 17:17
Target OS: Linux
Domoticz version: Latest β
Location: Near London (Saaarf!)
Contact:

Re: Play audio file on Google home

Post by alanlsmith »

The easiest way is probably to put the mp3 files in '/var/www/html/mp3/xxx.mp3' so that they can be reached in a browser at
'<your IP address>/mp3'

This way the 'built-in to the system' Apache server (not the web-server in Domoticz)is being used to store and stream the audio files.

Then create a Node-Red flow that can be triggered by a switch in Domoticz and use a 'node-red-contrib-cast' node to play the audio file.
Domoticz Latest β, RPi 4B with 110Gb SSD for Domoticz, RPi 4B with 110Gb SSD for Node-Red & a RPi 2B for logging / IP addressing. RFXCOM, PiZiGate, Z-Wave, Harmony, Hue lamps and a bit of Broadlink.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest