Bluetooth Home Automation Switch BTAPS1 Raspberry Pi error.

I recently purchased a Bluetooth Home Automation Switch and was following the guide to control it from my Raspberry Pi:…

And while the BTAPS1 switch is recognized when I use the “hcitool scan” to scan for it, running “python ~/ 00:00:00:00:00:00 on” (obviously I use my bdaddr instead of the 0’s) I get the following output:

Searching for Plugable PS-BTAPS1 on 8C:DE:52:20:C7:27
Connecting to 8C:DE:52:20:C7:27
Traceback (most recent call last):
File “/home/pi/”, line 39, in
sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
File “/usr/lib/python2.7/dist-packages/bluetooth/”, line 117, in __init__
_sock = _bt.btsocket (proto)
_bluetooth.error: (93, ‘Protocol not supported’)

I’m rather new at playing around with the raspberry pi and don’t have a very strong coding background, so it might be a stupid mistake, but can anyone interpret what is going wrong and how I can fix it? Thanks!

Followed these instructions…

and added “DisablePlugins = pnat” to /etc/bluetooth/main/conf

Which fixed the issue.

Hi Justin,

Thank you for posting about using the Pi and Automation switch. I’m the writer of that article.

I’ve seen a similar error from time to time, and it seems to be somewhat random. Please try rebooting your pi and running the command again. Also, I’m sure you installed the python-bluez library, but I just want to be sure.


Plugable Technologies

I Followed these instructions

and added “DisablePlugins = pnat” to /etc/bluetooth/main/conf

Which fixed the issue. Don’t exactly know why or how, but I’m happy the issue is resolved.

Hi Justin,

I’m going to close this thread. If you have any further questions, please contact us at Thanks!