Skip to content

Node-RED node to control all myStrom smart devices (This is the official repo)

License

Notifications You must be signed in to change notification settings

myStrom/node-red-contrib-mystrom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Build Status npm-version dependencies Status Packagist

NPM

Features

  • Control nodes via JSON input flows or by simply setting the values in the properties menu
  • Automatic discovery of myStrom devices
  • Full functionality of the myStrom api
  • Status message of how the message was sent
  • Status if message has arrived at destination (TODO)
  • Graphical color picker for lights (TODO)

Installation

Installation on Node-RED

myStrom-Node-RED was written in Node.js v4.2.6 and tested on Node-RED v0.19.4.

To use it execute npm install node-red-contrib-mystrom or use the node-RED interface by accessing Node-RED web ui -> top right menu -> "manage palette"->"install"-> serach for "node-red-contrib-mystrom"

Bugs

The skill does not work if your node-red instance is running over https.

Please report all bugs through the Github issues page. Your help is greatly appreciated.

Nodes

  • myStrom Switch
  • myStrom Bulb
  • myStrom Light Strip
  • myStrom Button
  • myStrom Button+

General usage

Usage:

  1. Select the device in the properties of the node. To do this simply click on the node and a new menu will pop up. From there you can either:
    • Select an already configured device.
    • Create a new device. If you choose to create a new device, you can either specify this device by providing an IP and MAC address. You can also use the "discovered devices" dropdown to select a device that has automatically discovered in your network.
  2. Specify which action should be executed when the node is triggered.
  3. The node will be triggered once it receives any kind of input.

Button usage

Usage:

  1. Make sure your devices are in the configuration mode.
    • Button: Connect the button to a power source with the provided USB cable. After some minutes it should become visible in the network
    • Button+: Open the back of the button up by rotating it clockwise. Remove the batteries and reinsert them. The button should now be visible to the network.
  2. Specify the ip address and data you would like to send. For more control over what/where we send the request to see the advanced guide.
  3. Connect your other nodes and services you would like to trigger to the nodes outputs.
  4. Press the button on the left side of the button node to upload your configuration to the button. You only need to reupload the data if you have changed something within the button node. If you change what you have attached to the output ports or connect/disconnect nodes from these ports, you do not have to upload it again.

For an advanced user guide on how to use the myStrom nodes see here