Connect Shelly Sensors to Node-Red (via IP)

Requirements

  • node-red-contrib-shelly

  • Shelly sensor (1st or 2nd generation)

Install the Library

From Manage palette in node-red, install the before mentioned library node-red-contrib-shelly.

Once installed, you will have three new nodes that you can use. The one we’ll use in this tutorial is shelly gen 1 (for 2nd generation of shelly sensors, the same instructions can be applied)

Connect Your Device(s)

  1. Find your device’s IP address

  2. Select the device type in the Shelly node (for this example, a Shelly Gas sensor is used)

  3. Fill in the fields in the Shelly node (it should look similar to the example on the image)

    shellyGen1Node
  4. The username and password fields can be left blank in case your device isn’t password protected

  5. Set the desired frequency of sending output from the node and enable status output after each command


If you add a debug node to the Shelly one and deploy the flow, you should see the data from the sensor in the debug console.

shellyNodeOutput