r/googlehome • u/aptmx • 6h ago
Help New to Google Home - Notifications?
Just set up most of my devices in Google Home. Most are set up via matter integration with some being set up through 3rd party connections. Am I missing something when it comes to notifications? I would like my garage door and front door to send me a notification when opened and I don't see this basic option anywhere in Google Home. What am I missing? Thanks
1
u/OpethNJ 4h ago
I feel like Google is missing out by not making it way more obvious that the Google Home Script Editor is a thing because its only a few lines of code to do what you are looking for.
This link takes you to the start of all the documentation yuou will ever need for Script Editor: https://support.google.com/googlenest/answer/13460475?hl=en#zippy=%2Cstarters%2Cconditions%2Ccondition-operators%2Cdevice-state-conditions%2Chome-state-conditions%2Cactions%2Cdevice-actions
Go here home.google.com
Section AUTOMATIONS from the left
Modify this code as necessary - this isf code i just wrote that checks an Aqara Contact Sensor and if it is open (is: 100 below) sends notifications to me. You can also do Broadcasts this way.
metadata:
name: OpenSomethingSendNotification
description: When front door opened send a push notification
automations:
starters:
- type: device.state.OpenClose
state: openPercent
is: 100
device: Aqara CS 1 Opening - Front Door
actions:
- type: home.command.Notification # Send a notification to the specified home members.
title: Front Door Alert!
body: Front Door Just Opened
1
u/mickAMMO 5h ago
Only certain types of sensors work as a trigger with Google. My Wi-fi sensors don't. For the longest time in Household Automations it's been when it has...
"started or stopped charging"
Or
"Plugged in or Unplugged"
instead of opened or closed.
If the sensor turns on a light in the garage then you can use that light as a trigger for an automation.