From cb92d68ecb43cef81239ab9ef5168956cbe67a27 Mon Sep 17 00:00:00 2001 From: SwoopX Date: Thu, 14 Dec 2023 14:28:15 +0100 Subject: [PATCH] DDF for Ikea Parasoll open/close sensor (#7445) --- devices/ikea/parasoll_open_close_sensor.json | 143 +++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 devices/ikea/parasoll_open_close_sensor.json diff --git a/devices/ikea/parasoll_open_close_sensor.json b/devices/ikea/parasoll_open_close_sensor.json new file mode 100644 index 0000000000..cd73c6bff4 --- /dev/null +++ b/devices/ikea/parasoll_open_close_sensor.json @@ -0,0 +1,143 @@ +{ + "schema": "devcap1.schema.json", + "manufacturername": "$MF_IKEA", + "modelid": "PARASOLL Door/Window Sensor", + "product": "PARASOLL Door/Window Sensor", + "sleeper": true, + "status": "Gold", + "subdevices": [ + { + "type": "$TYPE_OPEN_CLOSE_SENSOR", + "restapi": "/sensors", + "uuid": [ + "$address.ext", + "0x02", + "0x0500" + ], + "fingerprint": { + "profile": "0x0104", + "device": "0x0402", + "endpoint": "0x02", + "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", + "refresh.interval": 86400 + }, + { + "name": "attr/type" + }, + { + "name": "attr/uniqueid" + }, + { + "name": "config/battery", + "awake": true, + "parse": { + "at": "0x0021", + "cl": "0x0001", + "ep": 1, + "eval": "Item.val = Attr.val / 2;", + "fn": "zcl:attr" + }, + "read": { + "fn": "none" + } + }, + { + "name": "config/checkin", + "default": 14400, + "parse": { + "fn": "zcl:attr", + "ep": 1, + "cl": "0x0020", + "at": "0x0000", + "eval": "Item.val = Attr.val" + }, + "read": { + "fn": "zcl:attr", + "ep": 1, + "cl": "0x0020", + "at": "0x0000" + }, + "write": { + "fn": "zcl:attr", + "ep": 1, + "cl": "0x0020", + "at": "0x0000", + "dt": "0x23", + "eval": "Item.val" + }, + "refresh.interval": 3600 + }, + { + "name": "config/enrolled" + }, + { + "name": "config/on" + }, + { + "name": "config/pending" + }, + { + "name": "config/reachable" + }, + { + "name": "state/lastupdated" + }, + { + "name": "state/lowbattery", + "awake": true + }, + { + "name": "state/open", + "awake": true + } + ] + } + ], + "bindings": [ + { + "bind": "unicast", + "src.ep": 1, + "cl": "0x0001", + "report": [ + { + "at": "0x0021", + "dt": "0x20", + "min": 3600, + "max": 43200, + "change": "0x00000002" + } + ] + }, + { + "bind": "unicast", + "src.ep": 2, + "cl": "0x0500" + } + ] +} \ No newline at end of file