2023-03-19 14:28:41 -04:00
2023-08-05 22:24:45 -04:00
2023-07-15 19:04:32 -04:00
2023-05-06 13:48:34 -04:00

flic2hass

A Flic SDK utility to publish all Flic buttons to Home Assistant via MQTT

Utilizing https://hubsdk.flic.io/static/tutorial/

Your Flic Hub online IDE: https://hubsdk.flic.io/

Follow the tutorial steps above, substituting in main.js -- DON'T FORGET TO UPDATE IT TO USE YOUR OWN MQTT SERVER!

Requirements:

  • Flic Hub
  • Working MQTT system
  • Enough know-how to get it to work - you will need to also follow the tutorial a bit (linked above)

Basic steps:

  • Connect to your Flic Hub IDE
  • Create a new module, name it MQTT
  • Paste in the main.js and mqtt.js files
  • Update the main.js variables server and hatopic.
  • IF you use a username/password on your MQTT, set that up:

in main.js

var username = 'flichub'; var password = 'xxxxx'; and change this line.... var mqtt = require("./mqtt").create(server,{'username':username,'password':password});

  • Start the "Module" in the IDE and watch the Console output - it'se extremely verbose right now

  • IF it started right, set the "restart after crash" checkbox just in case

  • IF it didn't start, try powercycling your Flic Hub and reconnect. Verify the Module saved properly and is running.

S
Description
A BETTER Flic SDK utility to publish all Flic buttons to Home Assistant via MQTT
Readme
1 MiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 52%
TypeScript 48%