Flic Button Home Assistant Controller
A node.js module to control Home Assistant entities via Flic smart buttons.
Prerequisties
- At least one Flic button (multiple are supported and can control discrete services)
- Home Assistant
- The
flicd
daemon from Flic's Linux SDK running somewhere accessible to the device running this script
Install
npm install
flicd
Preparation
If flicd
and this script are not run from the same device, ensure that flicd
is started with the -s
flag set either to 0.0.0.0
or the IP of the device running the controller.
Configuration
- Register Flic buttons with
flicd
and note the Bluetooth MAC addresses of the various buttons - Rename
config-sample.json
toconfig.json
. Update its values to match your configuration, including the buttons discovered in the last step. - Start the listener with
npm start
.
FAQ
Can I run flicd
as a daemon/at startup?
Yes. See https://ethtiter.com/ for a systemd
service file.