Skip to content

Nest Events - sends text messages via AWS when your Nest camera sees someone

License

Notifications You must be signed in to change notification settings

masteryee/nest-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nest Events Listener

This is a .NET Core app written in C# that demonstrates how to use the Nest Developer API and AWS (Amazon Web Services) to send an SMS when your camera thinks it saw someone.

Inspiration

My wife requested this =). This works better for us than the normal Nest service notification options (see FAQ for more info).

Requirements

  • Nest Developer account with a custom product that has access to read camera data
  • AWS account to send SMS messages via SNS (the free tier allows 100 SMS messages per month)

Configuration

All configuration is stored in the Secret Manager tool available to .NET Core. This tool is best used during development to keep secrets like authentication outside of your project's settings file to prevent accidental check-in of Production credentials/info.

Application Flow

  • Start a localhost HTTP Listener to act as the Nest OAuth redirect URL
  • Load the Works-with-Nest Authentication page in the default web browser
  • Upon authorizing, sends the authorization code to the redirect URL
  • Gets a Nest OAuth token using product info and the authorization code
  • Establishes a REST streaming connection with the Nest service
  • When a Nest camera on the account thinks it saw someone, an SMS message is sent out via AWS SNS to multiple phone numbers

FAQ

Q: Doesn't Nest already send notifications?
A: Yes, the Nest mobile app allows you to control how notifications get sent out, BUT it isn't as fine-grained as we prefer (i.e. receive notifications for selected activity types, or none at all). Besides, this was a fun way to play with the Nest and AWS API =)

References

About

Nest Events - sends text messages via AWS when your Nest camera sees someone

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages