-
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
Rule MQTT#Disconnected and one-shot detection #3198
Comments
Hi, I could not reproduce this issue with last firmware v6.1.1a. I test the rule you say ( This is the complete console output:
Sorry. Seems that your issue is something else. May be that your broker is up again and down and up ? |
What mqtt lib are you using? |
TasmotaMQTT |
Mine is pubsubclient and i think that's the problem. Time for a change. Thanks for the help. |
Please, test it and let us know if that works for you. |
Great job! Working as expected with pubsubclient. |
Fix rules once regression from v6.1.0 (arendst#3198, arendst#3226)
One-shot detection is not working on rule MQTT#Disconnected. Rule is executed every 10s when MQTT serwer is down and not once.
Jul 12 12:45:14 sonoff11-0720 ESP-RUL: MQTT#DISCONNECTED performs "ruletimer1 60"
Jul 12 12:45:14 sonoff11-0720 ESP-RSL: stat/sonoff11/RESULT = {"RuleTimer1":60}
Jul 12 12:45:25 sonoff11-0720 ESP-MQT: Attempting connection...
Jul 12 12:45:25 sonoff11-0720 ESP-MQT: Connect failed to 192.168.5.201:1883, rc -2. Retry in 10 sec
Jul 12 12:45:25 sonoff11-0720 ESP-RUL: MQTT#DISCONNECTED performs "ruletimer1 60"
The text was updated successfully, but these errors were encountered: