Advertisement
Guest User

Untitled

a guest
Sep 24th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.48 KB | None | 0 0
  1. {
  2.     "@type": [
  3.         "Lock"
  4.     ],
  5.     "description": "Lock model XYZ",
  6.     "id": "lockID",
  7.     "title": "Lock by LockCompany",
  8.     "@context": "https://iot.mozilla.org/schemas",
  9.     "actions": {},
  10.     "events": {},
  11.     "properties": {
  12.         "currentLocked": {
  13.             "@type": "LockedProperty",
  14.             "description": "Whether the lock is currently locked",
  15.             "links": [
  16.                 {
  17.                     "rel": "property",
  18.                     "href": "/properties/currentLocked"
  19.                 }
  20.             ],
  21.             "type": "string",
  22.             "title": "Current Lock State",
  23.             "readOnly": true,
  24.             "enum": [
  25.                 "locked",
  26.                 "unlocked",
  27.                 "unknown",
  28.                 "jammed"
  29.             ]
  30.         },
  31.         "targetLocked": {
  32.             "@type": "TargetLockedProperty",
  33.             "description": "The target state of the lock",
  34.             "links": [
  35.                 {
  36.                     "rel": "property",
  37.                     "href": "/properties/targetLocked"
  38.                 }
  39.             ],
  40.             "type": "boolean",
  41.             "title": "Target Lock State"
  42.         }
  43.     },
  44.     "links": [
  45.         {
  46.             "rel": "properties",
  47.             "href": "/properties"
  48.         },
  49.         {
  50.             "rel": "actions",
  51.             "href": "/actions"
  52.         },
  53.         {
  54.             "rel": "events",
  55.             "href": "/events"
  56.         }
  57.     ]
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement