Plugable-BTAPS python library for creating custom applications with the Plugable PS-BTAPS1

Last Update: December 23rd, 2020
Article ID: 780954

Plugable-BTAPS python library for creating custom applications with the Plugable PS-BTAPS1

We are excited to announce the release of our open-source library for interacting with our Plugable PS-BTAPS1 Bluetooth Power Switch. This library is fully compatible with Windows and Linux systems running Python 2.7 and the pyBluez library. We hope that this library will help the open-source and maker community create interesting new projects and applications with our Programmable Bluetooth Power Switch.

All of the code and documentation for the library is hosted on our Plugable BTAPS Github Repository. Some examples of how to use the library can be found in our Github wiki. The library is MIT Licensed, so feel free to use it directly, or as a reference for implementing BTAPS functionality in any of your projects.

This library exposes most of the features present in our Android and iOS apps including:

  • Setting Switch On/Off
  • Reading current status of switch (name, on/off state, timer settings)
  • Creating, modifying, and deleting timers
  • Changing the device’s name
  • Updating the device’s date and time to your PC’s current date and time

Bundled with the library is also a simple command-line interface for interacting with a single Plugable PS-BTAPS1. It’s an interactive program, and only requires the Bluetooth device address of a PS-BTAPS1 to be used.

# Replace 00:00:00:00:00:00 with your device's Bluetooth Device address btaps 00:00:00:00:00:00

Installation
The library and CLI application can be easily installed using pip.

pip install plugable-btaps

Some small features are still missing, but they will be implemented as time allows. This is the first release of the library, and there are certainly areas to improve on. We welcome code contributions and bug reports in our Github repository.