{"action":"created","issue":{"url":"https://api.github.com/repos/mschm/node-red-contrib-homekit/issues/20","repository_url":"https://api.github.com/repos/mschm/node-red-contrib-homekit","labels_url":"https://api.github.com/repos/mschm/node-red-contrib-homekit/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/mschm/node-red-contrib-homekit/issues/20/comments","events_url":"https://api.github.com/repos/mschm/node-red-contrib-homekit/issues/20/events","html_url":"https://github.com/mschm/node-red-contrib-homekit/issues/20","id":195664235,"number":20,"title":"Accessory no longer seen after flow/node redeploy","user":{"login":"aditanase","id":2746097,"avatar_url":"https://avatars3.githubusercontent.com/u/2746097?v=3","gravatar_id":"","url":"https://api.github.com/users/aditanase","html_url":"https://github.com/aditanase","followers_url":"https://api.github.com/users/aditanase/followers","following_url":"https://api.github.com/users/aditanase/following{/other_user}","gists_url":"https://api.github.com/users/aditanase/gists{/gist_id}","starred_url":"https://api.github.com/users/aditanase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aditanase/subscriptions","organizations_url":"https://api.github.com/users/aditanase/orgs","repos_url":"https://api.github.com/users/aditanase/repos","events_url":"https://api.github.com/users/aditanase/events{/privacy}","received_events_url":"https://api.github.com/users/aditanase/received_events","type":"User","site_admin":false},"labels":[{"id":476473636,"url":"https://api.github.com/repos/mschm/node-red-contrib-homekit/labels/bug","name":"bug","color":"ee0701","default":true},{"id":507368792,"url":"https://api.github.com/repos/mschm/node-red-contrib-homekit/labels/lifecycle","name":"lifecycle","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-14T22:29:04Z","updated_at":"2017-05-09T12:49:08Z","closed_at":null,"body":"Everything works fine until I redeploy a Service/Accessory node.\r\nAfter doing that, Homekit can't talk to the node anymore.\r\n\r\nRestarting the node-red process fixes it so I'm thinking that it's a bug related to the node-red nodes livecycle.\r\n\r\nI think I also found a different bug - in the close sequence of the service node you're calling\r\n`accessory.removeService(service);`\r\nBut I think you also need to add `accessory.destroy();` since on redeploy I believe that the config node is re-creating the accessory.\r\nAdding this does better cleanup but it still does not fix the reported issue, so maybe it's something else?"},"comment":{"url":"https://api.github.com/repos/mschm/node-red-contrib-homekit/issues/comments/300152346","html_url":"https://github.com/mschm/node-red-contrib-homekit/issues/20#issuecomment-300152346","issue_url":"https://api.github.com/repos/mschm/node-red-contrib-homekit/issues/20","id":300152346,"user":{"login":"ralfduerig","id":18187978,"avatar_url":"https://avatars0.githubusercontent.com/u/18187978?v=3","gravatar_id":"","url":"https://api.github.com/users/ralfduerig","html_url":"https://github.com/ralfduerig","followers_url":"https://api.github.com/users/ralfduerig/followers","following_url":"https://api.github.com/users/ralfduerig/following{/other_user}","gists_url":"https://api.github.com/users/ralfduerig/gists{/gist_id}","starred_url":"https://api.github.com/users/ralfduerig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralfduerig/subscriptions","organizations_url":"https://api.github.com/users/ralfduerig/orgs","repos_url":"https://api.github.com/users/ralfduerig/repos","events_url":"https://api.github.com/users/ralfduerig/events{/privacy}","received_events_url":"https://api.github.com/users/ralfduerig/received_events","type":"User","site_admin":false},"created_at":"2017-05-09T12:49:08Z","updated_at":"2017-05-09T12:49:08Z","body":"Hi, agree to @norman-thomas did anyone fixed the redeploy thing? "}}
{"actor":{"display_login":"ralfduerig"}}