I recently purchased a Bluetooth Home Automation Switch and was following the guide to control it from my Raspberry Pi:
http://plugable.com/2015/01/29/pi-and…
And while the BTAPS1 switch is recognized when I use the “hcitool scan” to scan for it, running “python ~/btaps.py 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/btaps.py”, line 39, in
sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
File “/usr/lib/python2.7/dist-packages/bluetooth/bluez.py”, 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!