{"action":"created","issue":{"url":"https://api.github.com/repos/Danielhiversen/PyXiaomiGateway/issues/54","repository_url":"https://api.github.com/repos/Danielhiversen/PyXiaomiGateway","labels_url":"https://api.github.com/repos/Danielhiversen/PyXiaomiGateway/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/Danielhiversen/PyXiaomiGateway/issues/54/comments","events_url":"https://api.github.com/repos/Danielhiversen/PyXiaomiGateway/issues/54/events","html_url":"https://github.com/Danielhiversen/PyXiaomiGateway/issues/54","id":298378129,"number":54,"title":"Xiaomi Aqara Wall Switch not detected correctly","user":{"login":"dannys-pp","id":16897231,"avatar_url":"https://avatars1.githubusercontent.com/u/16897231?v=4","gravatar_id":"","url":"https://api.github.com/users/dannys-pp","html_url":"https://github.com/dannys-pp","followers_url":"https://api.github.com/users/dannys-pp/followers","following_url":"https://api.github.com/users/dannys-pp/following{/other_user}","gists_url":"https://api.github.com/users/dannys-pp/gists{/gist_id}","starred_url":"https://api.github.com/users/dannys-pp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannys-pp/subscriptions","organizations_url":"https://api.github.com/users/dannys-pp/orgs","repos_url":"https://api.github.com/users/dannys-pp/repos","events_url":"https://api.github.com/users/dannys-pp/events{/privacy}","received_events_url":"https://api.github.com/users/dannys-pp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-02-19T19:18:10Z","updated_at":"2018-03-02T05:27:56Z","closed_at":"2018-02-25T09:07:54Z","author_association":"NONE","body":"I installed a Xiaomi Aqara ZigBee Wall Switch (single).\r\nHere's the product:\r\n[](https://www.gearbest.com/alarm-systems/pp_625774.html)\r\n\r\nIt works fine with the Xiaomi ios app.\r\nHowever, it's not detected in hass.\r\n\r\nHere's the error from the log file:\r\n\r\n> 2018-02-19 21:02:02 ERROR (Thread-2) [xiaomi_gateway] Unsupported device found! Please create an issue at https://github.com/Danielhiversen/PyXiaomiGateway/issues and provide the following data: {'sid': '158d0001f2b07e', 'data': '{\"voltage\":3600,\"channel_0\":\"on\"}', 'model': '', 'cmd': 'read_ack', 'short_id': 27328}\r\n"},"comment":{"url":"https://api.github.com/repos/Danielhiversen/PyXiaomiGateway/issues/comments/369824401","html_url":"https://github.com/Danielhiversen/PyXiaomiGateway/issues/54#issuecomment-369824401","issue_url":"https://api.github.com/repos/Danielhiversen/PyXiaomiGateway/issues/54","id":369824401,"user":{"login":"shin007","id":36980125,"avatar_url":"https://avatars2.githubusercontent.com/u/36980125?v=4","gravatar_id":"","url":"https://api.github.com/users/shin007","html_url":"https://github.com/shin007","followers_url":"https://api.github.com/users/shin007/followers","following_url":"https://api.github.com/users/shin007/following{/other_user}","gists_url":"https://api.github.com/users/shin007/gists{/gist_id}","starred_url":"https://api.github.com/users/shin007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shin007/subscriptions","organizations_url":"https://api.github.com/users/shin007/orgs","repos_url":"https://api.github.com/users/shin007/repos","events_url":"https://api.github.com/users/shin007/events{/privacy}","received_events_url":"https://api.github.com/users/shin007/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T05:27:56Z","updated_at":"2018-03-02T05:27:56Z","author_association":"NONE","body":"@dannys-pp  Hello, where to modify the code？  Where is the path of the file？\r\n       model = resp[\"model\"]\r\n       supported = False\r\n       # DANNYS - Workaround to support Xiaomi Aqara ZigBee Wall Switch\r\n        if model == 'ctrl_ln1.aq1':\r\n             model = \"ctrl_neutral1\"\r\n             _LOGGER.warn(\"Setting model type to [ctrl_neutral1]\")**"}}
{"actor":{"display_login":"shin007"}}