Update e1c-nb7.json to add pseudo power cluster for third party apps.
"modelid": "E1C-NB7",
"product": "E1C-NB7",
"sleeper": false,
- "status": "Gold",
+ "status": "Silver",
"path": "/devices/sengled/e1c-nb7.json",
"subdevices": [
{
{
"name": "state/consumption",
"refresh.interval": 360,
+ "default": 0
+ },
+ {
+ "name": "state/lastupdated"
+ },
+ {
+ "name": "state/power",
+ "refresh.interval": 360,
"read": {
- "at": "0x0000",
+ "at": "0x0400",
"cl": "0x0702",
"ep": 0,
"fn": "zcl"
},
"parse": {
- "at": "0x0000",
+ "at": "0x0400",
"cl": "0x0702",
"ep": 0,
"eval": "if (Attr.val != -32768) { Item.val = Attr.val / 10; }"
+ },
+ "default": 0
}
+ ]
+ },
+ {
+ "type": "$TYPE_POWER_SENSOR",
+ "restapi": "/sensors",
+ "uuid": [
+ "$address.ext",
+ "0x01",
+ "0x0b04"
+ ],
+ "items": [
+ {
+ "name": "attr/id"
+ },
+ {
+ "name": "attr/lastannounced"
+ },
+ {
+ "name": "attr/lastseen"
+ },
+ {
+ "name": "attr/manufacturername"
+ },
+ {
+ "name": "attr/modelid"
+ },
+ {
+ "name": "attr/name"
+ },
+ {
+ "name": "attr/swversion"
+ },
+ {
+ "name": "attr/type"
+ },
+ {
+ "name": "attr/uniqueid"
+ },
+ {
+ "name": "config/on"
+ },
+ {
+ "name": "config/reachable"
},
{
"name": "state/lastupdated"
"read": {
"at": "0x0400",
"cl": "0x0702",
- "ep": 0,
+ "ep": 1,
"fn": "zcl"
},
"parse": {
"at": "0x0400",
"cl": "0x0702",
- "ep": 0,
+ "ep": 1,
"eval": "if (Attr.val != -32768) { Item.val = Attr.val / 10; }"
- }
+ },
+ "default": 0
}
]
}
