I think you are probably right
Cant evaluate timer so returns an error
Global variable sit outside the rule, perhaps this cant be done with OH3 at the moment?
Actually, I figured out, that at least for switches and the likes, you don’t need any scripting at all.
MainUI has a timer/counter item, that can be added to for example a switch. If the switch is triggered “ON” again during the countdown, the countdown restarts.
Marlow, can you share how you created the timer item. I have a cell in my overview layout that I wish to implement a timer. I looked at “Configure Cell” and “Edit YAML” but did not find where I could set a timer. That particular cell toggles between “ON” and “OFF” I wish to set a 30 minute timer when that cell is pressed and then switch to another cell.