{"action":"created","issue":{"url":"https://api.github.com/repos/codetheweb/homebridge-tuya/issues/34","repository_url":"https://api.github.com/repos/codetheweb/homebridge-tuya","labels_url":"https://api.github.com/repos/codetheweb/homebridge-tuya/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/codetheweb/homebridge-tuya/issues/34/comments","events_url":"https://api.github.com/repos/codetheweb/homebridge-tuya/issues/34/events","html_url":"https://github.com/codetheweb/homebridge-tuya/issues/34","id":395659673,"node_id":"MDU6SXNzdWUzOTU2NTk2NzM=","number":34,"title":"HomeKit - Cannot see devices","user":{"login":"bengpearson","id":46249724,"node_id":"MDQ6VXNlcjQ2MjQ5NzI0","avatar_url":"https://avatars3.githubusercontent.com/u/46249724?v=4","gravatar_id":"","url":"https://api.github.com/users/bengpearson","html_url":"https://github.com/bengpearson","followers_url":"https://api.github.com/users/bengpearson/followers","following_url":"https://api.github.com/users/bengpearson/following{/other_user}","gists_url":"https://api.github.com/users/bengpearson/gists{/gist_id}","starred_url":"https://api.github.com/users/bengpearson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bengpearson/subscriptions","organizations_url":"https://api.github.com/users/bengpearson/orgs","repos_url":"https://api.github.com/users/bengpearson/repos","events_url":"https://api.github.com/users/bengpearson/events{/privacy}","received_events_url":"https://api.github.com/users/bengpearson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-01-03T17:27:57Z","updated_at":"2019-01-03T19:05:37Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI've configured my config file as the following:\r\n\r\n{\r\n    \"bridge\": {\r\n        \"name\": \"Homebridge\",\r\n        \"username\": \"XXXXXXXX\",\r\n        \"port\": XXXXXX,\r\n        \"pin\": \"XXX-XX-XXX\"\r\n    },\r\n\r\n    \"platform\": \"TuyaPlatform\",\r\n    \"name\": \"TuyaPlatform\",\r\n    \"devices\": [{\r\n            \"name\": \"Media center\",\r\n            \"id\": \"21138270807d3a6XXXXX\",\r\n            \"key\": \"d8ae0a91cbe31XXX\",\r\n            \"type\": \"Single Outlet\",\r\n            \"ip\": \"10.0.1.22\"\r\n\r\n        },\r\n        {\r\n            \"name\": \"Coffee machine\",\r\n            \"id\": \"23468277ecfabc9XXXXX\",\r\n            \"key\": \"9ed8385ec455dXXX\",\r\n            \"type\": \"Single Outlet\",\r\n            \"ip\": \"10.0.1.23\"\r\n        },\r\n        {\r\n            \"name\": \"Kettle\",\r\n            \"id\": \"23468277807d3a7XXXXX\",\r\n            \"key\": \"b4479775c250XXXX\",\r\n            \"type\": \"Single Outlet\",\r\n            \"ip\": \"10.0.1.24\"\r\n        }\r\n    ]\r\n}\r\n\r\nThe config.json runs fine and links to my Home app on my iPhone. However, when I link the device while the room adds successfully it doesn't show any of my smart plugs (listed in the config file above). Adding the IP doesn't seem to make a difference. All of the plugs are working fine with TuyaSmart app and I've tried making DHCP reservations. All on the same SSID with no complicated rules.\r\n\r\nAre you able to offer any assistance? Thanks!\r\n\r\n![img_0464](https://user-images.githubusercontent.com/46249724/50651942-d414b900-0f7c-11e9-932d-16611ecf87bf.png)\r\n![img_0465](https://user-images.githubusercontent.com/46249724/50651943-d414b900-0f7c-11e9-8c34-fe8ed3dfad07.png)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/codetheweb/homebridge-tuya/issues/comments/451244283","html_url":"https://github.com/codetheweb/homebridge-tuya/issues/34#issuecomment-451244283","issue_url":"https://api.github.com/repos/codetheweb/homebridge-tuya/issues/34","id":451244283,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTI0NDI4Mw==","user":{"login":"codetheweb","id":7410405,"node_id":"MDQ6VXNlcjc0MTA0MDU=","avatar_url":"https://avatars2.githubusercontent.com/u/7410405?v=4","gravatar_id":"","url":"https://api.github.com/users/codetheweb","html_url":"https://github.com/codetheweb","followers_url":"https://api.github.com/users/codetheweb/followers","following_url":"https://api.github.com/users/codetheweb/following{/other_user}","gists_url":"https://api.github.com/users/codetheweb/gists{/gist_id}","starred_url":"https://api.github.com/users/codetheweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codetheweb/subscriptions","organizations_url":"https://api.github.com/users/codetheweb/orgs","repos_url":"https://api.github.com/users/codetheweb/repos","events_url":"https://api.github.com/users/codetheweb/events{/privacy}","received_events_url":"https://api.github.com/users/codetheweb/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T19:05:37Z","updated_at":"2019-01-03T19:05:37Z","author_association":"OWNER","body":"I think I found the issue.\r\n\r\nYour current config.json:\r\n\r\n```javascript\r\n{\r\n\"bridge\": {\r\n\"name\": \"Homebridge\",\r\n\"username\": \"XXXXXXXX\",\r\n\"port\": XXXXXX,\r\n\"pin\": \"XXX-XX-XXX\"\r\n},\r\n\r\n\"platform\": \"TuyaPlatform\",\r\n\"name\": \"TuyaPlatform\",\r\n\"devices\": [{\r\n        \"name\": \"Media center\",\r\n        \"id\": \"21138270807d3a6XXXXX\",\r\n        \"key\": \"d8ae0a91cbe31XXX\",\r\n        \"type\": \"Single Outlet\",\r\n        \"ip\": \"10.0.1.22\"\r\n\r\n    },\r\n    {\r\n        \"name\": \"Coffee machine\",\r\n        \"id\": \"23468277ecfabc9XXXXX\",\r\n        \"key\": \"9ed8385ec455dXXX\",\r\n        \"type\": \"Single Outlet\",\r\n        \"ip\": \"10.0.1.23\"\r\n    },\r\n    {\r\n        \"name\": \"Kettle\",\r\n        \"id\": \"23468277807d3a7XXXXX\",\r\n        \"key\": \"b4479775c250XXXX\",\r\n        \"type\": \"Single Outlet\",\r\n        \"ip\": \"10.0.1.24\"\r\n    }\r\n]\r\n\r\n}\r\n```\r\n\r\nProper config.json:\r\n\r\n```javascript\r\n{\r\n   \"bridge\":{\r\n      \"name\":\"Homebridge\",\r\n      \"username\":\"XXXXXXXX\",\r\n      \"port\":\"XXXXXX\",\r\n      \"pin\":\"XXX-XX-XXX\"\r\n   },\r\n   \"platforms\":[\r\n      {\r\n         \"platform\":\"TuyaPlatform\",\r\n         \"name\":\"TuyaPlatform\",\r\n         \"devices\":[\r\n            {\r\n               \"name\":\"Media center\",\r\n               \"id\":\"21138270807d3a6XXXXX\",\r\n               \"key\":\"d8ae0a91cbe31XXX\",\r\n               \"type\":\"Single Outlet\",\r\n               \"ip\":\"10.0.1.22\"\r\n            },\r\n            {\r\n               \"name\":\"Coffee machine\",\r\n               \"id\":\"23468277ecfabc9XXXXX\",\r\n               \"key\":\"9ed8385ec455dXXX\",\r\n               \"type\":\"Single Outlet\",\r\n               \"ip\":\"10.0.1.23\"\r\n            },\r\n            {\r\n               \"name\":\"Kettle\",\r\n               \"id\":\"23468277807d3a7XXXXX\",\r\n               \"key\":\"b4479775c250XXXX\",\r\n               \"type\":\"Single Outlet\",\r\n               \"ip\":\"10.0.1.24\"\r\n            }\r\n         ]\r\n      }\r\n   ]\r\n}\r\n```\r\n\r\nYou didn't put the platform inside the `platforms` array property."}}
{"actor":{"display_login":"codetheweb"}}