githubEdit

Report Devices

Reports ACS system device status including encoders and entrances.

Inform Seam that devices are connected to the ACS system or were removed.

Code:

await seam.acs.systems.reportDevices({
  acs_system_id: "182ea706-8e14-4921-8e57-ee18d5a7de31",
  acs_encoders: [
    { hotek_metadata: { encoder_number: "1" } },
    { is_removed: true, hotek_metadata: { encoder_number: "2" } },
  ],
  acs_entrances: [
    { hotek_metadata: { room_number: "203" } },
    { is_removed: true, hotek_metadata: { room_number: "500" } },
    { hotek_metadata: { common_area_name: "Gym", common_area_number: "2" } },
  ],
});

Output:

// void
chevron-rightAuthentication Methodshashtag
  • API key

  • Personal access token Must also include the seam-workspace header in the request.

To learn more, see Authenticationarrow-up-right.

Request Parameters

acs_system_id String (Required)

ID of the ACS system to report resources for


acs_encoders Array of Objects

Array of ACS encoders to report

chevron-righthotek_metadata Objecthashtag

Hotek-specific metadata associated with the entrance.


chevron-righthotek_metadata.encoder_number Stringhashtag

The encoder number determined by the USB port connection.


chevron-rightis_removed Booleanhashtag

Whether the encoder is removed


acs_entrances Array of Objects

Array of ACS entrances to report

chevron-righthotek_metadata Objecthashtag

Hotek-specific metadata associated with the entrance.


chevron-righthotek_metadata.common_area_name Stringhashtag

The common area name


chevron-righthotek_metadata.common_area_number Stringhashtag

The room number identifier


chevron-righthotek_metadata.room_number Stringhashtag

The room number identifier


chevron-rightis_removed Booleanhashtag

Whether the entrance is removed


Response

circle-check

Last updated

Was this helpful?