Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "@type": [
- "@Lock"
- ],
- "description": "Lock model XYZ",
- "id": "lockID",
- "title": "Lock by LockCompany",
- "@context": "https://iot.mozilla.org/schemas",
- "actions": {},
- "events": {},
- "properties": {
- "LockedProperty": {
- "@type": "LockedProperty",
- "description": "Whether the lock is currently locked",
- "links": [
- {
- "rel": "property",
- "href": "/properties/LockedProperty"
- }
- ],
- "type": "string",
- "title": "Locked/Unlocked",
- "read-only": "yes",
- "enum": "[\"locked\", \"unlocked\", \"unknown\", \"jammed\"]",
- "required": "yes"
- },
- "targetLockedProperty": {
- "@type": "TargetLockedProperty",
- "description": "The target state of the lock",
- "links": [
- {
- "rel": "property",
- "href": "/properties/targetLockedProperty"
- }
- ],
- "type": "boolean",
- "title": "targetLocked/targetUnlocked",
- "read-only": "no",
- "required": "yes"
- }
- },
- "links": [
- {
- "rel": "properties",
- "href": "/properties"
- },
- {
- "rel": "actions",
- "href": "/actions"
- },
- {
- "rel": "events",
- "href": "/events"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement