{"action":"created","issue":{"url":"https://api.github.com/repos/joeshaw/wemo-homecontrol/issues/1","repository_url":"https://api.github.com/repos/joeshaw/wemo-homecontrol","labels_url":"https://api.github.com/repos/joeshaw/wemo-homecontrol/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/joeshaw/wemo-homecontrol/issues/1/comments","events_url":"https://api.github.com/repos/joeshaw/wemo-homecontrol/issues/1/events","html_url":"https://github.com/joeshaw/wemo-homecontrol/issues/1","id":447867418,"node_id":"MDU6SXNzdWU0NDc4Njc0MTg=","number":1,"title":"Initially not working with multiple devices","user":{"login":"redmars27","id":36934418,"node_id":"MDQ6VXNlcjM2OTM0NDE4","avatar_url":"https://avatars1.githubusercontent.com/u/36934418?v=4","gravatar_id":"","url":"https://api.github.com/users/redmars27","html_url":"https://github.com/redmars27","followers_url":"https://api.github.com/users/redmars27/followers","following_url":"https://api.github.com/users/redmars27/following{/other_user}","gists_url":"https://api.github.com/users/redmars27/gists{/gist_id}","starred_url":"https://api.github.com/users/redmars27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redmars27/subscriptions","organizations_url":"https://api.github.com/users/redmars27/orgs","repos_url":"https://api.github.com/users/redmars27/repos","events_url":"https://api.github.com/users/redmars27/events{/privacy}","received_events_url":"https://api.github.com/users/redmars27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2019-05-23T20:50:43Z","updated_at":"2019-05-24T20:48:31Z","closed_at":null,"author_association":"NONE","body":"I have two wemo insights and both of them are detected by wemo-homecontrol but when you go to HomeKit only one of them appears. It seems that you create a new IPTransport per device:\r\n\r\n`t, err := hc.NewIPTransport(hcConfig, acc.Accessory)`\r\n\r\nI made a test having all the devices added to the same IPTransport and in that case all devices appear properly on HomeKit. When you register the device it appears as a gateway and once connected you have both of the switches.\r\n\r\nI don't know if the problem is on the usage of hc (github.com/brutella/hc) or indeed, a problem in hc. Looking on it, it doesn't allow to add new accessories (devices) after an IPTransport is created.\r\n\r\nApart from that all is working like a charm, thanks for it. If you need any help with the code, let me know.\r\n\r\nSomething I am working on: \r\n- Force the addition of devices without discovering them, in order to add devices from different networks\r\n- Be able to run wemo-homecontrol in a docker container\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/joeshaw/wemo-homecontrol/issues/comments/495783943","html_url":"https://github.com/joeshaw/wemo-homecontrol/issues/1#issuecomment-495783943","issue_url":"https://api.github.com/repos/joeshaw/wemo-homecontrol/issues/1","id":495783943,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5NTc4Mzk0Mw==","user":{"login":"joeshaw","id":39916,"node_id":"MDQ6VXNlcjM5OTE2","avatar_url":"https://avatars2.githubusercontent.com/u/39916?v=4","gravatar_id":"","url":"https://api.github.com/users/joeshaw","html_url":"https://github.com/joeshaw","followers_url":"https://api.github.com/users/joeshaw/followers","following_url":"https://api.github.com/users/joeshaw/following{/other_user}","gists_url":"https://api.github.com/users/joeshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/joeshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeshaw/subscriptions","organizations_url":"https://api.github.com/users/joeshaw/orgs","repos_url":"https://api.github.com/users/joeshaw/repos","events_url":"https://api.github.com/users/joeshaw/events{/privacy}","received_events_url":"https://api.github.com/users/joeshaw/received_events","type":"User","site_admin":false},"created_at":"2019-05-24T20:48:31Z","updated_at":"2019-05-24T20:48:31Z","author_association":"OWNER","body":"No, I was just curious if they had the same name, for the purpose of the storage directory (since hc's default is to use the accessory name).  But it'll just be simpler to use the serial number."}}
{"actor":{"display_login":"joeshaw"}}