{"action":"created","issue":{"url":"https://api.github.com/repos/earlephilhower/psychoplug/issues/9","repository_url":"https://api.github.com/repos/earlephilhower/psychoplug","labels_url":"https://api.github.com/repos/earlephilhower/psychoplug/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/earlephilhower/psychoplug/issues/9/comments","events_url":"https://api.github.com/repos/earlephilhower/psychoplug/issues/9/events","html_url":"https://github.com/earlephilhower/psychoplug/issues/9","id":273975314,"node_id":"MDU6SXNzdWUyNzM5NzUzMTQ=","number":9,"title":"mqtt switch  command","user":{"login":"gdlesage","id":14796404,"node_id":"MDQ6VXNlcjE0Nzk2NDA0","avatar_url":"https://avatars3.githubusercontent.com/u/14796404?v=4","gravatar_id":"","url":"https://api.github.com/users/gdlesage","html_url":"https://github.com/gdlesage","followers_url":"https://api.github.com/users/gdlesage/followers","following_url":"https://api.github.com/users/gdlesage/following{/other_user}","gists_url":"https://api.github.com/users/gdlesage/gists{/gist_id}","starred_url":"https://api.github.com/users/gdlesage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdlesage/subscriptions","organizations_url":"https://api.github.com/users/gdlesage/orgs","repos_url":"https://api.github.com/users/gdlesage/repos","events_url":"https://api.github.com/users/gdlesage/events{/privacy}","received_events_url":"https://api.github.com/users/gdlesage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-11-14T23:03:04Z","updated_at":"2018-07-03T14:21:48Z","closed_at":null,"author_association":"NONE","body":" I am unable to get MQTT subscribed to work. When I send the command:\r\nmosquitto_pub -t \"plug/remotepower\" -m '1'\r\n\r\nI expect the switch to turn on but nothing happens. \r\nIn options, i have  MQTT on, the host set to the IP address of my broker, port 1883 and topic set to \"plug\"\r\n\r\nI can successfully subscribe to \"powerstate\" by:\r\nmosquitto_sub -t \"plug/powerstate\"\r\n\r\nWhen I manually or schedule a turn switch off or on, or I get 0 and 1 respectively from mosquitto_sub. There is no MQTT response when I use CGI control of the switch.\r\n\r\nI am likely missing something simple to make MQTT commands to turn the  switch off or on, perhaps you can give me a clue."},"comment":{"url":"https://api.github.com/repos/earlephilhower/psychoplug/issues/comments/402174728","html_url":"https://github.com/earlephilhower/psychoplug/issues/9#issuecomment-402174728","issue_url":"https://api.github.com/repos/earlephilhower/psychoplug/issues/9","id":402174728,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjE3NDcyOA==","user":{"login":"earlephilhower","id":11875,"node_id":"MDQ6VXNlcjExODc1","avatar_url":"https://avatars0.githubusercontent.com/u/11875?v=4","gravatar_id":"","url":"https://api.github.com/users/earlephilhower","html_url":"https://github.com/earlephilhower","followers_url":"https://api.github.com/users/earlephilhower/followers","following_url":"https://api.github.com/users/earlephilhower/following{/other_user}","gists_url":"https://api.github.com/users/earlephilhower/gists{/gist_id}","starred_url":"https://api.github.com/users/earlephilhower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earlephilhower/subscriptions","organizations_url":"https://api.github.com/users/earlephilhower/orgs","repos_url":"https://api.github.com/users/earlephilhower/repos","events_url":"https://api.github.com/users/earlephilhower/events{/privacy}","received_events_url":"https://api.github.com/users/earlephilhower/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T14:21:48Z","updated_at":"2018-07-03T14:21:48Z","author_association":"OWNER","body":"Great!  Would you like to make a PR?"}}
{"actor":{"display_login":"earlephilhower"}}