{"action":"created","issue":{"url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/170","repository_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt","labels_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/170/comments","events_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/170/events","html_url":"https://github.com/Koenkk/zigbee2mqtt/issues/170","id":337272894,"node_id":"MDU6SXNzdWUzMzcyNzI4OTQ=","number":170,"title":"Total newbie - outbound mqtt message to turn on/off switch","user":{"login":"eflemingtra","id":13082155,"node_id":"MDQ6VXNlcjEzMDgyMTU1","avatar_url":"https://avatars0.githubusercontent.com/u/13082155?v=4","gravatar_id":"","url":"https://api.github.com/users/eflemingtra","html_url":"https://github.com/eflemingtra","followers_url":"https://api.github.com/users/eflemingtra/followers","following_url":"https://api.github.com/users/eflemingtra/following{/other_user}","gists_url":"https://api.github.com/users/eflemingtra/gists{/gist_id}","starred_url":"https://api.github.com/users/eflemingtra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eflemingtra/subscriptions","organizations_url":"https://api.github.com/users/eflemingtra/orgs","repos_url":"https://api.github.com/users/eflemingtra/repos","events_url":"https://api.github.com/users/eflemingtra/events{/privacy}","received_events_url":"https://api.github.com/users/eflemingtra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-01T08:08:48Z","updated_at":"2018-07-01T08:12:45Z","closed_at":null,"author_association":"NONE","body":"Hi guys,\r\n\r\nI'm using OpenHAB and have successfully got zigbee2mqtt working. First was a Xiaomi temperature sensor which successfully gives me temperature and humidty readings via MQTT. I've also paired a Xiaomi smart plug.\r\n\r\nI'm struggling to understand the outbound message in JSON format required to turn the plug on and off. Here's what I use in OpenHAB:\r\n\r\n> Switch Xiaomi_Switch_State \"In Line Fan Switch\" {mqtt=\">[broker:zigbee2mqtt/0x00158d000215fcfb/set:state:ON]\"}\r\n\r\nI'm pretty sure the /set:state:ON is incorrect. I'm using MQTT Lens to observe the output of my commands and the message is being sent, but nothing is happening."},"comment":{"url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/comments/401591666","html_url":"https://github.com/Koenkk/zigbee2mqtt/issues/170#issuecomment-401591666","issue_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/170","id":401591666,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTU5MTY2Ng==","user":{"login":"Koenkk","id":2892853,"node_id":"MDQ6VXNlcjI4OTI4NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/2892853?v=4","gravatar_id":"","url":"https://api.github.com/users/Koenkk","html_url":"https://github.com/Koenkk","followers_url":"https://api.github.com/users/Koenkk/followers","following_url":"https://api.github.com/users/Koenkk/following{/other_user}","gists_url":"https://api.github.com/users/Koenkk/gists{/gist_id}","starred_url":"https://api.github.com/users/Koenkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Koenkk/subscriptions","organizations_url":"https://api.github.com/users/Koenkk/orgs","repos_url":"https://api.github.com/users/Koenkk/repos","events_url":"https://api.github.com/users/Koenkk/events{/privacy}","received_events_url":"https://api.github.com/users/Koenkk/received_events","type":"User","site_admin":false},"created_at":"2018-07-01T08:12:45Z","updated_at":"2018-07-01T08:12:45Z","author_association":"OWNER","body":"The topic should be `zigbee2mqtt/0x00158d000215fcfb/set` with payload `{\"state\": \"ON\"}`"}}
{"actor":{"display_login":"Koenkk"}}