DDF: IEKA KADRILJ simplify zcl parse
{
"name": "attr/lastseen"
},
+ {
+ "name": "config/checkin",
+ "default": 480
+ },
{
"name": "state/lift",
- "parse": {"fn": "zcl", "ep": 1, "cl": "0x0102", "at": "0x0008", "eval": "Item.val = Attr.val"}
+ "parse": {"cl": "0x0102", "at": "0x0008", "eval": "Item.val = Attr.val"}
},
{
"name": "state/open",
- "parse": {"fn": "zcl", "ep": 1, "cl": "0x0102", "at": "0x0008", "eval": "Item.val = Attr.val < 100"}
+ "parse": {"cl": "0x0102", "at": "0x0008", "eval": "Item.val = Attr.val < 100"}
},
{
"name": "state/reachable"
},
- {
- "name": "config/checkin",
- "public": false,
- "default": 480
- },
{
"name": "state/bri",
"description": "The lift state in earlier versions, use <code class=\"api-attribute\">lift</code> instead.",
- "parse": {"fn": "zcl", "ep": 1, "cl": "0x0102", "at": "0x0008", "eval": "Item.val = Attr.val * 254 / 100"},
+ "parse": {"cl": "0x0102", "at": "0x0008", "eval": "Item.val = Attr.val * 254 / 100"},
"deprecated": "2020-04-08"
},
{
"name": "state/on",
"description": "The open state in earlier versions, use <code class=\"api-attribute\">open</code> instead.",
- "parse": {"fn": "zcl", "ep": 1, "cl": "0x0102", "at": "0x0008", "eval": "Item.val = Attr.val < 100"},
+ "parse": {"cl": "0x0102", "at": "0x0008", "eval": "Item.val = Attr.val < 100"},
"deprecated": "2020-04-08"
}
],
},
{
"name": "state/battery",
- "parse": {"fn": "zcl", "ep": 1, "cl": "0x0001", "at": "0x0021", "eval": "Item.val = Attr.val"}
+ "parse": {"cl": "0x0001", "at": "0x0021", "eval": "Item.val = Attr.val"}
},
{
"name": "state/lastupdated"
