Can’t remember, are you running on Raspberry Pi?
Here are steps for Raspberry Pi, you can change these to match your system. Let me know if you have any problems:
*** UPDATE *** Thanks to @xbmcnut
I had forgotten that java may not be installed already on your Raspberry Pi, so you must do the following before running:
- On your Raspberry Pi, make sure you are in the Pi home folder:
cd /home/pi/
- Then make an habridge folder:
mkdir habridge
-
Now change to the folder and download the latest ha-bridge jar file:
cd habridge
wget https://github.com/bwssytems/ha-bridge/releases/download/v3.1.0/ha-bridge-3.1.0.jar -
I can’t remember if ha-bridge automatically creates the data folder or not, but I could have sworn it wasn’t created for me, so you an just create it yourself:
mkdir data
- Now you have to create the systemd service file:
nano habridge.service
-
Then copy and paste the following:
[Unit]
Description=HA Bridge
Wants=network.target
After=network.target[Service]
Type=simple
ExecStart=/usr/bin/java -jar -Dconfig.file=/home/pi/habridge/data/habridge.config /home/pi/habridge/ha-bridge-3.1.0.jar[Install]
WantedBy=multi-user.target -
Now, to save the file, hit CTRL-X, then hit Y and RETURN
-
This step was added thanks to @xbmcnut as I forgot that Java may not already be installed on your system.
- Next you need to enable the systemd service so it will automatically start every time you reboot your Raspberry Pi:
sudo systemctl enable /home/pi/habridge/habridge.service
- Now that it is enabled, you have to start it. Since it is enabled, you don’t need the full path to run it:
sudo systemctl start habridge
- The default port for HA Bridge is 8080, so open your browser and go to your RPI address, port 8080:
http://[your-ip-address]:8080