Advertisement
Guest User

Untitled

a guest
Sep 24th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.53 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.         "LockedProperty": {
  13.             "@type": "LockedProperty",
  14.             "description": "Whether the lock is currently locked",
  15.             "links": [
  16.                 {
  17.                     "rel": "property",
  18.                     "href": "/properties/LockedProperty"
  19.                 }
  20.             ],
  21.             "type": "string",
  22.             "title": "Locked/Unlocked",
  23.             "read-only": "yes",
  24.             "enum": "[\"locked\", \"unlocked\", \"unknown\", \"jammed\"]",
  25.             "required": "yes"
  26.         },
  27.         "targetLockedProperty": {
  28.             "@type": "TargetLockedProperty",
  29.             "description": "The target state of the lock",
  30.             "links": [
  31.                 {
  32.                     "rel": "property",
  33.                     "href": "/properties/targetLockedProperty"
  34.                 }
  35.             ],
  36.             "type": "boolean",
  37.             "title": "targetLocked/targetUnlocked",
  38.             "read-only": "no",
  39.             "required": "yes"
  40.         }
  41.     },
  42.     "links": [
  43.         {
  44.             "rel": "properties",
  45.             "href": "/properties"
  46.         },
  47.         {
  48.             "rel": "actions",
  49.             "href": "/actions"
  50.         },
  51.         {
  52.             "rel": "events",
  53.             "href": "/events"
  54.         }
  55.     ]
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement