|
| 1 | +{ |
| 2 | + "schema": "devcap1.schema.json", |
| 3 | + "uuid": "91b9c12c-2b50-4efc-a23f-2d3042e60b73", |
| 4 | + "manufacturername": "Third Reality, Inc", |
| 5 | + "modelid": "3RDS17BZ", |
| 6 | + "vendor": "Third Reality", |
| 7 | + "product": "Contact Sensor (3RDS17BZ)", |
| 8 | + "sleeper": true, |
| 9 | + "status": "Gold", |
| 10 | + "subdevices": [ |
| 11 | + { |
| 12 | + "type": "$TYPE_OPEN_CLOSE_SENSOR", |
| 13 | + "restapi": "/sensors", |
| 14 | + "uuid": [ |
| 15 | + "$address.ext", |
| 16 | + "0x01", |
| 17 | + "0x0500" |
| 18 | + ], |
| 19 | + "items": [ |
| 20 | + { |
| 21 | + "name": "attr/id" |
| 22 | + }, |
| 23 | + { |
| 24 | + "name": "attr/lastannounced" |
| 25 | + }, |
| 26 | + { |
| 27 | + "name": "attr/lastseen" |
| 28 | + }, |
| 29 | + { |
| 30 | + "name": "attr/manufacturername" |
| 31 | + }, |
| 32 | + { |
| 33 | + "name": "attr/modelid" |
| 34 | + }, |
| 35 | + { |
| 36 | + "name": "attr/name" |
| 37 | + }, |
| 38 | + { |
| 39 | + "name": "attr/swversion" |
| 40 | + }, |
| 41 | + { |
| 42 | + "name": "attr/type" |
| 43 | + }, |
| 44 | + { |
| 45 | + "name": "attr/uniqueid" |
| 46 | + }, |
| 47 | + { |
| 48 | + "name": "config/battery", |
| 49 | + "read": { |
| 50 | + "fn": "zcl:attr", |
| 51 | + "ep": 1, |
| 52 | + "cl": "0x0001", |
| 53 | + "at": "0x0021" |
| 54 | + }, |
| 55 | + "parse": { |
| 56 | + "at": "0x0021", |
| 57 | + "cl": "0x0001", |
| 58 | + "ep": 1, |
| 59 | + "eval": "Item.val = Attr.val / 2;", |
| 60 | + "fn": "zcl:attr" |
| 61 | + }, |
| 62 | + "awake": true, |
| 63 | + "refresh.interval": 84600 |
| 64 | + }, |
| 65 | + { |
| 66 | + "name": "config/delay", |
| 67 | + "description": "Delay (in seconds) until opening is reported.", |
| 68 | + "parse": { |
| 69 | + "fn": "zcl:attr", |
| 70 | + "mf": "0x1233", |
| 71 | + "ep": 1, |
| 72 | + "cl": "0xff01", |
| 73 | + "at": "0x0000", |
| 74 | + "eval": "Item.val = Attr.val" |
| 75 | + }, |
| 76 | + "read": { |
| 77 | + "fn": "zcl:attr", |
| 78 | + "mf": "0x1233", |
| 79 | + "ep": 1, |
| 80 | + "cl": "0xff01", |
| 81 | + "at": "0x0000" |
| 82 | + }, |
| 83 | + "write": { |
| 84 | + "fn": "zcl:attr", |
| 85 | + "mf": "0x1233", |
| 86 | + "ep": 1, |
| 87 | + "cl": "0xff01", |
| 88 | + "at": "0x0000", |
| 89 | + "dt": "0x21", |
| 90 | + "eval": "Item.val" |
| 91 | + } |
| 92 | + }, |
| 93 | + { |
| 94 | + "name": "config/enrolled" |
| 95 | + }, |
| 96 | + { |
| 97 | + "name": "config/on" |
| 98 | + }, |
| 99 | + { |
| 100 | + "name": "config/pending" |
| 101 | + }, |
| 102 | + { |
| 103 | + "name": "config/reachable" |
| 104 | + }, |
| 105 | + { |
| 106 | + "name": "state/lastupdated" |
| 107 | + }, |
| 108 | + { |
| 109 | + "name": "state/lowbattery", |
| 110 | + "awake": true |
| 111 | + }, |
| 112 | + { |
| 113 | + "name": "state/open", |
| 114 | + "parse": { |
| 115 | + "fn": "ias:zonestatus", |
| 116 | + "mask": "alarm1" |
| 117 | + }, |
| 118 | + "read": { |
| 119 | + "fn": "zcl:attr", |
| 120 | + "ep": 1, |
| 121 | + "cl": "0x0500", |
| 122 | + "at": "0x0002" |
| 123 | + }, |
| 124 | + "awake": true, |
| 125 | + "refresh.interval": 84600 |
| 126 | + } |
| 127 | + ] |
| 128 | + } |
| 129 | + ], |
| 130 | + "bindings": [ |
| 131 | + { |
| 132 | + "bind": "unicast", |
| 133 | + "src.ep": 1, |
| 134 | + "cl": "0x0500" |
| 135 | + }, |
| 136 | + { |
| 137 | + "bind": "unicast", |
| 138 | + "src.ep": 1, |
| 139 | + "cl": "0x0001" |
| 140 | + } |
| 141 | + ] |
| 142 | +} |
0 commit comments