I’m not certain, it’s a long time since I used any.
I can set up a test case tomorrow but I need sleep at the moment.
So you’ve not used a script or automation for this yet ?
What is your use case ? (to determine best relevance).
No script or automation as yet. The use case I am building is to create a simple counter to track the available “earnt” minutes that my kids are allowed screentime. The intent is that it is used by my wife and i with lovelace buttons to increment/decrement