homebridge-faber-range-hood
v1.2.0
Published
A Homebridge plugin for controlling Faber (Franke) range hoods.
Maintainers
Readme
Homebridge Plugin for Faber Range Hoods
Overview
This plugin provides Homebridge support for Faber range hoods. This works for hoods that are controllable using the Faber Cloud App.
Configuration
In order to configure this plugin in Homebridge, you'll need two pieces of information:
- A "refresh token". This is an OAuth/OpenID refresh token that allows the plugin to maintain the proper credentials for access to the Faber Cloud API
- One or mode "device ID" values. Each range hood that's associated with your Faber Cloud API has a unique device ID. You'll use this device ID to instruct the plugin which range hood(s) to control
In order to obtain both of those pieces of information, you'll need to run the get_token.py Python script. This script will walk you through logging into the Faber Cloud API, provide you with a refresh token, and show you all the device IDs that are associated with your account
Running get_token.py
- Clone this repository (or download it from github)
- Install the
oidc-clientPython module (e.g.pip3 install oidc-client) - In your favorite terminal, run the script under
tools/get_token.py - This should open up your web browser to the Franke/Faber login page
- Login using your regular credentials
- Your web browser might ask you to allow redirecting to
FaberRedirectHandler.app(or allow opening a link in an external handler). This is a custom handler that's dynamically created by the script itself. Click "Allow" - Switch back to your terminal
- The script should've printed out a refresh token, and a list of the devices associated with your account
Troubleshooting get_token.py
- If you get an error that looks like
urlopen error [SSL: CERTIFICATE_VERIFY_FAILED], then try installing thepip-system-certsPython package (e.g.pip3 install pip-system-certs)
TODO
- Ensure transient network errors are properly handled and recovered from (perhaps exponential backoffs using the axios-retry module)
- Enforce no-throw somehow, or convert all exceptions to errors (using the neverthrow module)
