Socket
Socket
Sign inDemoInstall

node-red-contrib-hs100

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-red-contrib-hs100

Node red module for controlling HS100 and HS110 devices.


Version published
Weekly downloads
9
Maintainers
1
Install size
43.5 kB
Created
Weekly downloads
 

Readme

Source

node-red-contrib-hs100

This Node-RED node is for controlling tp-link Wi-Fi Smart Plug - Model HS100 (and HS110).

This node has only been tested with a HS100(UK). The HS100 is also available in US and EU plug versions. We expect they will work too.

This node simply wraps the excellent work here https://github.com/czjs2/hs100-api.

Installation

Change directory to your node red installation:

$ npm install node-red-contrib-hs100

Alternatively, use the Palette Manager in Node-RED.

Configuration

Drag this node on to a worksheet and double click it. Enter the IP address of the plug on your network. Save and deploy.

Dynamic configuration of IP address

Alternatively you can dynamically set the IP address of the plug. To do this set the message property 'hs100_address' to the address of the plug that you wish to control.

Actuations

This node supports a number of actuations that are invoked by sending a msg.topic or msg.payload to the node's input.

Topic/PayloadDescription
onTo turn the HS100 on.
offTo turn the HS100 off.
infoGet all plug info, combination of sysinfo, cloudinfo consumption, schedulenextaction
sysinfoGet general plug information.
cloudinfoGet TP-Link Cloud information.
consumptionGet power consumption data
powerstateReturns true if plug is on.
schedulenextaction
schedulerules
awayrules
timerrules
time
timezone
scaninfo
model

Turn on

Turn off

Obtain power consumption data

The HS100 is a simple switch and does not support consumption. The HS110 includes the power consumption feature.

I have been told that the power consumption feature is working with the Australian version of the HS110.

I don't have an HS110 to test with though.

To obtain the power consumption, send a message to this node's input with the topic or payload set to consumption. The consumption data will be sent via this node's output in msg.payload.

Keywords

FAQs

Last updated on 21 Dec 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc