Hi @all,
i am using Unifi Access and was disapointed that i could not open my door via the hc3. So i wrote a little QA which does the trick. Maybe someone else will have also a use for it.
You have to fill the following variables:
AuthBearer: Please have a look at the Access API on how to get it https://core-config-gfoz.uid.alpha.ui.com/configs/unifi-access/api_reference.pdf for short:
1. Introduction
Welcome to the UniFi Access API guide, which provides a detailed step-by-step explanation of how to utilize
the API effectively. The UniFi Access API is an open interface protocol that allows developers to interact with
a specific service using predefined interfaces.
1.1 Create API Token & Download API Documentation
Before you can use the UniFi Access API, you need to obtain a valid API Token for authentication and access
control. Follow the steps below to create an API Token:
1. Sign in to your UniFi Portal (https://account.ui.com/login) using your web browser.
2. Select the UniFi Console where the UniFi Access application is installed.
3. Go to Access > Settings > General > Advanced.
4. Go to API Token to Download API documentation and create an API Token.
5. To create an API Token, click Create New, enter the key name and validity period, select the
permission scopes, and click Create.
6. Once the API Token is created, ensure to Copy API Token and store it safely for future use. Please note
that the key is displayed only once for security purposes.
IPAccess: IP of your AccessController (e.g. 192.168.2.X)
PortAccess: Std.Port is 12445
ID: The ID of the Door which you want to open via the QA (for more then one door just copy the QA and put the new ID)
If there is no ID provided in the QA, you will get a list of all your doors with there name (as in the AccessController) and the corresponding ID, when you press the "Öffnen" Button in the debug console
I am sorry for the German words on the Buttons and in some parts of the code but i think all in all it should be very easy to change that to your preferred language
Hope it helps someone.
Eingangstuere_oeffnen.fqa