rabittn
(Ryan)
6
yeah never thought of the stopping part.
here is the switch template source if that gets you on the tight path.
https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/switch/template.py
looks like someone else opened a feature request.