### Link
https://www.aliexpress.com/item/1005005590094557.html
### Database en…try
{"id":7,"type":"Router","ieeeAddr":"0xa4c1387b77e1a0c5","nwkAddr":9648,"manufId":4417,"manufName":"_TZE204_mhxn2jso","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"�@n,i\u001fAn,i An,i!An,i"An,i3An,i8An,i�@n,i","65506":56,"65508":0,"modelId":"TS0601","manufacturerName":"_TZE204_mhxn2jso","powerSource":1,"zclVersion":3,"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1692079890196,"defaultSendRequestWhen":"immediate"}
### Comments
<html><body>
<h2 dir="auto">Here is the dp point information I obtained from the supplier:</h2>
DP ID | 标识符 | 数据传输类型 | 数据类型 | 功能点属性
-- | -- | -- | -- | --
1 | presence_state | 只上报(ro) | enum | 枚举值: none, presence
12 | presence_time | 可下发可上报(rw) | value | 数值范围: 1-3600, 间距: 1, 倍数: 0, 单位: s
19 | dis_current | 只上报(ro) | value | 数值范围: 0-1000, 间距: 1, 倍数: 0, 单位: cm
20 | illuminance_value | 只上报(ro) | value | 数值范围: 0-10000, 间距: 1, 倍数: 0, 单位: lux
101 | sensitivity | 可下发可上报(rw) | value | 数值范围: 0-10, 间距: 1, 倍数: 0, 单位:
102 | presence_delay | 可下发可上报(rw) | value | 数值范围: 5-3600, 间距: 1, 倍数: 0, 单位: s
111 | minimum_range | 可下发可上报(rw) | value | 数值范围: 0-1000, 间距: 50, 倍数: 0, 单位: cm
112 | maximum_range | 可下发可上报(rw) | value | 数值范围: 50-1000, 间距: 50, 倍数: 0, 单位: cm
</body>
</html>
### External converter
```shell
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
fingerprint: [
{modelID: 'TS0601', manufacturerName: '_TZE204_mhxn2jso'},
],
model: 'rtsc11r',
vendor: 'TuYa',
description: '5.8G human presence sensor with relay',
configure: tuya.configureMagicPacket,
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
onEvent: tuya.onEventSetTime,
exposes: [
e.enum('presence_state',ea.STATE,['none','presence']).withDescription('none : did not checkout '),
e.numeric('dis_current',ea.STATE).withValueMin(0).withValueMax(1000).withValueStep(1)
.withDescription('Entry distance indentation').withUnit('cm'),
e.numeric('illuminance_value',ea.STATE).withValueMin(0).withValueMax(10000).withValueStep(1)
.withDescription('Illumination threshold for switching on').withUnit('lux'),
e.numeric('presence_time',ea.STATE_SET).withValueMin(1).withValueMax(3600).withValueStep(1)
.withDescription('Entry filter time').withUnit('s'),
e.numeric('sensitivity',ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(1)
.withDescription('Sensitivity of sensors'),
e.numeric('presence_delay',ea.STATE_SET).withValueMin(5).withValueMax(3600).withValueStep(1)
.withDescription('Turn off delay').withUnit('s'),
e.numeric('minimum_range',ea.STATE_SET).withValueMin(0).withValueMax(1000).withValueStep(50)
.withDescription('Detection range').withUnit('m'),
e.numeric('maximum_range',ea.STATE_SET).withValueMin(50).withValueMax(1000).withValueStep(50)
.withDescription('Detection range').withUnit('m'),
],
meta: {
tuyaDatapoints:[
[1, 'presence_state', tuya.valueConverterBasic.lookup({'none': tuya.enum(0), 'presence': tuya.enum(1)})],
[12,'presence_time',tuya.valueConverter.divideBy10],
[19,'dis_current',tuya.valueConverter.raw],
[20,'illuminance_value',tuya.valueConverter.raw],
[101,'sensitivity',tuya.valueConverter.divideBy10],
[102,'presence_delay',tuya.valueConverter.raw],
[111,'minimum_range',tuya.valueConverter.divideBy100],
[112,'maximum_range',tuya.valueConverter.divideBy100],
],
},
};
module.exports = definition;
```
### Supported color modes
_No response_
### Color temperature range
_No response_