Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDF for IKEA STYRBAR Remote Control N2 #7232

Merged
merged 11 commits into from Sep 16, 2023
63 changes: 46 additions & 17 deletions devices/ikea/styrbar_remote_control.json
Expand Up @@ -2,7 +2,7 @@
"schema": "devcap1.schema.json",
"manufacturername": "$MF_IKEA",
"modelid": "Remote Control N2",
"product": "STYRBAR remote control",
"product": "STYRBAR remote control - E2002",
"sleeper": true,
"status": "Gold",
"subdevices": [
Expand Down Expand Up @@ -48,6 +48,23 @@
{
"name": "attr/name"
},
{
"name": "attr/productid",
"parse": {
"fn": "zcl:attr",
"ep": 1,
"cl": "0x0000",
"at": "0x000A",
"eval": "Item.val = Attr.val"
},
"read": {
"fn": "zcl:attr",
"ep": 1,
"cl": "0x0000",
"at": "0x000A"
},
"refresh.interval": 86400
},
{
"name": "attr/swversion"
},
Expand All @@ -57,16 +74,27 @@
{
"name": "attr/uniqueid"
},
{
"name": "config/alert"
},
{
"name": "config/battery",
"awake": true,
"parse": {
"fn": "zcl",
"fn": "zcl:attr",
"ep": 1,
"cl": "0x0001",
"at": "0x0021",
"eval": "Item.val = Math.round(Attr.val / 2)"
},
"default": 0
"default": 0,
"read": {
"fn": "zcl:attr",
"ep": 1,
"cl": "0x0001",
"at": "0x0021"
},
"refresh.interval": 86400
},
{
"name": "config/on"
Expand All @@ -75,7 +103,8 @@
"name": "config/reachable"
},
{
"name": "state/buttonevent"
"name": "state/buttonevent",
"awake": true
},
{
"name": "state/lastupdated"
Expand All @@ -87,31 +116,31 @@
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0001",
"report": [
{
"at": "0x0021",
"dt": "0x20",
"min": 300,
"max": 2700,
"change": "0x00000001"
}
]
"cl": "0x0006"
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0006"
"cl": "0x0008"
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0008"
"cl": "0x0005"
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0005"
"cl": "0x0001",
"report": [
{
"at": "0x0021",
"dt": "0x20",
"min": 300,
"max": 2700,
"change": "0x01"
}
]
}
]
}