-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device lag when unable to contact MQTT server #9886
Comments
Old duplicated issue. Was related to the arduino core. Please update to latest Tasmota. |
Thanks so much for the quick response. I am pretty new to this but the research I did suggested that these issues were solved on older versions of the firmware that I have deployed, hence the new ticket. What version is this solved in? |
Hi,
Thanks for the response. I am a bit confused. When I looked all the tickets date back to Feb this year and older and were supposedly fixed in older versions of Tasmota than I have in use. What am I missing as I would really like to solve this issue!!
Kind regards
Rob
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: Adrian Scillato<mailto:notifications@github.com>
Sent: 16 November 2020 16:18
To: arendst/Tasmota<mailto:Tasmota@noreply.github.com>
Cc: robc22<mailto:robertcroucher@outlook.com>; Author<mailto:author@noreply.github.com>
Subject: Re: [arendst/Tasmota] Device lag when unable to contact MQTT server (#9886)
Old duplicated issue.
Was related to the arduino core.
Please update to latest Tasmota.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#9886 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARYZONPMH7QOBDI3CXSPPK3SQFGDXANCNFSM4TXLAXTA>.
|
Please update to latest Tasmota from the development branch. Thanks. |
You can do an OTAurl upgrade from http://ota.tasmota.com/tasmota/tasmota.bin This is the latest version |
Thanks very much for the steer, I’ll do that and see what happens.
Kind regards
Rob
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: Adrian Scillato<mailto:notifications@github.com>
Sent: 16 November 2020 16:24
To: arendst/Tasmota<mailto:Tasmota@noreply.github.com>
Cc: robc22<mailto:robertcroucher@outlook.com>; Author<mailto:author@noreply.github.com>
Subject: Re: [arendst/Tasmota] Device lag when unable to contact MQTT server (#9886)
You can do an OTA upgrade from http://ota.tasmota.com/tasmota/tasmota.bin
This is the latest version
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#9886 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARYZONM7DLCDF3XM3BF4TL3SQFG35ANCNFSM4TXLAXTA>.
|
Just wanted to add to this, I have now updated to 9.1.0
and the same issue still persists, if I enable MQTT but put an incorrect IP in to simulate an uncontactable broker, every time the unit attempts to connect there is a lag that affects the normal operation of the device. What can I try now? |
So, seems that the bug have reappeared again. Reopening issue. |
Changed MQTT Wifi connection timeout from 5000 to 200 mSec (#9886)
Hi, Please, test latest Tasmota version from development branch. Theo have just fixed it. Thanks. |
Will do, many thanks! |
So I have now tested using the latest dev fw 9.1.0.2 The build details are below
and my observations are as follows
For me at least this issue appears to be fixed! Just a couple of outstanding questions!
Many thanks for all your help getting this resolved. |
In general once a fix is in dev it will be in release too. Next release is planned around mid-December so I suggest you start using dev and report any issues you encounter to get a stable release. As it's a global MQTT wifi fix I'm quite sure it works on any hardware. |
Just wanted to follow-up on this after a few days. Today I noticed that all of the devices with the dev firmware were uncontactable (could not be pinged), however I could communicate with them using MQTT and after a quick restart they were all pingable again.... This isnt behaviour I experienced using 8.3.1 previously. |
The ping issue is from your router's side. Search in issues for ARP issue. (#7098, #7770, #8439) You can workaround this following the information in that old issue (depending on your router brand) and if your router was not listed and don't have any ARP option, you can enable gratuitous ARP feature of Tasmota ( |
I discovered this also on my Tasmota POW2 device and I thought the push button was defective ... ... now I understand it's worth to update to latest FW. |
PROBLEM DESCRIPTION
I am using multiple Sonoff and Shelly Devices and I am currently testing a Shelly1. I have noticed that when the device cannot contact the MQTT broker, there is a lag that causes the device to become unresponsive for a period of 3-10 seconds. I can reproduce this by simply changing the IP of the MQTT broker in the device to an incorrect IP and this induces the lag each time the device attempts to connect.
All other network components seem fine and I have no issues with connecting to the device using IP.
The rationale for the problem is that the device, when configured should be lag free even if the MQTT broker is failed so that the user experience appears the same. My example device is used behind a light switch and it seems odd when a user flicks a toggle switch and then they have to wait for the light to go off!
Is there anyway of resolving this?
Many thanks in advance for any help provided.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:(Please use
weblog 4
for more debug information)TO REPRODUCE
Steps to reproduce the behavior:
Change IP of MQTT broker to incorrect IP to simulate failed broker, introduces lag. As soon as the IP is set correctly the behaviour goes away.
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
This specific use case is a Shelly1 with a hard wired toggle switch and a light fixture, the idea being that the light can be turned on or off using the switch so it appears the same as before with no changes in look or feel. In the situation where the MQTT broker fails, until I can recover the unit my expectation would be that the unit continues to work with the hardware switch without any lag.
Thanks again for any and all help!
The text was updated successfully, but these errors were encountered: