Based on what I am seeing in the debug session (assuming it is in fact you) appears to be an incorrect password. Manual mode, once enabled, does not require a password to toggle on/off which is why that works fine. However, turning on/off manual mode itself requires a password and when you tried to toggle it off it failed (401). This is directly from the OpenSprinkler. So please check the password in the app under Manage Sites. Hopefully, this will fix the issue.