Homebridge - Raspberry Pi Zero W Enclosure

Homebridge - Raspberry Pi Zero W Enclosure

Description

About This Project = I modeled this to be roughly the size of the Philips Hue Bridge 2 with only one port (power) visible from the outside as this is meant to be a headless bridge. This was designed in [AutoDesk Fusion 360](https://www.autodesk.com/products/fusion-360/overview) and utilizes the official [Raspberry Pi Zero W dimensional diagrams](https://www.raspberrypi.org/documentation/hardware/raspberrypi/mechanical/rpi_MECH_Zero_1p2.pdf) for accuracy. Hardware = + 4x M3x8 Hex Bolts (and allen key) + Raspberry Pi Zero W + Micro USB Cable + USB Charging Adapter + 8GB - 32GB Micro SD Card + Micro SD Card Reader Raspberry Pi Zero W Setup and Homebridge Installation Instructions = ### (Commands are for macOS and Linux) On your computer, download and install the latest version of [Raspberry Pi Imager](https://www.raspberrypi.org/software/) Install the latest version of Raspberry Pi OS (formerly Raspbian) onto your Micro SD Card. Generate 2 files to enable `ssh` and connectivity to your home Wi-Fi This will generate and empty file titled 'ssh' which will enable ssh access. `touch ~/Desktop/ssh` Run this entire command below. In `nano`, replace `YOUR_NETWORK_NAME` and `YOUR_NETWORK_PASSWORD` with your wireless network name and password. Press Control + O to save and Control + X to exit. `echo 'country=US\nctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\nupdate_config=1\nnetwork={\n ssid="YOUR_NETWORK_NAME"\n scan_ssid=1\n psk="YOUR_NETWORK_PASSWORD"\n key_mgmt=WPA-PSK\n} ' > ~/Desktop/wpa_supplicant.conf && nano ~/Desktop/wpa_supplicant.conf` Move both the ssh and wpa_supplicant.conf (saved to Desktop) to the Boot partition on your Micro SD card. Note: You may need to remount the Micro SD card after flashing. Insert the Micro SD Card into your Raspberry Pi Zero W and connect it to power and wait for it to connect to WiFi. Once you have the IP address of the Pi (get this from your router), `ssh` into your raspberry Pi Zero W and set the hostname. `sudo hostnamectl set-hostname "homebridge"` `sudo reboot now` `ssh` back into your Raspberry Pi Zero W and run the following commands to install Homebridge, nodejs, and any required packages. `sudo apt update` `sudo apt install -y nodejs` `sudo npm install -g --unsafe-perm homebridge homebridge-config-ui-x` Enable Homebridge to start on system boot `sudo hb-service install --user homebridge` Generate config.json file and enable web UI. `echo '{\n "bridge": {\n "name": "Homebridge",\n "username": "CC:22:3D:E3:CE:30",\n "manufacturer": "homebridge.io",\n "model": "homebridge",\n "port": 51826,\n "pin": "031-45-154"\n },\n "platforms": [\n {\n "platform": "config",\n "name": "Config",\n "port": 8080,\n "sudo": false\n }\n ]\n}' > ~/.homebridge/config.json` `sudo reboot now` On another device, navigate to `http://<HOMEBRIDGE-IP-ADDRESS>:8080` Congrats! You have successfully setup Homebridge. For additional support, visit the [Official Homebridge wiki](https://github.com/homebridge/homebridge/wiki).

Statistics

Likes

31

Downloads

0

Category

Gadgets