{"action":"created","issue":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/3637","repository_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota","labels_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/3637/labels{/name}","comments_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/3637/comments","events_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/3637/events","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/3637","id":355257472,"node_id":"MDU6SXNzdWUzNTUyNTc0NzI=","number":3637,"title":"MQT: Connect failed, rc8","user":{"login":"nightcat91","id":31433650,"node_id":"MDQ6VXNlcjMxNDMzNjUw","avatar_url":"https://avatars1.githubusercontent.com/u/31433650?v=4","gravatar_id":"","url":"https://api.github.com/users/nightcat91","html_url":"https://github.com/nightcat91","followers_url":"https://api.github.com/users/nightcat91/followers","following_url":"https://api.github.com/users/nightcat91/following{/other_user}","gists_url":"https://api.github.com/users/nightcat91/gists{/gist_id}","starred_url":"https://api.github.com/users/nightcat91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightcat91/subscriptions","organizations_url":"https://api.github.com/users/nightcat91/orgs","repos_url":"https://api.github.com/users/nightcat91/repos","events_url":"https://api.github.com/users/nightcat91/events{/privacy}","received_events_url":"https://api.github.com/users/nightcat91/received_events","type":"User","site_admin":false},"labels":[{"id":1004672914,"node_id":"MDU6TGFiZWwxMDA0NjcyOTE0","url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/labels/awaiting%20for%20feedback","name":"awaiting for feedback","color":"efcf3e","default":false},{"id":1038675502,"node_id":"MDU6TGFiZWwxMDM4Njc1NTAy","url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/labels/troubleshooting","name":"troubleshooting","color":"012b5e","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-08-29T17:21:05Z","updated_at":"2018-08-29T18:40:19Z","closed_at":null,"author_association":"NONE","body":"Make sure these boxes are checked [x] before submitting your issue - Thank you!\r\n\r\n- [x ] Searched the problem in issues (https://github.com/arendst/Sonoff-Tasmota/issues)\r\n- [ x] Searched the problem in the wiki (https://github.com/arendst/Sonoff-Tasmota/wiki/Troubleshooting)\r\n- [] Searched the problem in the forum (https://groups.google.com/d/forum/sonoffusers)\r\n- [x ] Searched the problem in the chat (https://discord.gg/Ks2Kzd4)\r\n- [x ] Hardware used : Sonoff Basic\r\n- [x ] Provide the output of command ``status 0`` :\r\n```\r\n19:09:24 MQT: stat/sonoff01/STATUS = {\"Status\":{\"Module\":1,\"FriendlyName\":[\"Sonoff 01 Küche Rechts\"],\"Topic\":\"sonoff01\",\"ButtonTopic\":\"0\",\"Power\":0,\"PowerOnState\":3,\"LedState\":7,\"SaveData\":2,\"SaveState\":1,\"ButtonRetain\":0,\"PowerRetain\":1}}\r\n19:09:24 MQT: stat/sonoff01/STATUS1 = {\"StatusPRM\":{\"Baudrate\":115200,\"GroupTopic\":\"sonoffs\",\"OtaUrl\":\"http://sonoff.maddox.co.uk/tasmota/sonoff.bin\",\"RestartReason\":\"Software/System restart\",\"Uptime\":\"0T23:46:11\",\"StartupUTC\":\"2018-08-28T17:23:13\",\"Sleep\":5,\"BootCount\":1,\"SaveCount\":52,\"SaveAddress\":\"F8000\"}}\r\n19:09:24 MQT: stat/sonoff01/STATUS2 = {\"StatusFWR\":{\"Version\":\"6.1.1\",\"BuildDateTime\":\"2018-08-28T19:19:41\",\"Boot\":6,\"Core\":\"2_4_1\",\"SDK\":\"2.2.1(cfd48f3)\"}}\r\n19:09:24 MQT: stat/sonoff01/STATUS3 = {\"StatusLOG\":{\"SerialLog\":2,\"WebLog\":2,\"SysLog\":0,\"LogHost\":\"\",\"LogPort\":514,\"SSId\":[\"Naitsabes\",\"sebsmarthome\"],\"TelePeriod\":600,\"SetOption\":[\"00008029\",\"55818000\"]}}\r\n19:09:24 MQT: stat/sonoff01/STATUS4 = {\"StatusMEM\":{\"ProgramSize\":495,\"Free\":508,\"Heap\":19,\"ProgramFlashSize\":1024,\"FlashSize\":1024,\"FlashMode\":3,\"Features\":[\"00000809\",\"0FC0A984\",\"0C000000\",\"01001496\",\"00000000\"]}}\r\n19:09:24 MQT: stat/sonoff01/STATUS5 = {\"StatusNET\":{\"Hostname\":\"sonoff01-2179\",\"IPAddress\":\"192.168.10.151\",\"Gateway\":\"192.168.10.1\",\"Subnetmask\":\"255.255.255.0\",\"DNSServer\":\"192.168.10.1\",\"Mac\":\"5C:CF:7F:B4:A8:83\",\"Webserver\":2,\"WifiConfig\":2}}\r\n19:09:24 MQT: stat/sonoff01/STATUS6 = {\"StatusMQT\":{\"MqttHost\":\"192.168.10.150\",\"MqttPort\":1883,\"MqttClientMask\":\"DVES_%06X\",\"MqttClient\":\"DVES_B4A883\",\"MqttUser\":\"sonoff01\",\"MqttType\":2,\"MAX_PACKET_SIZE\":1000,\"KEEPALIVE\":15}}\r\n19:09:24 MQT: stat/sonoff01/STATUS7 = {\"StatusTIM\":{\"UTC\":\"Wed Aug 29 17:09:24 2018\",\"Local\":\"Wed Aug 29 19:09:24 2018\",\"StartDST\":\"Sun Mar 25 02:00:00 2018\",\"EndDST\":\"Sun Oct 28 03:00:00 2018\",\"Timezone\":99,\"Sunrise\":\"06:28\",\"Sunset\":\"20:02\"}}\r\n19:09:24 MQT: stat/sonoff01/STATUS10 = {\"StatusSNS\":{\"Time\":\"2018-08-29T19:09:24\"}}\r\n19:09:24 MQT: stat/sonoff01/STATUS11 = {\"StatusSTS\":{\"Time\":\"2018-08-29T19:09:24\",\"Uptime\":\"0T23:46:11\",\"Vcc\":3.405,\"POWER\":\"OFF\",\"Wifi\":{\"AP\":1,\"SSId\":\"Naitsabes\",\"RSSI\":64,\"APMac\":\"C8:0E:14:02:3D:E1\"}}}\r\n```\r\n\r\nI get disconneted form MQTT server every few minutes.\r\nIts a sonoff basic with 6.1.1 installed, updated from 5.12.0a via uploading a self compiled bin file. \r\nUsing #define MQTT_LIBRARY_TYPE      MQTT_TASMOTAMQTT\r\nWhen it looses connection it turn off (there is a light connected to it) and once it connects again it turn the light back on since the last POWER message from HomeAssistant is retained.\r\nI already looked at the possible error codes for MQTT here:\r\nhttps://github.com/arendst/Sonoff-Tasmota/wiki/MQTT-Overview#troubleshooting\r\nbut \"rc8\" is not found there\r\n\r\nHere is the sonsole output from that sonoff:\r\n```\r\n22:23:18 MQT: cmnd/sonoff01/POWER = \r\n22:23:18 MQT: stat/sonoff01/RESULT = {\"POWER\":\"OFF\"}\r\n22:23:18 MQT: stat/sonoff01/POWER = OFF (retained)\r\n22:23:34 MQT: Connect failed to 192.168.10.150:1883, rc 8. Retry in 10 sec\r\n22:23:35 WIF: Connecting to AP1 Naitsabes in mode 11N as sonoff01-2179...\r\n22:23:39 WIF: Connected\r\n22:23:40 MQT: Connected\r\n22:23:40 MQT: tele/sonoff01/LWT = Online (retained)\r\n22:23:40 MQT: cmnd/sonoff01/POWER = \r\n22:23:40 MQT: stat/sonoff01/RESULT = {\"POWER\":\"OFF\"}\r\n22:23:40 MQT: stat/sonoff01/POWER = OFF (retained)\r\n22:23:59 WIF: Connecting to AP1 Naitsabes in mode 11N as sonoff01-2179...\r\n22:24:03 WIF: Connected\r\n22:25:55 MQT: Connect failed to 192.168.10.150:1883, rc 8. Retry in 10 sec\r\n22:26:01 MQT: Connected\r\n22:26:01 MQT: tele/sonoff01/LWT = Online (retained)\r\n22:26:01 MQT: cmnd/sonoff01/POWER = \r\n22:26:01 MQT: stat/sonoff01/RESULT = {\"POWER\":\"OFF\"}\r\n22:26:01 MQT: stat/sonoff01/POWER = OFF (retained)\r\n22:26:33 MQT: Connect failed to 192.168.10.150:1883, rc 8. Retry in 10 sec\r\n22:26:39 MQT: Connected\r\n22:26:39 MQT: tele/sonoff01/LWT = Online (retained)\r\n22:26:39 MQT: cmnd/sonoff01/POWER = \r\n22:26:39 MQT: stat/sonoff01/RESULT = {\"POWER\":\"OFF\"}\r\n22:26:39 MQT: stat/sonoff01/POWER = OFF (retained)\r\n22:26:42 MQT: tele/sonoff01/STATE = {\"Time\":\"2018-08-28T22:26:42\",\"Uptime\":\"0T03:03:29\",\"Vcc\":3.404,\"POWER\":\"OFF\",\"Wifi\":{\"AP\":1,\"SSId\":\"Naitsabes\",\"RSSI\":68,\"APMac\":\"C8:0E:14:02:3D:E1\"}}\r\n22:30:25 MQT: Connect failed to 192.168.10.150:1883, rc 8. Retry in 10 sec\r\n22:30:31 MQT: Connected\r\n22:30:31 MQT: tele/sonoff01/LWT = Online (retained)\r\n22:30:31 MQT: cmnd/sonoff01/POWER = \r\n22:30:31 MQT: stat/sonoff01/RESULT = {\"POWER\":\"OFF\"}\r\n22:30:31 MQT: stat/sonoff01/POWER = OFF (retained)\r\n22:30:51 WIF: Connecting to AP1 Naitsabes in mode 11N as sonoff01-2179...\r\n22:30:54 WIF: Connected\r\n22:30:55 MQT: Connect failed to 192.168.10.150:1883, rc 8. Retry in 10 sec\r\n22:31:01 MQT: Connected\r\n22:31:01 MQT: tele/sonoff01/LWT = Online (retained)\r\n22:31:01 MQT: cmnd/sonoff01/POWER = \r\n22:31:01 MQT: stat/sonoff01/RESULT = {\"POWER\":\"OFF\"}\r\n22:31:01 MQT: stat/sonoff01/POWER = OFF (retained)\r\n22:32:21 MQT: Connect failed to 192.168.10.150:1883, rc 8. Retry in 10 sec\r\n22:32:27 MQT: Connected\r\n22:32:27 MQT: tele/sonoff01/LWT = Online (retained)\r\n22:32:27 MQT: cmnd/sonoff01/POWER = \r\n22:32:27 MQT: stat/sonoff01/RESULT = {\"POWER\":\"OFF\"}\r\n22:32:27 MQT: stat/sonoff01/POWER = OFF (retained)\r\n22:33:45 MQT: Connect failed to 192.168.10.150:1883, rc 8. Retry in 10 sec\r\n22:33:51 MQT: Connected\r\n22:33:51 MQT: tele/sonoff01/LWT = Online (retained)\r\n22:33:51 MQT: cmnd/sonoff01/POWER = \r\n22:33:51 MQT: stat/sonoff01/RESULT = {\"POWER\":\"OFF\"}\r\n22:33:51 MQT: stat/sonoff01/POWER = OFF (retained)\r\n22:34:38 WIF: Connecting to AP1 Naitsabes in mode 11N as sonoff01-2179...\r\n22:34:39 MQT: Connect failed to 192.168.10.150:1883, rc 8. Retry in 10 sec\r\n22:34:42 WIF: Connected\r\n22:34:45 MQT: Connected\r\n22:34:45 MQT: tele/sonoff01/LWT = Online (retained)\r\n22:34:45 MQT: cmnd/sonoff01/POWER = \r\n22:34:45 MQT: stat/sonoff01/RESULT = {\"POWER\":\"OFF\"}\r\n22:34:45 MQT: stat/sonoff01/POWER = OFF (retained)\r\n22:36:54 MQT: tele/sonoff01/STATE = {\"Time\":\"2018-08-28T22:36:54\",\"Uptime\":\"0T03:13:41\",\"Vcc\":3.403,\"POWER\":\"OFF\",\"Wifi\":{\"AP\":1,\"SSId\":\"Naitsabes\",\"RSSI\":68,\"APMac\":\"C8:0E:14:02:3D:E1\"}}\r\n22:37:45 WIF: Connecting to AP1 Naitsabes in mode 11N as sonoff01-2179...\r\n22:37:48 WIF: Connected\r\n22:39:09 MQT: Connect failed to 192.168.10.150:1883, rc 8. Retry in 10 sec\r\n22:39:09 WIF: Connecting to AP1 Naitsabes in mode 11N as sonoff01-2179...\r\n22:39:13 WIF: Connected\r\n22:39:15 MQT: Connected\r\n22:39:15 MQT: tele/sonoff01/LWT = Online (retained)\r\n22:39:15 MQT: cmnd/sonoff01/POWER = \r\n22:39:15 MQT: stat/sonoff01/RESULT = {\"POWER\":\"OFF\"}\r\n22:39:15 MQT: stat/sonoff01/POWER = OFF (retained)\r\n22:39:33 WIF: Connecting to AP1 Naitsabes in mode 11N as sonoff01-2179...\r\n22:39:37 WIF: Connected\r\n22:40:56 MQT: Connect failed to 192.168.10.150:1883, rc 8. Retry in 10 sec\r\n22:41:02 MQT: Connected\r\n22:41:02 MQT: tele/sonoff01/LWT = Online (retained)\r\n22:41:02 MQT: cmnd/sonoff01/POWER = \r\n22:41:02 MQT: stat/sonoff01/RESULT = {\"POWER\":\"OFF\"}\r\n22:41:02 MQT: stat/sonoff01/POWER = OFF (retained)\r\n22:41:18 MQT: Connect failed to 192.168.10.150:1883, rc 8. Retry in 10 sec\r\n22:41:19 WIF: Connecting to AP1 Naitsabes in mode 11N as sonoff01-2179...\r\n22:41:22 WIF: Connected\r\n22:41:24 MQT: Connected\r\n22:41:24 MQT: tele/sonoff01/LWT = Online (retained)\r\n22:41:24 MQT: cmnd/sonoff01/POWER = \r\n22:41:24 MQT: stat/sonoff01/RESULT = {\"POWER\":\"OFF\"}\r\n22:41:24 MQT: stat/sonoff01/POWER = OFF (retained)\r\n```\r\n\r\nAnd here is the log from my Mosquitto broker (Home Assistant Addon):\r\n```\r\n1535560611: Socket error on client DVES_B4A883, disconnecting.\r\n1535560617: New connection from 192.168.10.151 on port 1883.\r\n1535560617: New client connected from 192.168.10.151 as DVES_B4A883 (c1, k15, u'sonoff01').\r\n1535560644: Socket error on client DVES_B4A883, disconnecting.\r\n1535560647: New connection from 192.168.10.151 on port 1883.\r\n1535560647: New client connected from 192.168.10.151 as DVES_B4A883 (c1, k15, u'sonoff01').\r\n1535560687: Socket error on client DVES_B4A883, disconnecting.\r\n1535560690: New connection from 192.168.10.151 on port 1883.\r\n1535560690: New client connected from 192.168.10.151 as DVES_B4A883 (c1, k15, u'sonoff01').\r\n1535560744: Socket error on client DVES_4BDB08, disconnecting.\r\n1535560748: New connection from 192.168.10.233 on port 1883.\r\n1535560748: New client connected from 192.168.10.233 as DVES_4BDB08 (c1, k15, u'h803').\r\n1535560752: New connection from 192.168.10.151 on port 1883.\r\n1535560752: Client DVES_B4A883 already connected, closing old connection.\r\n1535560752: Client DVES_B4A883 disconnected.\r\n1535560752: New client connected from 192.168.10.151 as DVES_B4A883 (c1, k15, u'sonoff01').\r\n1535560843: Socket error on client DVES_B4A883, disconnecting.\r\n1535560849: New connection from 192.168.10.151 on port 1883.\r\n1535560849: New client connected from 192.168.10.151 as DVES_B4A883 (c1, k15, u'sonoff01').\r\n1535560855: Socket error on client DVES_4BDB08, disconnecting.\r\n1535560858: New connection from 192.168.10.233 on port 1883.\r\n1535560858: New client connected from 192.168.10.233 as DVES_4BDB08 (c1, k15, u'h803').\r\n1535560911: Socket error on client DVES_4BDB08, disconnecting.\r\n1535560914: New connection from 192.168.10.233 on port 1883.\r\n1535560914: New client connected from 192.168.10.233 as DVES_4BDB08 (c1, k15, u'h803').\r\n1535560921: Socket error on client DVES_B4A883, disconnecting.\r\n1535560924: New connection from 192.168.10.151 on port 1883.\r\n1535560924: New client connected from 192.168.10.151 as DVES_B4A883 (c1, k15, u'sonoff01').\r\n1535560976: Socket error on client DVES_855D9F, disconnecting.\r\n1535560983: Socket error on client DVES_B4A883, disconnecting.\r\n1535560986: New connection from 192.168.10.151 on port 1883.\r\n1535560986: New client connected from 192.168.10.151 as DVES_B4A883 (c1, k15, u'sonoff01').\r\n```\r\n\r\nThis also seems to happen to one of my other devices (h803) as you can see from the log. That device is a H801 with 6.1.1 installed (also using MQTT_TASMOTAMQTT). Funny enough I have two more H801 devices with the same software installed but not having that problem...\r\n\r\nAny help would be very nice, and if you need any more info I am happy to provide that or help however I can. "},"comment":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/comments/417061128","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/3637#issuecomment-417061128","issue_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/3637","id":417061128,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzA2MTEyOA==","user":{"login":"Jason2866","id":24528715,"node_id":"MDQ6VXNlcjI0NTI4NzE1","avatar_url":"https://avatars1.githubusercontent.com/u/24528715?v=4","gravatar_id":"","url":"https://api.github.com/users/Jason2866","html_url":"https://github.com/Jason2866","followers_url":"https://api.github.com/users/Jason2866/followers","following_url":"https://api.github.com/users/Jason2866/following{/other_user}","gists_url":"https://api.github.com/users/Jason2866/gists{/gist_id}","starred_url":"https://api.github.com/users/Jason2866/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jason2866/subscriptions","organizations_url":"https://api.github.com/users/Jason2866/orgs","repos_url":"https://api.github.com/users/Jason2866/repos","events_url":"https://api.github.com/users/Jason2866/events{/privacy}","received_events_url":"https://api.github.com/users/Jason2866/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T18:40:19Z","updated_at":"2018-08-29T18:40:19Z","author_association":"CONTRIBUTOR","body":"Please download it again. Your setup seems corrupted.\r\nIt does compile without errors."}}
{"actor":{"display_login":"Jason2866"}}