What are the values to return for a switch preference? This is when using a manual global switch and adding "formula" to it.
Also, the auto on and off for switches only work within the kustom editor itself and the widget does not execute the auto on/off or it does it after a long time than the value set.
KWGT does not support seconds so regardless of the value you put in the auto off KWGT will react to it only in minutes, so auto off works but only if you use multiple of minutes. When you use a manual formula you either return 0 or 1, so, for example, if you set "auto off" to a formula the switch will go off when the formula value will be "1", when the value will be zero manual value will be used.
Thanks for the explanation.