Combine on and off into the same automation

Hi there JoshFink,
There may be a solution but there is a slight problem.

Sadly we’re not mind readers (any more anyway, not after the last time we tried). Please share the YAML and any errors so we can see what you’ve done.