Room Assistant





edit SideBar

Room Assistant

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`)
Recent Changes (All) | Edit SideBar Page last modified on 14 October 2020, at 01:44 PM UTC Edit Page | Page History
Powered by PmWiki