Library to control Switchbot IoT devices https://www.switch-bot.com/bot
This project is an initial fork from https://github.com/Danielhiversen/pySwitchbot with some major improvements targeted:
- Improved error handling and retry logic when trying to connect to switchbots
- Correct Bluepy API usage
- Add password support (must set a password first in the Switchbot iOS/Android app)
- Get current battery percentage and firmware version
- Get and set long press time settings
- Allow setting the password in an API
- Manage timers etc
- Switch between press and switch modes
Hopefully this project will address some of the shortcomings in the official Switchbot open API.
The goal is to make this component work with HomeAssistant to give more flexibility to users of Switchbots without needing a SwitchBot hub.
Please raise any feature requests as issues.