Fixed the OnOffCommand sending TMS when not needed