Now that Google has graciously prevented Google Workspace accounts from broadcasting messages to Google Home Speakers, I am looking for a way in Hubitat to announce an event (text to speech, easy) and then play an audio file. I have poked around in Rule Machine, and I see the way to set volumes and mute/unmute audio, but I don't see the commands for playing back an .MP3 file from the hub, which has been mentioned in Community previously. Maybe the speakers I have don't support this approach. Is there any other way to make this work?
I presume your Google speakers are Chromecast compatible? If so, use the Chromecast integration to pull in the speaker to HE and then use Run custom action in Rule Machine to play an mp3 file:
This is a screenshot from HE version 2.3.9.201, but it should work the same on 2.4.0.145, just look a little bit different
Edit: And welcome to the community btw!
Edit2: Or, if you already have the speaker in HE, check the device page to see if there is a "Play Track" or similar command available for the speaker. If so, you can access that command the same way as I've done in the screenshot above by using run custom action.
3 Likes