Connect Shelly Sensors to Node-Red (via IP)
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)
-
Find your device’s IP address
-
Select the device type in the Shelly node (for this example, a Shelly Gas sensor is used)
-
Fill in the fields in the Shelly node (it should look similar to the example on the image)
-
The username and password fields can be left blank in case your device isn’t password protected
-
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.