{"project":"557790abe6063e0d00481466","version":{"__v":4,"_id":"557790ace6063e0d00481469","project":"557790abe6063e0d00481466","createdAt":"2015-06-10T01:19:40.071Z","releaseDate":"2015-06-10T01:19:40.071Z","categories":["557790ace6063e0d0048146a","5577bceaa042551900b0044b","55d222fa3c74062300aee56e","55db5726b0e9140d00a632ba"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"__v":2,"_id":"5577bceaa042551900b0044b","pages":["5577bd07a042551900b0044c","55d224ab945e481700afbb79"],"project":"557790abe6063e0d00481466","version":"557790ace6063e0d00481469","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-06-10T04:28:26.541Z","from_sync":false,"order":9999,"slug":"developers","title":"Developers"},"_id":"55d224ab945e481700afbb79","user":"5564f227f0f70f0d00a9ab20","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-17T18:15:07.257Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":999,"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]","excerpt":"Adding devices manually to your Gateblu","slug":"manually-adding-devices","type":"basic","title":"Manually Adding Devices"}

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]