Advertisement
Guest User

Untitled

a guest
Feb 1st, 2022
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.34 KB | None | 0 0
  1. {
  2.   "schema": "devcap1.schema.json",
  3.   "manufacturername": "OWON",
  4.   "modelid": "THS317-ET",
  5.   "product": "THS317-ET",
  6.   "sleeper": true,
  7.   "status": "Gold",
  8.   "path": "/devices/ths317-et.json",
  9.   "subdevices": [
  10.     {
  11.       "type": "$TYPE_TEMPERATURE_SENSOR",
  12.       "restapi": "/sensors",
  13.       "uuid": [
  14.         "$address.ext",
  15.         "0x03",
  16.         "0x0402"
  17.       ],
  18.       "items": [
  19.         {
  20.           "name": "attr/id"
  21.         },
  22.         {
  23.           "name": "attr/lastannounced"
  24.         },
  25.         {
  26.           "name": "attr/lastseen"
  27.         },
  28.         {
  29.           "name": "attr/manufacturername"
  30.         },
  31.         {
  32.           "name": "attr/modelid"
  33.         },
  34.         {
  35.           "name": "attr/name"
  36.         },
  37.         {
  38.           "name": "attr/swversion"
  39.         },
  40.         {
  41.           "name": "attr/type"
  42.         },
  43.         {
  44.           "name": "attr/uniqueid"
  45.         },
  46.         {
  47.           "name": "config/offset",
  48.           "default": 0
  49.         },
  50.         {
  51.           "name": "config/on"
  52.         },
  53.         {
  54.           "name": "config/reachable"
  55.         },
  56.         {
  57.             "name": "config/battery",
  58.             "parse": {"cl": "0x0001", "at": "0x0021", "ep": 3, "eval": "Item.val = Attr.val"},
  59.             "awake": true
  60.         },
  61.         {
  62.           "name": "state/lastupdated"
  63.         },
  64.           {
  65.           "name": "state/temperature",
  66.           "awake": true,
  67.           "refresh.interval": 120,
  68.           "read": {
  69.             "at": "0x0000",
  70.             "cl": "0x0402",
  71.             "ep": 3,
  72.             "fn": "zcl"
  73.           },
  74.           "parse": {
  75.             "at": "0x0000",
  76.             "cl": "0x0402",
  77.             "ep": 3,
  78.             "eval": "Item.val = Attr.val",
  79.             "fn": "zcl"
  80.           }
  81.         }
  82.       ]
  83.     }
  84.   ],
  85.   "bindings": [
  86.     {
  87.       "bind": "unicast",
  88.       "src.ep": 3,
  89.       "cl": "0x0001",
  90.       "report": [
  91.         {
  92.           "at": "0x0020",
  93.           "dt": "0x21",
  94.           "min": 300,
  95.           "max": 3000,
  96.           "change": "0x00000001"
  97.         }
  98.       ]
  99.     },
  100.     {
  101.       "bind": "unicast",
  102.       "src.ep": 3,
  103.       "cl": "0x0402",
  104.       "report": [
  105.         {
  106.           "at": "0x0000",
  107.           "dt": "0x29",
  108.           "min": 10,
  109.           "max": 300,
  110.           "change": "0x00000014"
  111.         }
  112.       ]
  113.     }
  114.   ]
  115. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement