SwitchBotプラグの制御ツール
git clone https://github.com/kmikage/switchbot-plug-easy-controller.git
- SwitchBOTのAPI Tokenを設定
$ ./switchbot-plug.sh --set-token <Your SwitchBot API Token>
- SwitchBot プラグの一覧を表示(DeviceID, Name)
$ ./switchbot-plug.sh --get-device-list
40F5****1496,Light(Living)
483F****D835,Light(Bedroom)
- 制御するSwitchBot PlusのDeviceIDを指定
$ ./switchbot-plug.sh --set-device <Your SwitchBot Plus DeviceID>
Turn On / Off
$ ./switchbot-plug.sh on
$ ./switchbot-plug.sh off
Show Current Status
$ ./switchbot-plug.sh status
off