Extend timer randomization window #12742
Andreas-Marx
started this conversation in
Ideas
Replies: 1 comment
-
I have implemented this feature for my own use. Presentation in the GUI leaves room for improvement :-) Code can be found at https://github.com/Andreas-Marx/Tasmota.git Extend_Timer_Randomization_Window tasmota/xdrv_09_timers.ino | 86 ++++++++++++++++++++++++++++------------------ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The distinction of timer randomization windows [-14,+14] and [-15,+15] seems insignificant. We can make better use of the 4 bits in Timer.window by employing a kind of exponential scale:
If an Off-Command is scheduled within 79 minutes of the corresponding On-Command and both use window +/- 40, the On may be executed after the Off, leaving the switch on. To safely allow large randomization windows for short intervals, we reserve some codes to effectively carry over timer_window[index] from timer_window[index-1] and apply some additional randomization to it.
Caveat: Safe migration of existing settings will be challenging.
Beta Was this translation helpful? Give feedback.
All reactions