From da31aa2f82069d693c3b2e18fd6469f4ab3cbdae Mon Sep 17 00:00:00 2001 From: Smanar Date: Sun, 1 Dec 2024 19:30:39 +0100 Subject: [PATCH] Create 4512763_motion_sensor.json --- devices/namron/4512763_motion_sensor.json | 127 ++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 devices/namron/4512763_motion_sensor.json diff --git a/devices/namron/4512763_motion_sensor.json b/devices/namron/4512763_motion_sensor.json new file mode 100644 index 0000000000..da8c0977ce --- /dev/null +++ b/devices/namron/4512763_motion_sensor.json @@ -0,0 +1,127 @@ +{ + "schema": "devcap1.schema.json", + "manufacturername": "Namron AS", + "modelid": "4512763", + "vendor": "Namron", + "product": "Motion sensor (4512763)", + "sleeper": true, + "status": "Gold", + "subdevices": [ + { + "type": "$TYPE_PRESENCE_SENSOR", + "restapi": "/sensors", + "uuid": [ + "$address.ext", + "0x01", + "0x0500" + ], + "fingerprint": { + "profile": "0x0104", + "device": "0x0402", + "endpoint": "0x01", + "in": [ + "0x0000", + "0x0001", + "0x0500" + ] + }, + "items": [ + { + "name": "attr/id" + }, + { + "name": "attr/lastannounced" + }, + { + "name": "attr/lastseen" + }, + { + "name": "attr/manufacturername" + }, + { + "name": "attr/modelid" + }, + { + "name": "attr/name" + }, + { + "name": "attr/swversion" + }, + { + "name": "attr/type" + }, + { + "name": "attr/uniqueid" + }, + { + "name": "config/battery", + "awake": true, + "refresh.interval": 86400, + "read": { + "at": "0x0021", + "cl": "0x0001", + "ep": 1, + "fn": "zcl:attr" + }, + "parse": { + "at": "0x0021", + "cl": "0x0001", + "ep": 1, + "fn": "zcl:attr", + "eval": "Item.val = Attr.val / 2" + } + }, + { + "name": "config/checkin" + }, + { + "name": "config/enrolled" + }, + { + "name": "config/on" + }, + { + "name": "config/pending" + }, + { + "name": "config/reachable" + }, + { + "name": "state/lastupdated" + }, + { + "name": "state/lowbattery" + }, + { + "name": "state/presence", + "awake": true + }, + { + "name": "state/tampered", + "awake": true + } + ] + } + ], + "bindings": [ + { + "bind": "unicast", + "src.ep": 1, + "cl": "0x0500" + }, + { + "bind": "unicast", + "src.ep": 1, + "cl": "0x0001", + "report": [ + { + "at": "0x0021", + "dt": "0x20", + "min": 300, + "max": 43200, + "change": "0x00000001" + } + ] + } + ] +} \ No newline at end of file