Want to have Google Home tell me when a contact sensor was last opened


#1

I have this contact sensor attached to my cat litter box door. I want to be able to ask Google Home to tell me when the last time this contact sensor was opened.

Since I can already ask Google Home the temperature in my garage (via a motion/temp sensor), is there an easy way to get Google to tell me when a contact sensor was last opened?


#2

I’m pretty sure it’s doable but I don’t if it would be considered easy. Assuming you have an Android phone you’re going to need Tasker+SharpTools+Autovoice+Autocast (pretty sure you’ll need the paid versions).

I’m far from an expert in Tasker so someone else might chime in with a better way or another way completely.

You would need one Tasker profile set up to have SharpTools monitor the contact sensor and have Tasker set a variable every time it opens. Then you would need a separate Tasker profile using Autovoice which would allow you to ask your Home “When was the litter box opened last” or whatever phrase you want. The associated task could pull the variable and using Autocast announce the variable over your Home.


(Steve Jackson) #3

I’m curious, how did you set it up to get Google Home to tell you the temperature in a given room. I haven’t been able to get this work.

I 2nd the Tasker+SharpTools+Autovoice+Autocast approach. I figured this was probably how I would have to get the temp to work but have just been to lazy to work on it. :thinking:


#4

There are two ways to do this. The first is using the “cast” method, where a middleman server casts an MP3 file to you google home. This would allow you to send a message to a specific Google Home (or home mini) speaker).

And the second is using assistant relay. I just got this working and it’s a bit more complicated. This uses the google home broadcast feature. It sends a message to all google home’s on your account but it allows any music you are casting to the device to continue after the interruption and also allows for some fun presets (like the rooster for the wakeup broadcast).

You easiest thing to do then is to use WebCore to send the message either via the speaker using “Speak” action or in the case of assistant relay, using a POST message in JSON format.


(Eric) #5

Could Ask Alexa do this? Or Echosistant?


#6

Do you mean could one of those programs work to send reports to Google home? No.


(Eric) #7

Oops, missed the Google home. My bad…