{"action":"created","issue":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/2561","repository_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota","labels_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/2561/labels{/name}","comments_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/2561/comments","events_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/2561/events","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/2561","id":318589437,"number":2561,"title":"Sonoff Basic, openhab2 and MQTT V3.1 for Windows","user":{"login":"dastrix80","id":38266552,"avatar_url":"https://avatars1.githubusercontent.com/u/38266552?v=4","gravatar_id":"","url":"https://api.github.com/users/dastrix80","html_url":"https://github.com/dastrix80","followers_url":"https://api.github.com/users/dastrix80/followers","following_url":"https://api.github.com/users/dastrix80/following{/other_user}","gists_url":"https://api.github.com/users/dastrix80/gists{/gist_id}","starred_url":"https://api.github.com/users/dastrix80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dastrix80/subscriptions","organizations_url":"https://api.github.com/users/dastrix80/orgs","repos_url":"https://api.github.com/users/dastrix80/repos","events_url":"https://api.github.com/users/dastrix80/events{/privacy}","received_events_url":"https://api.github.com/users/dastrix80/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-28T01:44:06Z","updated_at":"2018-04-28T02:07:27Z","closed_at":null,"author_association":"NONE","body":"\r\nHi All,\r\n\r\nFirst time user of these products.\r\n\r\nIve got my Openhab2 and MQTT broker working as a service.\r\n\r\nIve flashed Tasmota onto my sonoff basic and can toggle the power to the Sonoff via the web browser. \r\nAttached is the output of my Sonoff MQTT information \r\n\r\nFor some reason, I cannot toggle the relay via openHab2 site map. Ive created the items and sitemap and I can see the switch but I cannot triggle it. Commands to the sonoff via the console work fine. Please help :(\r\n\r\n**default.items:**\r\nSwitch GarageAVReceiver \"Garage AV Receiver\" <light> (LR,gLight)\r\n    { mqtt=\">[192.168.0.3:cmnd/Garage/POWER toggle],\r\n            <[192.168.0.3:stat/Garage/POWER:state:default]\" }\r\n\r\n**sitemap:**\r\n    \tSwitch item=GarageAVReceiver        label=\"Garage AV Receiver\"         icon=\"switch\"\r\n\r\n**Output from Sonoff Tasmota console:**\r\n\r\n02:36:56 CMD: /cmnd/sonoff/power toggle\r\n02:36:56 MQT: stat/Garage/RESULT = {\"POWER\":\"ON\"}\r\n02:36:56 MQT: stat/Garage/POWER = ON\r\n02:37:01 MQT: stat/Garage/RESULT = {\"POWER\":\"OFF\"}\r\n02:37:01 MQT: stat/Garage/POWER = OFF\r\n02:38:03 MQT: tele/Garage/STATE = {\"Time\":\"2018-04-28T02:38:03\", \"Uptime\":1, \"Vcc\":3.162, \"POWER\":\"OFF\", \"Wifi\":{\"AP\":1, \"SSId\":\"Tard\", \"RSSI\":100, \"APMac\":\"28:CF:DA:B7:E0:99\"}}\r\n\r\nnetstat from Broker/OpenHab2 machine (192.168.0.3)\r\n\r\nC:\\Users\\sydney desktop PC>netstat\r\n\r\nActive Connections\r\n\r\n  Proto  Local Address          Foreign Address        State\r\n  TCP    192.168.0.3:1883       KK:50819               ESTABLISHED\r\n  TCP    192.168.0.3:1883       KK:51246               ESTABLISHED\r\n  **TCP    192.168.0.3:1883       192.168.0.240:3865     ESTABLISHED**  (THIS IS THE SONOFF)\r\n  TCP    192.168.0.3:3389       KK:64747               ESTABLISHED\r\n\r\n![sonoffo](https://user-images.githubusercontent.com/38266552/39390553-81c3610a-4ad9-11e8-8f88-6ab125c145a6.jpg)"},"comment":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/comments/385132064","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/2561#issuecomment-385132064","issue_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/2561","id":385132064,"user":{"login":"Frogmore42","id":14101627,"avatar_url":"https://avatars0.githubusercontent.com/u/14101627?v=4","gravatar_id":"","url":"https://api.github.com/users/Frogmore42","html_url":"https://github.com/Frogmore42","followers_url":"https://api.github.com/users/Frogmore42/followers","following_url":"https://api.github.com/users/Frogmore42/following{/other_user}","gists_url":"https://api.github.com/users/Frogmore42/gists{/gist_id}","starred_url":"https://api.github.com/users/Frogmore42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frogmore42/subscriptions","organizations_url":"https://api.github.com/users/Frogmore42/orgs","repos_url":"https://api.github.com/users/Frogmore42/repos","events_url":"https://api.github.com/users/Frogmore42/events{/privacy}","received_events_url":"https://api.github.com/users/Frogmore42/received_events","type":"User","site_admin":false},"created_at":"2018-04-28T02:07:27Z","updated_at":"2018-04-28T02:07:27Z","author_association":"NONE","body":"It looks like your configuration on Tasmota is confused:\r\n02:36:56 CMD: /cmnd/sonoff/power toggle\r\n 02:36:56 MQT: stat/Garage/RESULT = {\"POWER\":\"ON\"}\r\n\r\nThe CMD says sonoff but the result says Garage.\r\n\r\nYou are also using a quite old version of Tasmota (5.8.0) and there have been quite a few improvements since then.\r\n\r\nI would start with a never version of FM and then completely clear the configuration (with a Reset 2) and reconfigure with the settings you need."}}
{"actor":{"display_login":"Frogmore42"}}