A node to control SwitchBot devices via its web APIs
npm install node-red-contrib-switchbot-api:warning: | This is not an official package and is in no way related to SwitchBot.
:---: | :---
node-red-contrib-switchbot-api in the Pallete section (under the Install tab)#### Install via npm
1. Navigate to your .node-red folder:cd ~/.node-red
2. Install the package:npm install node-red-contrib-switchbot-api
3. Restart node-red
send command is the only available node type, which allows you to control SwitchBot devices (and remotes) via their web APIs; authorization is done via an API token which you can generate using SwitchBot's official mobile app:#### Inputs
##### API token
Your developer token which you just generated.
##### Device type
Type of the device, can either be a SwitchBot device or a virtual infrared remote.
##### Device name
The name of the device.
##### Command
The command you would like to pass to the device/remote. Full list of commands can be found here (this will take you to SwitchBot's official API documentation page).
##### Parameter
A custom parameter in case it is required by the command. Full list of commands along with their parameters can be found here (this will take you to SwitchBot's official API documentation page).