Is script.turn_off a thing? ... How to cancel a script?

I see script.turn_off as an option on the automation screen:

image

But I don’t see script.turn_off listed in the script documentation:

If you wish to stop a longer-running script while it is still running, is script.turn_off the best way to do it?

It’s the only way. And it will only work with scripts that contain a wait or delay action.

1 Like

Thank you, @tom_l! I wonder why it is not documented…

1 Like