-
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
Sonoff Dual R2: Multiple restart using rules #2744
Comments
Your sequence is spot on! The one-shot is not handled by a restart. I could change the code by using a memory location which survives the restart and if one-shot is set it should not execute again. I'll investigate. |
Many thanks. My current set up works well, but would be perfect if it didn't "silently" reboot several time unnecessarily. I have a spare dual to run tests on if this would help? |
5.14.0a * Fix timer re-trigger within one minute after restart (#2744)
Tested and Fixed in development v5.14.0a. |
Confirmed working on Sonoff Dual R2 with thanks. I did however have some issues trying to compile v5.14.0a using the Arduino IDE. I managed to successfully compile and then upload by commenting out the whole Serial Sensor section of user_config.h. I don't use the serial sensors (yet) so it doesn't affect me however thought it useful to report my experience. Many thanks for sorting out the timer multi restart so quickly. |
You need tasmotaserial-2.0.0 (and delete the older version) from the lib folder. Anyway. It works so Iclose this issue. |
Ok thanks will check this tomorrow. Closing issue |
5.14.0a * Fix timer re-trigger within one minute after restart (arendst#2744)
Program Version | 5.13.1. Core/SDK Version | 2_4_1/2.2.1(cfd48f3)
I have set-up a timer (16) to restart the device using rules:
Timer:
Timer16 {"Arm":1,"Mode":0,"Time":"12:00","Days":"1111111","Repeat":1,"Action":3}
Rule:
This nearly works. The device restarts as expected at the time set in timer 16. However, as soon as the device restarts and the clock resets to the correct time the device then restarts again often this happens 6 times before it stops restarting and carries on functioning correctly.
Connecting up to a serial console I see these lines towards the end of the usual start up message:
00:00:00 Project sonoff Sonoff#2 (Topic sonoff, Fallback DVES_XXXXXX, GroupTopic sonoffs) Version 5.13.1-2_4_1
00:00:00 WIF: Connecting to AP1 in mode 11N as sonoff-xxxx...
00:00:12 WIF: Connected
00:00:12 DNS: Initialized
...
...
13:48:53 RUL: CLOCK#TIMER=16 performs "restart 1"
13:48:53 RSL: RESULT = {"Restart":"Restarting"}
13:48:54 APP: Restarting
(ignore the time, I did this to test the issue so not at 12:00)
This happens with Rule 5, oneshot enabled or not. Using the Web interface and clicking on the red restart button, causes the device to reset once - i.e no multi resets as above.
I think (looking for confirmation) the issue is this sequence:
Once passed the cycle of resets the device is as solid as a rock.
I have also tried setting the rule as:
Rule
on clock#timer=16 do restart 99 endonso that I do not keep writing to flash just for my timed restart - assume this is the best way of running a routine restart /reboot.
Looking for pointers on how to stop the cycle of restarts please.
The text was updated successfully, but these errors were encountered: