Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Question

Posted

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:

 

Please login or register to see this image.

/monthly_2024_10/image.png.5b13ed5ac0505b6cde1b3f9d9990bb61.png" />

 

AuthBearer:  Please have a look at the Access API on how to get it

Please login or register to see this link.

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.

 

 

Please login or register to see this attachment.

  • Like 2

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...