{"_id":"55882c89eb5f2421003f9a1c","githubsync":"","user":"543568c135740020002a1c10","version":{"_id":"5435693035740020002a1c1f","__v":14,"project":"5435693035740020002a1c1c","createdAt":"2014-10-08T16:41:20.702Z","releaseDate":"2014-10-08T16:41:20.702Z","categories":["5435693035740020002a1c20","551c03c1ff892b3700d1c57a","551ca3927405910d00900a59","551cac6448564a2f0024d89e","551cb4d848564a2f0024d8a3","551cb52db7a32b3b00d1ef78","5526e2064a7ac121004c6073","5526e5147d4a4417009516b3","5526e9877d4a4417009516bb","5528362cd9e1db2d00cd924d","5580240ebe698419008f2ba2","5580a7dabe698419008f2db6","568161799de23c0d00c54750","5866c905a2cbb31900f6f1aa"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"551ca3927405910d00900a59","pages":["551ca655b7a32b3b00d1ef6a","551cb8f35de8de3900d8db0d","551cb97f5de8de3900d8db0f","55293316a15e530d00af3cb3","55882c89eb5f2421003f9a1c","55883030eb5f2421003f9a2f"],"project":"5435693035740020002a1c1c","version":"5435693035740020002a1c1f","__v":6,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-04-02T02:04:02.634Z","from_sync":false,"order":2,"slug":"api-resources","title":"API Resources"},"parentDoc":null,"project":"5435693035740020002a1c1c","__v":2,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-06-22T15:40:57.395Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"A device resource represents a piece of hardware that may exist in a space. Devices can report such as temperature or presence, but may also expose features that may be controlled, such as AV hardware or a thermostat. Common devices include beacons, phones, and motion sensors.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Properties\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`id`\",\n    \"0-1\": \"Integer\",\n    \"0-2\": \"The ID of the device.\",\n    \"1-0\": \"`account_id`\",\n    \"1-1\": \"Integer\",\n    \"1-2\": \"The ID of the account that owns the device.\",\n    \"2-0\": \"`device_manifest_id`\",\n    \"2-1\": \"Integer\",\n    \"2-2\": \"The ID of the associated device manifest. A device's capabilities are described by the manifest.\",\n    \"3-0\": \"`name`\",\n    \"3-1\": \"String\",\n    \"3-2\": \"A name for the device, given by the owning account.\",\n    \"5-0\": \"`created_at`\",\n    \"5-1\": \"String\",\n    \"5-2\": \"The date and time the resource was originally created, represented as an ISO-8601 date.\",\n    \"6-0\": \"`updated_at`\",\n    \"6-1\": \"String\",\n    \"6-2\": \"The date and time the resource was last modified, represented as an ISO-8601 date.\",\n    \"4-0\": \"`last_reported_at`\",\n    \"4-1\": \"String\",\n    \"4-2\": \"The date that the device last communicated with Robin, represented as an ISO-8601 date.\"\n  },\n  \"cols\": 3,\n  \"rows\": 7\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Example\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 1,\\n  \\\"account_id\\\": 3,\\n  \\\"device_manifest_id\\\": 13,\\n  \\\"name\\\": \\\"PIR sensor\\\",\\n  \\\"last_reported_at\\\": \\\"2014-05-24T21:00:35+0000\\\",\\n  \\\"created_at\\\": \\\"2014-05-19T21:00:35+0000\\\",\\n  \\\"updated_at\\\": \\\"2014-05-19T21:00:35+0000\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"A piece of hardware that may exist in a space","slug":"device","type":"basic","title":"Device"}

Device

A piece of hardware that may exist in a space

A device resource represents a piece of hardware that may exist in a space. Devices can report such as temperature or presence, but may also expose features that may be controlled, such as AV hardware or a thermostat. Common devices include beacons, phones, and motion sensors. [block:api-header] { "type": "basic", "title": "Properties" } [/block] [block:parameters] { "data": { "0-0": "`id`", "0-1": "Integer", "0-2": "The ID of the device.", "1-0": "`account_id`", "1-1": "Integer", "1-2": "The ID of the account that owns the device.", "2-0": "`device_manifest_id`", "2-1": "Integer", "2-2": "The ID of the associated device manifest. A device's capabilities are described by the manifest.", "3-0": "`name`", "3-1": "String", "3-2": "A name for the device, given by the owning account.", "5-0": "`created_at`", "5-1": "String", "5-2": "The date and time the resource was originally created, represented as an ISO-8601 date.", "6-0": "`updated_at`", "6-1": "String", "6-2": "The date and time the resource was last modified, represented as an ISO-8601 date.", "4-0": "`last_reported_at`", "4-1": "String", "4-2": "The date that the device last communicated with Robin, represented as an ISO-8601 date." }, "cols": 3, "rows": 7 } [/block] [block:api-header] { "type": "basic", "title": "Example" } [/block] [block:code] { "codes": [ { "code": "{\n \"id\": 1,\n \"account_id\": 3,\n \"device_manifest_id\": 13,\n \"name\": \"PIR sensor\",\n \"last_reported_at\": \"2014-05-24T21:00:35+0000\",\n \"created_at\": \"2014-05-19T21:00:35+0000\",\n \"updated_at\": \"2014-05-19T21:00:35+0000\"\n}", "language": "json" } ] } [/block]