1.0.1 • Published 5 years ago
homebridge-flic-button v1.0.1
homebridge-flic-button
This creates a stateless button in HomeKit that can be triggered by a Flic 2.0 button connected to a Flic Hub LR.
Requirements
- Install
homebridge-http-notification-server
to receive events from the Flic Hub LR. Check the Homebridge logs for[notification-server] Listening on 0.0.0.0:8080
and replace[notification-server]
below with the IP address and port you configured.
Configuration
Create an accessory block for each Flic you want to map to HomeKit:
"accessories": [
{
"accessory": "flic-button",
"name": "My Flic",
"id": "my-flic"
}
]
The id
field must be unique for each Flic and will be used later. It should be alphanumeric only with no symbols or spaces.
Next, configure your Flic to send an Internet Request notification for each type of button push:
Field | Value |
---|---|
URL | http://[notification-server] /id |
Method | POST |
Content Type | application/json |
Body | {"characteristic": "Programmable Switch Event", "value": "click"} |
Valid values for the value
field are:
click
,single
,single-press
double
,double-click
,double-press
hold
,hold-press
,long
,long-press
You can configure the action for each event in the Home app or your preferred HomeKit tool.