For Door Status, you can see the door status through the response of api/doors/status


However, we found out that the /api/doors/status cannot show the door heled opened/forced opened in BioStar 2 API even though BioStar 2 server can receive the two different alarms from the internal API. 
Please create a ticket to provide you a patch file until Suprema team releases a new version of BioStar 2 to update the API correctly.


<Response Example>

    "door_id":

    { 

        "id": "3" 

    },

    "opened": "true",

    "unlocked": "true",

    "last_open_time": "1622466141",

    "alarm": "2049", //held-opened + STATUS_OPERATOR_UNLOCKED

    "status": "2048" //STATUS_OPERATOR_UNLOCKED

}


How to know the door status
Door StatusDescription
-1STATUS_INVALID
0STATUS_NORMAL 
1STATUS_LOCKED
2STATUS_UNLOCKED
4STATUS_FORCED_OPEN_ALARM 
8STATUS_HELD_OPEN_ALARM
16STATUS_APB_FAILED
32STATUS_DISCONNECTED 
64STATUS_SCHEDULE_LOCKED
128STATUS_SCHEDULE_UNLOCKED
256STATUS_EMERGENCY_LOCKED
512STATUS_EMERGENCY_UNLOCKED
1024STATUS_OPERATOR_LOCKED
2048STATUS_OPERATOR_UNLOCKED




How to calculate the Alarm status

The Alam result needs to be combined with the door alarm+the door status.

 
Alarm
Held/Forced Opened AlarmDescription
Door StatusDescription
65=1Held Opened+64STATUS_SCHEDULE_LOCKED
66=2Forced Opened+64STATUS_SCHEDULE_LOCKED
129=1Held Opened+128STATUS_SCHEDULE_UNLOCKED 
130=2Forced Opened+128STATUS_SCHEDULE_UNLOCKED 
257=1Held Opened+256STATUS_EMERGENCY_LOCKED 
258=2Forced Opened+256STATUS_EMERGENCY_LOCKED 
513=1Held Opened+512STATUS_EMERGENCY_UNLOCKED 
514=2Forced Opened+512STATUS_EMERGENCY_UNLOCKED 
1025=1Held Opened+1024STATUS_OPERATOR_LOCKED
1026=2Forced Opened+1024STATUS_OPERATOR_LOCKED 
2049=1Held Opened+2048STATUS_OPERATOR_UNLOCKED 
2050=2Forced Opened+2048STATUS_OPERATOR_UNLOCKED