{"_id":"55b253d054aba20d001d513b","category":{"_id":"55b2426a0e11590d008f7950","version":"55a47338e75ca60d00a39332","__v":4,"project":"55a47338e75ca60d00a3932f","pages":["55b2427f7f5e073900ea81f0","55b253d054aba20d001d513b","55b2543f88093a21008beeb0","55b254de54aba20d001d5143"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-24T13:49:30.940Z","from_sync":false,"order":4,"slug":"python-api","title":"Python API"},"project":"55a47338e75ca60d00a3932f","user":"55a4f13d02b09d1900d00a9f","__v":2,"version":{"_id":"55a47338e75ca60d00a39332","project":"55a47338e75ca60d00a3932f","__v":8,"createdAt":"2015-07-14T02:26:00.724Z","releaseDate":"2015-07-14T02:26:00.724Z","categories":["55a47339e75ca60d00a39333","55a4fb7e1a5f991700a940f0","55a6702b80c8a30d00b32684","55a6703b80c8a30d00b32685","55a6ea5516d20b1900ed8f53","55b23ad2329f363900fbc92f","55b23b0a329f363900fbc932","55b2426a0e11590d008f7950"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-24T15:03:44.364Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"This method returns a Device object containing methods used to control a Lono.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"lc = LonoClient(client_id=\\\"client id\\\", ...)\\ndevice = lc.get_device(\\\"device id\\\")\\n\\n# now, you can do something like this:\\n# device.set_zone(0, true)\",\n      \"language\": \"python\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"lonoclientget_devicedevice_id-1","type":"fn","title":"LonoClient.get_device(device_id)"}