Skip to content
/ hkpeople Public

👪 HomeKit Sensor to know when people (i.e. their phones) are home

License

Notifications You must be signed in to change notification settings

bahlo/hkpeople

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hkpeople

A HomeKit sensor to activate when people (i.e. their phones) are home. This is super useful if you want to turn off the lights after everyone left, or turn on if anyone comes home.

Thanks @brutella for the awesome HAP Go library which made this possible.

Usage

On your machine

# Requires valid go install
$ go install github.com/bahlo/hkpeople/cmd/hkpeople

# You can find out the hostnames of your phones on iOS in Settings -> General -> Info -> Name
$ TARGETS=my-iphone.local,so-iphone.local hkpeople

On your iPhone

Then open the Home app and add the sensor. The pin is 45736753, you can type the numbers that contain the respective letters for hkpeople.

Precompile (for Raspberry Pi)

$ git clone github.com/bahlo/hkpeople

# Requires github.com/golang/dep to be installed
$ dep ensure

# Requires valid go install
$ GOOS=linux GOARCH=arm GOARM=6 go build -o hkpeople-rpi cmd/hkpeople/main.go

# Copy hkpeople-rpi to your raspberry and start it like describe above

About

👪 HomeKit Sensor to know when people (i.e. their phones) are home

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages