parisbutterfield / restswitchmate

Control Switchmate devices via REST
MIT License
10 stars 2 forks source link

Hardware Requirements: Flexible? #2

Closed kianrafiee closed 6 years ago

kianrafiee commented 6 years ago

Hi @parisbutterfield !

I am excited to try out your code. I was trying to use the official Switchmate Power Outlet to act as a hub for my Switchmate Toggle Switches but it just does not work. It's a complete mess and the company seems like they don't have a clue at the moment.

Anyway, I have a Raspberry Pi 3 Model B that I have Pi-Hole running on and thought I'd use it for restswitchmate as well.

So I was wondering, is there any flexibility with the hardware requirements? Can I use my Pi 3?

Also, can I use an external USB hub? Like this one and just hook it up to a usb port on the Pi 3 and have the bluetooth adapters hooked up to the USB hub?

And can I use this usb bluetooth adapter?

Thank you so much for your work on this project. I'm not sure why it doesn't have more exposure(or does it?) because I found it on a reddit thread. Believe me if this works for me you saved me some bucks and a lot of headaches.

parisbutterfield commented 6 years ago

Hey @kianrafiee ! The hardware requirements are pretty flexible. The Pi Zero W I used is just an example.

You can definitely use the Pi 3.

You should be able to use any external USB hub. I'd caution against using a USB 3.0 hub because of the interference between bluetooth and USB 3. When I was developing on my Mac (Mac -> USB 3 Hub -> USB Bluetooth adapter) I noticed really bad interference. Shouldn't happen on the Pi, but I'd plug directly into the Pi first.

I can't find much about that Bluetooth adapter. I would buy one from this list https://elinux.org/RPi_USB_Bluetooth_adapters

And thank you for the kind words. Hope to get you up and running soon.

kianrafiee commented 6 years ago

Awesome. Issue resolved.