Skip to content

Google Home lambda integration to respond to the question "Is `some_person` at home?". Uses iPhone location.

Notifications You must be signed in to change notification settings

thoeni/google-homebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Home[Base]

The idea behind Google Homebase is to allow Google Home to respond to the question:

Is John at home?

How does it do that?

It uses iCloud to find an iPhone (currently hardcoded for an "iPhone X"), ideally it will use the phone ID. The service will compare the phone location (coordinates) to a predefined "homebase" location, and check if the phone is within about 25 meters from home.

This code can be deployed as aws lambda (to be exposed via Api Gateway as a POST endpoint) to provide this information to Google Home. The new V2 interface is being used to marshal/unmarshal dialogflow request/response.

Configuration

This lambda has to be executed with a role that has access to KMS as the iCloud credentials are stored encrypted as env variables, therefore KMS access is needed in order to decrypt the credentials and issue the call to iCloud.

Environment variables needed for this to work:

  • CREDS: iCloud username/password (encrypted with KMS) - in the format username::password
  • LAT: float for the homebase latitude
  • LNG: float for the homebase longitude

About

Google Home lambda integration to respond to the question "Is `some_person` at home?". Uses iPhone location.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published