Tuya TS020C
| Model | TS020C |
| Vendor | Tuya |
| Description | PIR sensor |
| Exposes | occupancy, battery, illuminance, sensitivity, hold_time, light_interval |
| Picture | ![]() |
Options
How to use device type specific configuration
illuminance_calibration: Calibrates the illuminance value (percentual offset), takes into effect on next report of device. The value must be a number.
Exposes
Occupancy (binary)
Indicates whether the device detected occupancy. Value can be found in the published state on the occupancy property. It's not possible to read (/get) or write (/set) this value. If value equals true occupancy is ON, if false OFF.
Battery (numeric)
Remaining battery in %, can take up to 24 hours before reported. Value can be found in the published state on the battery property. It's not possible to read (/get) or write (/set) this value. The minimal value is 0 and the maximum value is 100. The unit of this value is %.
Illuminance (numeric)
Measured illuminance. Value can be found in the published state on the illuminance property. It's not possible to read (/get) or write (/set) this value. The unit of this value is lx.
Sensitivity (enum)
PIR sensor sensitivity (refresh and update only while active). Value can be found in the published state on the sensitivity property. It's not possible to read (/get) this value. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"sensitivity": NEW_VALUE}. The possible values are: low, medium, high.
Hold time (enum)
PIR keep time in seconds (refresh and update only while active). Value can be found in the published state on the hold_time property. It's not possible to read (/get) this value. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"hold_time": NEW_VALUE}. The possible values are: 10, 30, 60, 120.
Light interval (numeric)
Brightness acquisition interval (refresh and update only while active). Value can be found in the published state on the light_interval property. It's not possible to read (/get) this value. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"light_interval": NEW_VALUE}. The minimal value is 1 and the maximum value is 720. The unit of this value is minutes.

