For the complete documentation index, see llms.txt. This page is also available as Markdown.

PIR (Motion sensor)

PIR State

This commands allow you to set/get the PIR state - whether it's enabled or disabled at all. By default, the PIR is enabled.

Byte index

Hex value – Meaning

0

36 – The command code.

1

00 – Disable the PIR sensor;

01 – Enable the PIR sensor. Default state.

Example downlink: 0x3600 – Disable the PIR sensor.

Byte index

Sent request

Received response

0

37 – Command code

37 – Command code

1

00 - The PIR sensor is disabled. 01 - The PIR sensor is enabled.

Example command: 0x37

Example response: 0x3700 – The PIR sensor is disabled.

Occupancy timeout

Byte index

Hex value – Meaning

0

38 – The command code.

1

XX – Occupancy timeout data, bits 15:8;

2

XX – Occupancy timeout data, bits 7:0. Default value is 5min.

Example command: 0x38003C – Set the occupancy timeout to 1min.

Byte index

Sent request

Received response

0

39 – Command code

39 – Command code

1

XX - Occupancy timeout - bits 15:8

2

XX - Occupancy timeout - bits 7:0

Example command: 0x39

Example response: 0x39003C – The occupancy timeout is 1min.

Note: Acceptable values: 15...65535sec. (1sec. resolution).

PIR Sensitivity

The PIR sensitivity can be set from 12 to 255. The minimum value we advise setting is 12 or 0x0C - the sensor will be super sensitive to movements.

Byte index

Hex value – Meaning

0

3Е – The command code.

1

XX - PIR sensor sensitivity. Default value is 20.

Example command: 0x3E1E – Set PIR sensor sensitivity to 30.

Byte index

Sent request

Received response

0

3F – Command code

3F – Command code

1

XX - The sensitivity of the PIR sensor

Example command: 0x3F

Example response: 0x3F1E – The sensitivity of the PIR sensor is 0x1E => converted to decimal => 30.

Note: Acceptable values: 12...255.

Last updated

Was this helpful?