Play audio file on Google home

Alexa, Google Home and Siri
Post Reply
User avatar
thecosmicgate
Posts: 263
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 » Saturday 01 September 2018 9:24

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: 995
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Play audio file on Google home

Post by sincze » Saturday 01 September 2018 17:48

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.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

User avatar
thecosmicgate
Posts: 263
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 » Saturday 01 September 2018 17:55

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: 962
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

Re: Play audio file on Google home

Post by pvm » Thursday 29 November 2018 0:57

Did you get this to work? Stream to Google home (mini?) and not chromecast?
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

freijn
Posts: 401
Joined: Friday 23 December 2016 17:40
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands Purmerend
Contact:

Re: Play audio file on Google home

Post by freijn » Thursday 29 November 2018 12:27

Yeah, Please note Google Home has its own speaker :-) interested too

alanlsmith
Posts: 124
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 » Thursday 29 November 2018 16:05

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 β, Ubuntu 18.04 on Intel NUC i3, 8Gb ram, 70Gb drive, RFXtrx433, z-wave and a bit of Broadlink/Android

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests