OpenWonderLabs / python-host

The python code running on Raspberry Pi or other Linux based boards to control SwitchBot.
Apache License 2.0
379 stars 84 forks source link

Support for device index or bd_addr passed over command line #1

Closed blacklight closed 6 years ago

blacklight commented 6 years ago

Purpose: If you wish to trigger a switch through a non-interactive script, it's better to have a non-interactive way to deal with it :)

New usage:

python switchbot.py [device_index or bd_addr]
SwitchBot commented 6 years ago

Thanks for your feedback, BlackLight. We tried to merge your request, but experienced some minor problem. So we rewrite the master branch to add the new feature, and it should be OK now.