{"action":"created","issue":{"url":"https://api.github.com/repos/ilcato/homebridge-mqttswitch/issues/11","repository_url":"https://api.github.com/repos/ilcato/homebridge-mqttswitch","labels_url":"https://api.github.com/repos/ilcato/homebridge-mqttswitch/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/ilcato/homebridge-mqttswitch/issues/11/comments","events_url":"https://api.github.com/repos/ilcato/homebridge-mqttswitch/issues/11/events","html_url":"https://github.com/ilcato/homebridge-mqttswitch/issues/11","id":198242191,"number":11,"title":"Homekit doesn't read status correctly","user":{"login":"HairBear22","id":24786482,"avatar_url":"https://avatars.githubusercontent.com/u/24786482?v=3","gravatar_id":"","url":"https://api.github.com/users/HairBear22","html_url":"https://github.com/HairBear22","followers_url":"https://api.github.com/users/HairBear22/followers","following_url":"https://api.github.com/users/HairBear22/following{/other_user}","gists_url":"https://api.github.com/users/HairBear22/gists{/gist_id}","starred_url":"https://api.github.com/users/HairBear22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HairBear22/subscriptions","organizations_url":"https://api.github.com/users/HairBear22/orgs","repos_url":"https://api.github.com/users/HairBear22/repos","events_url":"https://api.github.com/users/HairBear22/events{/privacy}","received_events_url":"https://api.github.com/users/HairBear22/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-31T18:24:36Z","updated_at":"2017-01-01T20:24:25Z","closed_at":null,"body":"I have a MQTT switch set up, with the config attached below. When I use the correct get topic, Homekit won't retain the switch being on (when I flip it to on on my phone, it publishes the right topic, but the switch on homekit instantly returns to \"off\", while the device is \"on\".\r\n```\r\n\r\n\"accessory\": \"mqttswitch\",\r\n\t\t\"name\": \"Sonoff A1\",\r\n\t\t\"url\": \"mqtt://127.0.0.1\",\r\n\t\t\"username\": \"\",\r\n\t\t\"password\": \"\",\r\n\t\t\"caption\": \"Christmas Lights\",\r\n\t\t\t\t\"topics\": {\r\n\t\t\t\"statusGet\": \"stat/sonoffA1/POWER\",\r\n\t\t\t\"statusSet\": \"cmnd/sonoffA1/power\"\r\n\t\t},\r\n\t\t\"onValue\": \"ON\",\r\n\t\t\"offValue\": \"OFF\",\r\n\t\t\"integerValue\": \"false\"\r\n```"},"comment":{"url":"https://api.github.com/repos/ilcato/homebridge-mqttswitch/issues/comments/269918020","html_url":"https://github.com/ilcato/homebridge-mqttswitch/issues/11#issuecomment-269918020","issue_url":"https://api.github.com/repos/ilcato/homebridge-mqttswitch/issues/11","id":269918020,"user":{"login":"osvaldoasn","id":8234974,"avatar_url":"https://avatars.githubusercontent.com/u/8234974?v=3","gravatar_id":"","url":"https://api.github.com/users/osvaldoasn","html_url":"https://github.com/osvaldoasn","followers_url":"https://api.github.com/users/osvaldoasn/followers","following_url":"https://api.github.com/users/osvaldoasn/following{/other_user}","gists_url":"https://api.github.com/users/osvaldoasn/gists{/gist_id}","starred_url":"https://api.github.com/users/osvaldoasn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osvaldoasn/subscriptions","organizations_url":"https://api.github.com/users/osvaldoasn/orgs","repos_url":"https://api.github.com/users/osvaldoasn/repos","events_url":"https://api.github.com/users/osvaldoasn/events{/privacy}","received_events_url":"https://api.github.com/users/osvaldoasn/received_events","type":"User","site_admin":false},"created_at":"2017-01-01T20:24:25Z","updated_at":"2017-01-01T20:24:25Z","body":"Use topics like this:\r\n\"topics\":   {\"statusGet\":\"cmnd/sonoff/light\",\"statusSet\":\"cmnd/sonoff/light\"}"}}
{"actor":{"display_login":"osvaldoasn"}}