Installation

https://www.room-assistant.io/guide/installation.html

Requires Node 12.

curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs

Service User

sudo useradd -r -d /var/room-assistant room-assistant
sudo mkdir /var/room-assistant
sudo chown room-assistant:room-assistant /var/room-assistant

Configuration

/etc/room-assistant/local.yaml

global:
  instanceName: <HOSTNAME>
  integrations:
    - bluetoothLowEnergy
    - homeAssistant

homeAssistant:
  mqttUrl: mqtt://pixie3:1883

systemd service

/etc/systemd/system/room-assistant.service

[Unit]
Description=room-assistant service

[Service]
ExecStart=/usr/bin/room-assistant -c /etc/room-assistant
WorkingDirectory=/var/room-assistant
Restart=always
RestartSec=10
User=room-assistant

[Install]
WantedBy=multi-user.target

BLE configuration

sudo setcap cap\_net\_raw+eip $(eval readlink -f `which node`)
sudo setcap cap\_net\_raw+eip $(eval readlink -f `which hcitool`)
sudo setcap cap\_net\_admin+eip $(eval readlink -f `which hciconfig`)