Install Homebridge

os:Raspbian GNU/Linux 12 (bookworm)

# lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

Use apt-get to install Homebridge. The installer creates a systemd init script that runs Homebridge as daemon on system startup. Follow the installation instructions for Raspbian as follow:

# Add Homebridge Repository
curl -sSfL https://repo.homebridge.io/KEY.gpg | sudo gpg --dearmor | sudo tee /usr/share/keyrings/homebridge.gpg  > /dev/null
 
# Add the Homebridge Repository to the system sources:
echo "deb [signed-by=/usr/share/keyrings/homebridge.gpg] https://repo.homebridge.io stable main" | sudo tee /etc/apt/sources.list.d/homebridge.list > /dev/null
 
# Update repositories
sudo apt-get update
 
# Install Homebridge
sudo apt-get install homebridge

 

output

root@raspberrypi:~# sudo apt-get update
获取:1 http://raspbian.raspberrypi.org/raspbian bookworm InRelease [15.0 kB]                
获取:2 http://archive.raspberrypi.org/debian bookworm InRelease [23.6 kB]                   
获取:3 https://download.docker.com/linux/raspbian bookworm InRelease [26.6 kB]                  
Fetched 252 kB in 0s (531 kB/s)                                                                  
Reading package lists... Done
...
Starting Homebridge service....

Homebridge Installation Complete!
You can access the Homebridge UI via:

* http://192.168.2.50:8581
* http://172.17.0.1:8581
* http://[fd18:f22c:7814:d900::1009]:8581
* http://[fd18:f22c:7814:d900::1002]:8581
* http://[fd18:f22c:7814:d900:1233:3676:2d79:7d7a]:8581

Thanks for installing Homebridge!

 

http://192.168.2.50:8581

 

 

output

#hostname -I
192.168.2.50

 

Uninstall  Homebridge on Raspbian(Raspberry Pi 3B+)

step 1:

sudo apt-get remove homebridge # Removes all but config files.

or

sudo apt-get purge homebridge # Removes everything

step 2:

sudo apt-get autoremove # After using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required.

 

Reinstall

To recreate it, first uninstall using purge to remove even configuration files and records:

sudo apt-get update

then reinstall:

sudo apt-get install homebridge

Install Homebridge on Raspbian

https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Raspbian

Comments


Comments are closed