Fix local mode change for smartthings