{"action":"created","issue":{"url":"https://api.github.com/repos/nfarina/homebridge/issues/1685","repository_url":"https://api.github.com/repos/nfarina/homebridge","labels_url":"https://api.github.com/repos/nfarina/homebridge/issues/1685/labels{/name}","comments_url":"https://api.github.com/repos/nfarina/homebridge/issues/1685/comments","events_url":"https://api.github.com/repos/nfarina/homebridge/issues/1685/events","html_url":"https://github.com/nfarina/homebridge/issues/1685","id":285598325,"number":1685,"title":"Cannot add a bridged Accessory with the same UUID as another bridged Accessory?","user":{"login":"ehusar","id":5784481,"avatar_url":"https://avatars0.githubusercontent.com/u/5784481?v=4","gravatar_id":"","url":"https://api.github.com/users/ehusar","html_url":"https://github.com/ehusar","followers_url":"https://api.github.com/users/ehusar/followers","following_url":"https://api.github.com/users/ehusar/following{/other_user}","gists_url":"https://api.github.com/users/ehusar/gists{/gist_id}","starred_url":"https://api.github.com/users/ehusar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehusar/subscriptions","organizations_url":"https://api.github.com/users/ehusar/orgs","repos_url":"https://api.github.com/users/ehusar/repos","events_url":"https://api.github.com/users/ehusar/events{/privacy}","received_events_url":"https://api.github.com/users/ehusar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-01-03T04:43:10Z","updated_at":"2018-03-12T12:21:04Z","closed_at":null,"author_association":"NONE","body":"All of a sudden Homebridge is start then after a few seconds stopping.  The issues is \"Cannot add a bridged Accessory with the same UUID as another bridged Accessory\" I have included the error from the .err log below.  I did go in and update my name and username thinking this might fix the issue but no luck. I have included the first section of my config file below as well.\r\n\r\nAny help would be much appreciated.  Thanks.\r\n\r\n\r\n<!-- Provide a general summary in the Title above -->\r\n\r\n### Current Behavior\r\n<!-- If describing a bug, tell us what happens instead of the expected behavior -->\r\n<!-- If suggesting a change/improvement, explain the difference from current behavior -->\r\nHome bridge start using 'sudo /etc/init.d/homebridge start' command then after a few seconds when I check the status the it is stopped.\r\n\r\n\r\n\r\n### Versions\r\n<!-- Please run commands and include versions below. -->\r\n- **Homebridge**: `homebridge --version`\r\n- **Node**:       `node --version`\r\n- **OS**:         <!-- The version and architecture of your operating system -->\r\nHome bridge version is 0.4.16\r\nNode is 7.3.0\r\nRunning on Raspberry Pi on latest version of jessie\r\n\r\n### Configuration\r\n<!-- If relevant, include the contents of your config.json file between the two ``` lines below.\r\n  - Remove any sensitive information, passwords, etc.\r\n  - If output is long:\r\n    - Please extract only the relevant portions if possible\r\n    - Consider creating a gist, etc\r\n -->\r\n\r\nI don't see anything wrong with the bridge section of my config file. I am positive that both name and username are the first time i have used them.\r\n```\r\n\"bridge\": {\r\n                \"name\": \"Husarx\",\r\n                \"username\": \"D1:C1:C1:C1:C1:A1\",\r\n                \"port\": 36631,\r\n                \"pin\": \"031-45-154\"\r\n        },\r\n```\r\n\r\n### Homebridge Log / Command Output\r\n<!-- Paste relevant output between the two ``` lines below\r\n  - Remove any sensitive information, passwords, etc.\r\n  - If output is long:\r\n    - Please extract only the relevant portions if possible\r\n    - Consider creating a gist, etc\r\n  - However, please include the beginning of the log where the homebridge initialization happens if possible\r\n-->\r\n```\r\nError: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 077564fb-0432-43d2-bb1f-76da35a5c35b\r\n    at Bridge.Accessory.addBridgedAccessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:222:13)\r\n    at Bridge.Accessory.addBridgedAccessories (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:268:10)\r\n    at Server._handleRegisterPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:437:16)\r\n    at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:36:10)\r\n    at emitOne (events.js:96:13)\r\n    at API.emit (events.js:188:7)\r\n    at API.registerPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/api.js:155:8)\r\n    at cmdSwitchPlatform.addAccessory (/usr/local/lib/node_modules/homebridge-cmdswitch2/index.js:67:14)\r\n    at cmdSwitchPlatform.didFinishLaunching (/usr/local/lib/node_modules/homebridge-cmdswitch2/index.js:36:37)\r\n    at emitNone (events.js:91:20)\r\n```\r\n\r\n  "},"comment":{"url":"https://api.github.com/repos/nfarina/homebridge/issues/comments/372291236","html_url":"https://github.com/nfarina/homebridge/issues/1685#issuecomment-372291236","issue_url":"https://api.github.com/repos/nfarina/homebridge/issues/1685","id":372291236,"user":{"login":"ebaauw","id":22179355,"avatar_url":"https://avatars0.githubusercontent.com/u/22179355?v=4","gravatar_id":"","url":"https://api.github.com/users/ebaauw","html_url":"https://github.com/ebaauw","followers_url":"https://api.github.com/users/ebaauw/followers","following_url":"https://api.github.com/users/ebaauw/following{/other_user}","gists_url":"https://api.github.com/users/ebaauw/gists{/gist_id}","starred_url":"https://api.github.com/users/ebaauw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebaauw/subscriptions","organizations_url":"https://api.github.com/users/ebaauw/orgs","repos_url":"https://api.github.com/users/ebaauw/repos","events_url":"https://api.github.com/users/ebaauw/events{/privacy}","received_events_url":"https://api.github.com/users/ebaauw/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T12:21:04Z","updated_at":"2018-03-12T12:21:04Z","author_association":"NONE","body":"> So for the (dynamic) platform plugin I am writing, i can use a random UUID.\r\n\r\nTechnically you could, but I don’t think you should want to.  You need some unique id persisted in your accessory context anyways, to recognise, after restart, whether a discovered device was already exposed previously or whether it’s a new device.  Simply generate the UUID from that unique id.\r\n\r\nYou might also want to consider how to deal with stale devices (broken or no longer in your possession) or a corrupted or outdated cache.  It would be nice to be able to delete and rebuild the cache without having to redo your HomeKit configuration.\r\n\r\n> May I contact you on a private channel somewhere?\r\n\r\nI’m on the homebridge slack."}}
{"actor":{"display_login":"ebaauw"}}