0
|
1 |
# Raspberry Pi Homekit Door Accessory |
|
2 |
|
2
|
3 |
Using |
|
4 |
a |
|
5 |
[Raspberry Pi Zero W](https://www.raspberrypi.org/products/raspberry-pi-zero-w/) and |
|
6 |
[Pimoroni Automation pHAT](https://shop.pimoroni.com/products/automation-phat), |
|
7 |
make a simple circuit-based door lock and door bell intercom into a |
|
8 |
Siri controlled smart accessory. Siri integration is provided |
|
9 |
by [HAP-NodeJS](https://github.com/KhaosT/HAP-NodeJS). |
|
10 |
|
|
11 |
## Installation |
|
12 |
|
|
13 |
Installation is complex and handled by |
|
14 |
an [Ansible](https://ansible.com/) playbook. |
|
15 |
|
0
|
16 |
## Ansible Inventory |
|
17 |
|
|
18 |
`inventory/host_vars/raspberrypi.local.yaml` |
|
19 |
|
|
20 |
github_user: "<github user>" |
|
21 |
nodejs_version: "8.9.0" |
|
22 |
nodejs_dir: "node-v{{nodejs_version}}-linux-{{ansible_architecture}}" |
|
23 |
wpa_networks: |
|
24 |
- ssid: "<your ssid>" |
|
25 |
psk: "<your wifi password>" |
2
|
26 |
|
|
27 |
## Run Ansible |
|
28 |
|
|
29 |
`ansible-playbook hap.yaml` |