Routine in Google Home to notify me if a sensor went offline

Sure thing! Assuming you have SmartThings added to Google Home and the device is visible there, you can use the script editor of Google Home to send you a push notification when SmartThings tells Google Home the device is offline.

The script editor is at home.google.com/automations (use a desktop browser and make sure to be logged in your Google account, more info here) and the script would look like this:

metadata:
  name: Door sensor offline notification
  description: _

automations:
  starters:
    - type: device.state.Online
      state: online
      is: false
      device: Entrance sensor - Pasillo

  actions:
    - type: home.command.Notification
      title: Aqara door sensor offline!
3 Likes