{
   "schema":"devcap1.schema.json",
   "manufacturername":["Schneider Electric", "Schneider Electric"],
   "modelid":["LK/OUTLET/1", "SOCKET/OUTLET/1"],
   "product":"Connected socket outlet 16A",
   "sleeper":false,
   "status":"Gold",
   "subdevices":[
      {
         "type":"$TYPE_ON_OFF_PLUGIN_UNIT",
         "restapi":"/lights",
         "uuid":[
            "$address.ext",
            "0x06"
         ],
         "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":"state/alert"
            },
            {
               "name":"state/on",
               "refresh.interval":360
            },
            {
               "name":"state/reachable"
            }
         ]
      },
      {
         "type":"$TYPE_POWER_SENSOR",
         "restapi":"/sensors",
         "uuid":[
            "$address.ext",
            "0x06",
            "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/current",
               "refresh.interval":360
            },
            {
               "name":"state/lastupdated"
            },
            {
               "name":"state/power",
               "refresh.interval":360,
               "read":{
                  "at":"0x0400",
                  "cl":"0x0702",
                  "ep":6,
                  "fn":"zcl:attr"
               },
               "parse":{
                  "at":"0x0400",
                  "cl":"0x0702",
                  "ep":6,
                  "eval":"if (Attr.val != -32768) { Item.val = Attr.val / 1000; }"
               }
            },
            {
               "name":"state/voltage",
               "refresh.interval":360
            }
         ]
      },
      {
         "type":"$TYPE_CONSUMPTION_SENSOR",
         "restapi":"/sensors",
         "uuid":[
            "$address.ext",
            "0x06",
            "0x0702"
         ],
         "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/consumption",
               "refresh.interval":360
            },
            {
               "name":"state/lastupdated"
            }
         ]
      }
   ],
   "bindings":[
      {
         "bind":"unicast",
         "src.ep":6,
         "cl":"0x0006",
         "report":[
            {
               "at":"0x0000",
               "dt":"0x10",
               "min":1,
               "max":300
            }
         ]
      },
      {
         "bind":"unicast",
         "src.ep":6,
         "cl":"0x0B04",
         "report":[
            {
               "at":"0x0505",
               "dt":"0x21",
               "min":1,
               "max":300,
               "change":"0x00000001"
            },
            {
               "at":"0x0508",
               "dt":"0x21",
               "min":1,
               "max":300,
               "change":"0x00000001"
            }
         ]
      },
      {
         "bind":"unicast",
         "src.ep":6,
         "cl":"0x0702",
         "report":[
            {
               "at":"0x0000",
               "dt":"0x25",
               "min":1,
               "max":300,
               "change":"0x00000001"
            },
            {
               "at":"0x0400",
               "dt":"0x2A",
               "min":1,
               "max":300,
               "change":"0x000003E8"
            }
         ]
      }
   ]
}