Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
node-red-contrib-hs100
Advanced tools
Readme
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.
Change directory to your node red installation:
$ npm install node-red-contrib-hs100
Alternatively, use the Palette Manager in Node-RED.
Drag this node on to a worksheet and double click it. Enter the IP address of the plug on your network. Save and deploy.
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.
This node supports a number of actuations that are invoked by sending a msg.topic or msg.payload to the node's input.
Topic/Payload | Description |
---|---|
on | To turn the HS100 on. |
off | To turn the HS100 off. |
info | Get all plug info, combination of sysinfo, cloudinfo consumption, schedulenextaction |
sysinfo | Get general plug information. |
cloudinfo | Get TP-Link Cloud information. |
consumption | Get power consumption data |
powerstate | Returns true if plug is on. |
schedulenextaction | |
schedulerules | |
awayrules | |
timerrules | |
time | |
timezone | |
scaninfo | |
model |
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
.
FAQs
Node red module for controlling HS100 and HS110 devices.
The npm package node-red-contrib-hs100 receives a total of 7 weekly downloads. As such, node-red-contrib-hs100 popularity was classified as not popular.
We found that node-red-contrib-hs100 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.