{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Manually Adding Devices","type":"basic","slug":"manually-adding-devices","excerpt":"Adding devices manually to your Gateblu","body":"In order to add a device to your gateblu you will need to modify Gateblu as well as the device.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"1. Update Device Whitelists\"\n}\n[/block]\nGateblu needs to be able to take action on behalf of your device. Given a gateblu uuid of `a79a192e-c875-4299-8d2d-31abbf55206e`, you must add gateblu to your `sendAsWhitelist`, `receiveAsWhitelist`, `configureWhitelist`, and `discoverWhitelist`.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"sendAsWhitelist\\\": [\\\"a79a192e-c875-4299-8d2d-31abbf55206e\\\"],\\n  \\\"receiveAsWhitelist\\\": [\\\"a79a192e-c875-4299-8d2d-31abbf55206e\\\"],\\n  \\\"configureWhitelist\\\": [\\\"a79a192e-c875-4299-8d2d-31abbf55206e\\\"],\\n  \\\"discoverWhitelist\\\": [\\\"a79a192e-c875-4299-8d2d-31abbf55206e\\\"]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"2. Update Gateblu devices array\"\n}\n[/block]\nGateblu needs to know how to find and configure your device. Given a device uuid of `938ff0d2-8143-4758-a283-726672b23ea4`, your gateblu devices array must include the `uuid`, `connector`, and `type` attributes.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"devices\\\": [\\n    {\\n      \\\"uuid\\\": \\\"938ff0d2-8143-4758-a283-726672b23ea4\\\",\\n      \\\"connector\\\": \\\"meshblu-hue\\\",\\n      \\\"type\\\": \\\"device:hue\\\"\\n    }\\n  ]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","updates":[],"order":999,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"55d224ab945e481700afbb79","githubsync":"","createdAt":"2015-08-17T18:15:07.257Z","project":"557790abe6063e0d00481466","version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["557790ace6063e0d0048146a","5577bceaa042551900b0044b","55d222fa3c74062300aee56e","55db5726b0e9140d00a632ba"],"_id":"557790ace6063e0d00481469","__v":4,"project":"557790abe6063e0d00481466","createdAt":"2015-06-10T01:19:40.071Z","releaseDate":"2015-06-10T01:19:40.071Z"},"user":"5564f227f0f70f0d00a9ab20","__v":0,"category":{"sync":{"isSync":false,"url":""},"pages":["5577bd07a042551900b0044c","55d224ab945e481700afbb79"],"title":"Developers","slug":"developers","order":9999,"from_sync":false,"reference":false,"_id":"5577bceaa042551900b0044b","createdAt":"2015-06-10T04:28:26.541Z","project":"557790abe6063e0d00481466","version":"557790ace6063e0d00481469","__v":2}}

Manually Adding Devices

Adding devices manually to your Gateblu

In order to add a device to your gateblu you will need to modify Gateblu as well as the device. [block:api-header] { "type": "basic", "title": "1. Update Device Whitelists" } [/block] Gateblu needs to be able to take action on behalf of your device. Given a gateblu uuid of `a79a192e-c875-4299-8d2d-31abbf55206e`, you must add gateblu to your `sendAsWhitelist`, `receiveAsWhitelist`, `configureWhitelist`, and `discoverWhitelist`. [block:code] { "codes": [ { "code": "{\n \"sendAsWhitelist\": [\"a79a192e-c875-4299-8d2d-31abbf55206e\"],\n \"receiveAsWhitelist\": [\"a79a192e-c875-4299-8d2d-31abbf55206e\"],\n \"configureWhitelist\": [\"a79a192e-c875-4299-8d2d-31abbf55206e\"],\n \"discoverWhitelist\": [\"a79a192e-c875-4299-8d2d-31abbf55206e\"]\n}", "language": "json" } ] } [/block] [block:api-header] { "type": "basic", "title": "2. Update Gateblu devices array" } [/block] Gateblu needs to know how to find and configure your device. Given a device uuid of `938ff0d2-8143-4758-a283-726672b23ea4`, your gateblu devices array must include the `uuid`, `connector`, and `type` attributes. [block:code] { "codes": [ { "code": "{\n \"devices\": [\n {\n \"uuid\": \"938ff0d2-8143-4758-a283-726672b23ea4\",\n \"connector\": \"meshblu-hue\",\n \"type\": \"device:hue\"\n }\n ]\n}", "language": "json" } ] } [/block]