{"action":"created","issue":{"url":"https://api.github.com/repos/nfarina/homebridge/issues/203","labels_url":"https://api.github.com/repos/nfarina/homebridge/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/nfarina/homebridge/issues/203/comments","events_url":"https://api.github.com/repos/nfarina/homebridge/issues/203/events","html_url":"https://github.com/nfarina/homebridge/issues/203","id":108148166,"number":203,"title":"accessory.name displayName and uuid generation","user":{"login":"justme-1968","id":4605251,"avatar_url":"https://avatars.githubusercontent.com/u/4605251?v=3","gravatar_id":"","url":"https://api.github.com/users/justme-1968","html_url":"https://github.com/justme-1968","followers_url":"https://api.github.com/users/justme-1968/followers","following_url":"https://api.github.com/users/justme-1968/following{/other_user}","gists_url":"https://api.github.com/users/justme-1968/gists{/gist_id}","starred_url":"https://api.github.com/users/justme-1968/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justme-1968/subscriptions","organizations_url":"https://api.github.com/users/justme-1968/orgs","repos_url":"https://api.github.com/users/justme-1968/repos","events_url":"https://api.github.com/users/justme-1968/events{/privacy}","received_events_url":"https://api.github.com/users/justme-1968/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-24T14:57:12Z","updated_at":"2015-09-25T20:49:57Z","closed_at":null,"body":"in the old platform support issue #95 there was a short discussion about the generation of the uuid for each accessory. unfortunately we have not followed this to the end.\r\n\r\nfor devices that have a real unique serial number it would be better to create the uuid based on this serial number an not on the (display) name which might change during the lifetime of the device.\r\n\r\n\r\ni would like to suggest creating the (platform) accessories with something like this:\r\n```\r\nvar accessoryUUID = uuid.generate(accessoryInstance.constructor.name + \":\" + (accessoryInstance.uuid_base || displayName));\r\n```\r\n\r\ninstead of a new variable uuid_base we could also use the serialNumber from the AccessoryInformation service."},"comment":{"url":"https://api.github.com/repos/nfarina/homebridge/issues/comments/143349854","html_url":"https://github.com/nfarina/homebridge/issues/203#issuecomment-143349854","issue_url":"https://api.github.com/repos/nfarina/homebridge/issues/203","id":143349854,"user":{"login":"nfarina","id":117280,"avatar_url":"https://avatars.githubusercontent.com/u/117280?v=3","gravatar_id":"","url":"https://api.github.com/users/nfarina","html_url":"https://github.com/nfarina","followers_url":"https://api.github.com/users/nfarina/followers","following_url":"https://api.github.com/users/nfarina/following{/other_user}","gists_url":"https://api.github.com/users/nfarina/gists{/gist_id}","starred_url":"https://api.github.com/users/nfarina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfarina/subscriptions","organizations_url":"https://api.github.com/users/nfarina/orgs","repos_url":"https://api.github.com/users/nfarina/repos","events_url":"https://api.github.com/users/nfarina/events{/privacy}","received_events_url":"https://api.github.com/users/nfarina/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T20:49:57Z","updated_at":"2015-09-25T20:49:57Z","body":"If you're talking about the FHEM platform, then it looks like it should be saying things like `FHEMAccessory` instead of `Object`. Even if you were using object literals the result of calling `accessories()` are still instances of the `FHEMAccessory` class. So it's really weird that it's prefixing Object."}}