homebridge-flair
Flair Smart Vent plug-in for Homebridge using the Flair API.
Installation
- Install homebridge using:
npm install -g homebridge
- Install this plug-in using:
npm install -g homebridge-flair
- Update your configuration file. See example
config.json
snippet below.
Configuration
Configuration sample (edit ~/.homebridge/config.json
):
{
"platforms": [
{
"clientId": "client_id",
"clientSecret": "client_secret",
"username": "user",
"password": "pass",
"pollInterval": 60,
"platform": "Flair",
"ventAccessoryType": "windowCovering"
}
]
}
Obtaining Credentials
In order to use this plugin you will need to obtain a client id and client secret from Flair.
Follow the instructions here.
Specifically you need to:
- Create a Flair account with a developer email address at my.flair.co.
- Provide this email address to hello@flair.co and they will send you a set of developer credentials.
You will use the client id and secret they send you in the config block above.
Auto Vs Manual Mode
When you use Pucks with your setup the pucks will appear in the app as a Thermostat. If you turn those thermostats off it will put the Flair system into Manual mode. If you turn the thermostat to any other setting it will set your system to Flair's Auto mode.
Vent Accessory Type
You can specify how vent accessories are shown in HomeKit with the ventAccessoryType
property.
windowCovering
- Window Covering
fan
- Fan
airPurifier
- Air Purifier
Commit format
Commits should be formatted as type(scope): message
The following types are allowed:
Type | Description |
---|
feat | A new feature |
fix | A bug fix |
docs | Documentation only changes |
style | Changes that do not affect the meaning of the code (white-space, formatting,missing semi-colons, etc) |
refactor | A code change that neither fixes a bug nor adds a feature |
perf | A code change that improves performance |
test | Adding missing or correcting existing tests |
chore | Changes to the build process or auxiliary tools and libraries such as documentation generation |
Releasing
A new version is released when a merge or push to main
occurs.
We use the rules at default-release-rules.js as our guide to when a series of commits should create a release.