Error Codes: 'Device busy (166)' & 'Connection error (161)'
My SwitchBot stopped working when I triggered it via IFTTT as well as when I triggered it from the SwitchBot App. I reviewed the logs and saw the following errors:
"Connection error (161)"
"Device busy (166)"
I then looked at the 'Firmware & Battery' tab and noticed the battery % was low. I replaced the battery with a new one and everything went back to normal and is now working properly.
If you see the (161) or the (166) error codes, try replacing the battery.