node-red-contrib-switchbot-devices
Version:
Simple node to get list of Switchbot devices and their status with Node-RED
30 lines (21 loc) • 1.03 kB
Markdown
## How to install
Run this in your ~/.node-red
```
npm install node-red-contrib-switchbot-devices
```
## Introduction
<p>With this node, you can get all your <a href="https://switch-bot.com/">Switchbot</a> devices with Node-RED.</p>
## Description
This node use <a href="https://github.com/OpenWonderLabs/SwitchBotAPI">SwitchbotAPI</a> to get your list devices and their status with Node-RED.
* Input: Switchbot Open Token
* Output: List of devices you have in your account and their current status
## Prequisite
### Get Token
Download Switchbot app, login, Generate an Open Token within the app: Go to Profile > Preference > Tap App Version 10 times. Developer Options will show up > Tap Developer Options > Tap Get Token
## Supports:
* Node.js v 11.15.x
* Node-Red v 1.0.5
## How to use:
* Create flow and add this node between an inject node and a debug node.
* Edit list node with your Switchbot Token.
* Inject and your list of devices will be returned in "debug" node.