Fermax Blue script to connect with the API (Show user information, Show intercom information, Intercom history, open the door)
- Clone the repository and navigate to the root directory.
- Install the requests module by running
pip install requests
. - Run the script with the required arguments:
python3 Fermax-Blue-Intercom.py --username <USERNAME> --password <PASSWORD>
. - If you want to avoid extra fetching, you can also provide the optional
--deviceId
and--accessId
arguments. - The script will output a message indicating whether the door was successfully opened or not.
--username
: Required. Fermax Blue account username.--password
: Required. Fermax Blue account password.--deviceId
: Optional. Device ID to avoid extra fetching (requires accessId).--accessId
: Optional. Access ID(s) to avoid extra fetching (use with deviceId).--cache
: Optional. Set to False if you don't want to use the cache to save the auth token (enabled by default).--reauth
: Optional. Use it to just force reauth, when using this option no door will be open, just use it to refresh the token, check your credentials...--user-info
: Optional. Fermax Blue user account information.--user-info-json
: Optional. Fermax Blue user account information in .json format.--pairings-info
: Optional. Information about the paired devices of the Fermax Blue user account.--pairings-info-json
: Optional. Information about the paired devices of the Fermax Blue user account in .json format.--mydevice-info
: Optional. Information about the Fermax Blue user account devices.--mydevice-info-json
: Optional. Information about the Fermax Blue user account devices in .json format.--mydevice-history
: Optional. History of Fermax Blue user account devices.--mydevice-history-json
: Optional. History of Fermax Blue user account devices in .json format.--open-door
: Optional. Action to open the door.--credits
: Optional. Show script version.--version
: Optional. Show script credits.
You can use this script with Home Assistant using the shell_command
integration.
Save it in a directory under config
, something like your_home_assistant_dir/config/python_scripts/Fermax-Blue-Intercom.py
, then add the following to your configuration.yaml
:
NOTE: Check how it is used in the examples below.
shell_command:
open_door: 'python3 python_scripts/Fermax-Blue-Intercom.py --username USERNAME --password PASSWORD ...'
Fermax-Blue-Intercom.py --username email@domain.com --password yourpassword
Fermax-Blue-Intercom.py --username email@domain.com --password yourpassword --cache False
Fermax-Blue-Intercom.py --username email@domain.com --password yourpassword --deviceId 12345 --accessId '{"subblock": 0, "block": 0, "number": 0}'
Fermax-Blue-Intercom.py --username email@domain.com --password yourpassword --deviceId 12345 --accessId '{"subblock": 0, "block": 0, "number": 0}' '{"subblock": 1, "block": 1, "number": 1}'
Fermax-Blue-Intercom.py --username email@domain.com --password yourpassword --reauth
The script sends an HTTP request to the Fermax Blue Servers to authenticate the user and obtain an access token. The access token is cached into a JSON file (in the script directory) to avoid unnecessary API calls in the future.
The script then sends another HTTP request to the Fermax Blue Servers to obtain the device ID and access ID, which are required to open the door.
Finally, the script sends a third HTTP request to the Fermax Blue API to open the door.
This script was tested on a Fermax VEO-XS WIFI 4,3" DUOX PLUS (REF: 9449)
- Initial Docker Setup: Docker instructions
- App Usage and Configuration: All Documentation
Support me to improve Fermax Blue Intercom script
Feel free to donate whatever you want to the following addresses:
- Bitcoin (BTC):
1BughfdxS2zpqZUhtS5jhkbxDWHhtqTaxN
- Ethereum (ETH):
0xbE3A0FcD3f1BB61CCeEC94Ab9FE683E071331E00
- Dash:
XjZgQAeVuLcfywDpp2JxfmpvQn3MrmAEC2
- Zcash (ZEC):
t1J5dnHVeaWvdv3L43A62fVC6YAajKFEMbX
- XMR:
47HLtavHyu2UgXVb4apyNnE55mqQTuy1fgPzbNYosqaRak7nkksoqj9enP4eMjBems4kM577T8yRZagnsyB5yrXP32cBN3F
- RTM:
RWRYFXpXwrWnWFzPSrp4oyCV6QYaWD3eqX
AGPL 3.0 | Read more here | Source of the animated GIF (Loading Animation) | Source of the selfhosted Fonts