Device Configuration Commands

How to configure Haltian ENTRYWAY — Service API commands and GraphQL examples

Overview

Haltian ENTRYWAY is configured remotely through the Service API (GraphQL) — named commands with built-in validation and automatic encoding.

This page documents the available commands and provides ready-to-use examples. For detailed parameter explanations and configuration scenarios, see Configuration.


Service API Commands

The Service API provides named configuration commands that handle CBOR encoding, delivery, and validation automatically. Use these through the Service API (GraphQL).

Available Commands

CommandPurposeParameters
SetReportAndMeasurementIntervalSet reporting and measurement frequencyreportInterval, measurementInterval
GetReportAndMeasurementIntervalRead current intervals
SetPeopleCountingOrientationSet entry/exit counting directionpeopleCountingOrientation
GetPeopleCountingOrientationRead current direction

SetReportAndMeasurementInterval

Configures how frequently the sensor reports data and how often it takes measurements.

Parameters:

ParameterTypeRangeDefaultDescription
reportIntervalInteger60–864003600How often the sensor sends a report to the cloud (seconds)
measurementIntervalInteger30–8640030How often the sensor checks for movement (seconds)

Set 5-minute reporting with 30-second measurement:

mutation {
  setReportAndMeasurementInterval(
    input: {
      vendorSerial: "XXCN01TSC20205507"
      reportInterval: 300
      measurementInterval: 30
    }
  ) {
    success
  }
}

GetReportAndMeasurementInterval

Reads the current reporting and measurement intervals from the device.

query {
  getReportAndMeasurementInterval(
    vendorSerial: "XXCN01TSC20205507"
  ) {
    reportInterval
    measurementInterval
  }
}

SetPeopleCountingOrientation

Sets the entry/exit counting direction. Use this if counts appear inverted after installation — no need to physically rotate the sensor.

Parameters:

ParameterTypeValuesDefaultDescription
peopleCountingOrientationInteger0, 100 = normal (factory default), 1 = reversed (swap entry/exit)

Reverse counting direction:

mutation {
  setPeopleCountingOrientation(
    input: {
      vendorSerial: "XXCN01TSC20205507"
      peopleCountingOrientation: 1
    }
  ) {
    success
  }
}

GetPeopleCountingOrientation

Reads the current counting direction.

query {
  getPeopleCountingOrientation(
    vendorSerial: "XXCN01TSC20205507"
  ) {
    peopleCountingOrientation
  }
}

Quick Configuration Recipes

High-Frequency Monitoring

10-minute reporting with 30-second measurement for busy entrances:

mutation {
  setReportAndMeasurementInterval(
    input: {
      vendorSerial: "XXCN01TSC20205507"
      reportInterval: 600
      measurementInterval: 30
    }
  ) {
    success
  }
}

Low-Power Long Interval

1-hour reporting for low-traffic areas (maximizes battery life):

mutation {
  setReportAndMeasurementInterval(
    input: {
      vendorSerial: "XXCN01TSC20205507"
      reportInterval: 3600
      measurementInterval: 30
    }
  ) {
    success
  }
}

Fix Inverted Counts

If entry and exit counts are swapped after installation:

mutation {
  setPeopleCountingOrientation(
    input: {
      vendorSerial: "XXCN01TSC20205507"
      peopleCountingOrientation: 1
    }
  ) {
    success
  }
}