Skip to main content

Get all Devices in a Project

Use this API to build selectors for other Devices and Operations in a Dedicated Setting page.

POST https://app.airngin.com/Api/v1.0/Project/GetAllDeviceProjectForDevice

Pass the temporary query-string token as a Bearer token and send projectId.

The response contains Project-scoped Device/Operation records. Important fields include:

  • placeId / placeName — room/place information used for filtering;
  • operationId / operationName — Operation identity;
  • uiTypeCode — UI/capability classification used by the application;
  • deviceSerial — AirNgin DeviceSerial;
  • deviceName / deviceId — Device metadata;
  • operationCommands[] — authoritative Commands defined for that Operation;
  • operationCommands[].name — user-facing Command name;
  • operationCommands[].command — producer/system Command value;
  • operationCommands[].appValue — application-side value where provided;
  • operationCommands[].isOption — whether the Command is optional.

Do not hard-code another Device's Command names or values. Build cross-device selectors from the real response so the UI stays synchronized with AirNgin metadata.

Common uses include selecting a sensor as an input dependency, choosing another Device/Operation to control, or building a multi-Device dashboard.