Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.29 KB

README.md

File metadata and controls

23 lines (16 loc) · 1.29 KB

pySwitchbot Build Status

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.

HomeAssistant Battery Attribute

Please raise any feature requests as issues.

Buy me a coffee :)