Sounds like you’ve been having a lot of issues with custom code meant to integrate with external services, developed by community members.
It might be helpful to focus on one issue at a time. Community devs are generally happy to help troubleshoot when users are having difficulty. Most of them have a thread dedicated to a driver or app they have released. For example, this one re: Switchbot.