{ "schema": "devcap1.schema.json", "manufacturername": [ "_TZE200_ztc6ggyl", "_TZE204_ztc6ggyl" ], "modelid": [ "TS0601", "TS0601" ], "product": "Human Presence Detector - ZY-M100", "sleeper": true, "status": "Silver", "subdevices": [ { "type": "$TYPE_LIGHT_LEVEL_SENSOR", "restapi": "/sensors", "uuid": [ "$address.ext", "0x01", "0x0400" ], "items": [ { "name": "attr/lastseen" }, { "name": "attr/manufacturername" }, { "name": "attr/modelid" }, { "name": "attr/name" }, { "name": "attr/swversion", "refresh.interval": 84000, "read": { "at": "0x0001", "cl": "0x0000", "ep": 1, "fn": "zcl" }, "parse": { "at": "0x0001", "cl": "0x0000", "ep": 1, "fn": "zcl", "script": "tuya_swversion.js" } }, { "name": "attr/type" }, { "name": "attr/uniqueid" }, { "name": "config/on" }, { "name": "config/reachable" }, { "name": "state/lastupdated" }, { "name": "state/lux", "description": "The current light intensity in Lux (max is 2000)", "read": { "fn": "none" }, "parse": { "dpid": 104, "eval": "Item.val = Attr.val;", "fn": "tuya" }, "default": 0 } ] }, { "type": "$TYPE_PRESENCE_SENSOR", "restapi": "/sensors", "uuid": [ "$address.ext", "0x01", "0xef00" ], "items": [ { "name": "attr/id" }, { "name": "attr/lastannounced" }, { "name": "attr/lastseen" }, { "name": "attr/manufacturername" }, { "name": "attr/modelid" }, { "name": "attr/name" }, { "name": "attr/swversion", "refresh.interval": 84000, "read": { "at": "0x0001", "cl": "0x0000", "ep": 1, "fn": "zcl" }, "parse": { "at": "0x0001", "cl": "0x0000", "ep": 1, "fn": "zcl", "script": "tuya_swversion.js" } }, { "name": "attr/type" }, { "name": "attr/uniqueid" }, { "name": "config/delay", "description": "Detection delay : target confirmation delay time in 10th of second (from 0 to 100). Default 0.1s", "read": { "fn": "none" }, "write": { "dpid": 101, "dt": "0x2b", "eval": "Item.val;", "fn": "tuya" }, "parse": { "dpid": 101, "eval": "Item.val = Attr.val;", "fn": "tuya" }, "default": 1 }, { "name": "config/duration", "description": "Fading time : target disapperance delay time in second (from 0 to 15000). Default 90s", "range": [0, 15000], "read": { "fn": "none" }, "write": { "dpid": 102, "dt": "0x2b", "eval": "Item.val;", "fn": "tuya" }, "parse": { "dpid": 102, "eval": "Item.val = Attr.val;", "fn": "tuya" }, "default": 90 }, { "name": "config/on" }, { "name": "config/reachable" }, { "name": "config/sensitivity", "description": "Radar sensitivity (from 1 to 9). Default 7", "range": [1, 9], "read": { "fn": "none" }, "write": { "dpid": 2, "dt": "0x2b", "eval": "Item.val;", "fn": "tuya" }, "parse": { "dpid": 2, "eval": "Item.val = Attr.val;", "fn": "tuya" }, "default": 7 }, { "name": "config/sensitivitymax", "description": "Far detection sensitivity in cm. From 0 to 1000. Default 1000", "range": [0, 1000], "read": { "fn": "none" }, "write": { "dpid": 4, "dt": "0x2b", "eval": "Item.val;", "fn": "tuya" }, "parse": { "dpid": 4, "eval": "Item.val = Attr.val;", "fn": "tuya" } }, { "name": "state/angle", "description": "Distance from detected target in cm (from 0 to 1000).", "read": { "fn": "none" }, "parse": { "dpid": 9, "eval": "Item.val = Attr.val;", "fn": "tuya" }, "default": 0 }, { "name": "state/errorcode", "description": "Self check result code. \n0 = checking, 1 = check_success, 2 = check_failure, 3 = others, 4 = comm_fault, 5 = radar_fault", "read": { "fn": "none" }, "parse": { "dpid": 6, "eval": "Item.val = Attr.val;", "fn": "tuya" }, "default": "1" }, { "name": "state/lastupdated" }, { "name": "state/presence", "refresh.interval": 5, "read": { "fn": "none" }, "parse": { "dpid": 1, "eval": "Item.val = Attr.val;", "fn": "tuya" }, "default": false } ] } ], "bindings": [ { "bind": "unicast", "src.ep": 1, "cl": "0xEF00" }, { "bind": "unicast", "src.ep": 1, "cl": "0x0006" } ] }