When I finish remodeling my kitchen I can give it more time.
If I leave the kitchen to go and code my wife will kill me!
Lol
I hope to be back coding in about 10-14 days then it should take me a week or so to get something up. (Maybe not as pretty as before but it should be something.)
Atm, I’m spending my day sanding and oiling oak worktops
You don't need to have the delay on the Restore. Just have it after the end-rpt and that's when it will take place. Yours is forcing it to happen on a schedule, most likely before the last toggle is complete.
I'm curious why your repeat looks different than mine. Oh, and I also had to make it 5 times....otherwise the light was in the same stat that it started anyway (toggle an even number of times and it will be). What type of device are you controlling? Anything that has any type of ramp rate isn't going to work for something like this (i.e. a dimmer). I tested using a smart plug and it worked fine.
What do you have the Transition Time set to? That is going to cause a delay. If you have that set to 1s, the second toggle is going to be ignored. Try setting the transition time to 500ms and then the repeat to every 2 seconds and I'm willing to bet it will work then. I just tried it with my hue lights and it did work.