DDF: Philips motion sensor add more read/parse functions (wip)
"modelid": "SML001",
"product": "SML001",
"status": "Gold",
+ "sleeper": false,
"md:known_issues": [ ],
"subdevices": [
{
"name": "config/delay"
},
{
- "name": "config/ledindication"
+ "name": "config/ledindication",
+ "read": {"cl": "0x0000", "at": "0x0033", "mf": "0x100b"},
+ "parse": {"cl": "0x0000", "at": "0x0033", "eval": "Item.val = Attr.val"},
+ "refresh.interval": 84000
},
{
"name": "config/on"
[0, "low"],
[1, "medium"],
[2, "high"]
- ]
+ ],
+ "read": {"cl": "0x0406", "at": "0x0030", "mf": "0x100b"},
+ "parse": {"cl": "0x0406", "at": "0x0030", "eval": "Item.val == 0 ? Item.val = Attr.val : Item.val"},
+ "refresh.interval": 84000
},
{
"name": "config/sensitivitymax",
"default": 2
},
{
- "name": "config/usertest"
+ "name": "config/usertest",
+ "read": {"cl": "0x0000", "at": "0x0032", "mf": "0x100b"},
+ "parse": {"cl": "0x0000", "at": "0x0032", "eval": "Item.val = Attr.val"},
+ "refresh.interval": 84000
},
{
"name": "state/lastupdated"
},
{
"name": "state/presence",
+ "parse": {"cl": "0x0406", "at": "0x0000", "eval": "Item.val = Attr.val"},
"awake": true
}
],
},
{
"name": "state/lightlevel",
+ "parse": {"cl": "0x0400", "at": "0x0000", "eval": "Item.val = Attr.val"},
"awake": true
},
{
},
{
"name": "state/temperature",
+ "parse": {"cl": "0x0402", "at": "0x0000", "eval": "Item.val = Attr.val"},
"awake": true
}
],
