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 "ON System#Boot" not triggered in tasmota.bin with SetOption55 0 #7552
Comments
Your example rule is executed at boot. Cannot reproduce the issue.
|
Thank you for looking into this! Your observation left me quite puzzled. Therefore I completely reset the Shelly via esptool and flashed various firmware versions via serial. I do not fully understand how using the wrong binary can lead to this strange symptom while everything else works fine. Regards, |
@ascillato2 could you please re-open this issue? I did some debugging and it turned out that the the "on system#boot" rule is never triggered if you use the recommended release binary with its default settings and don't configure MQTT. The reason is this code in MqttReconnect() in xdrv_02_mqtt.ino
For some reason, the system boot event is generated by the MQTT driver in MqttConnected(). I think the solution would be to make the system boot event independent from MQTT. Please have another look and comment. Thanks and regards, |
As designed. SYSTEM#BOOT only triggers if mqtt is on. If you want a trigger for an earlier event prior all the initialization, you can use ON POWER1#BOOT DO .... |
I'll make sure there will be a SYSTEM#BOOT trigger when no MQTT is enabled. |
Been looking over the code and I found the code part you mention:
It's not in MqttReconnect() but the more obvious MqttCheck(). And still it does trigger the SYSTEM#BOOT on a restart as can be seen here:
In the above case the So although the top code in MqttCheck() does not execute function MqttConnected is executed once anyway by the bottom part of MqttCheck() at a restart which will also execute the SYSTEM#BOOT trigger. EDIT: I see where it goes wrong: When Will redesign mdns... |
Fix trigger SYSTEM#BOOT when mdns is disabled an no mqqthost is set (#7552)
Hi, Theo has fixed this bug. Please test it. Thanks. |
Thank you very much, Theo and Adrian! Now it works as expected. |
Your question as nothing to do with that closed issue |
PROBLEM DESCRIPTION
It seems that the rule trigger System#Boot is no longer executed since I upgraded my Shelly to Tasmota 8.1. On another device that is still on Tasmota 6.6. the same rule is working as expected.
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
EXPECTED BEHAVIOUR
On Tasmota 6.6 this returns
{"Var1":"0"}
as expected. But on Tasmota 8.1. it returns{"Var1":""}
. Also 6.6. prints the messageRUL: SYSTEM#BOOT performs "Backlog Var1 0; Var2 0"
on the web console but on 8.1 there is no such message.The text was updated successfully, but these errors were encountered: