Skip to content

Commit

Permalink
DDF for Ikea Parasoll open/close sensor (#7445)
Browse files Browse the repository at this point in the history
  • Loading branch information
SwoopX authored Dec 14, 2023
1 parent ada727e commit cb92d68
Showing 1 changed file with 143 additions and 0 deletions.
143 changes: 143 additions & 0 deletions devices/ikea/parasoll_open_close_sensor.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}

0 comments on commit cb92d68

Please sign in to comment.