Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Node-RED
  4. Need help to connect gateway to Node-RED

Need help to connect gateway to Node-RED

Scheduled Pinned Locked Moved Node-RED
5 Posts 3 Posters 2.0k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    willemx
    wrote on last edited by
    #1

    I would like to use Node-RED as my single home automation controller and use MySensors devices for monitoring/control. In the past few days I have managed to get Node-RED up and running on a Raspberry Pi and I also built a MySensors temperature sensor node on a Arduino and a MySensors WiFi gateway using a ESP8266 NodeMCU board.
    Now it is time to connect the gateway to Node-RED, but I have no idea how to accomplish this.
    I understand that there are "plugins" that should be available for the gateway to connect to various types of controllers, but I cannot find such a plugin to connect to Node-RED.
    Can someone show me a small example how to get a temperature reading from my sensor into Node-RED?
    And also, how to control a MySensors device (like a relay switch) from Node-RED?

    YveauxY 1 Reply Last reply
    0
    • W willemx

      I would like to use Node-RED as my single home automation controller and use MySensors devices for monitoring/control. In the past few days I have managed to get Node-RED up and running on a Raspberry Pi and I also built a MySensors temperature sensor node on a Arduino and a MySensors WiFi gateway using a ESP8266 NodeMCU board.
      Now it is time to connect the gateway to Node-RED, but I have no idea how to accomplish this.
      I understand that there are "plugins" that should be available for the gateway to connect to various types of controllers, but I cannot find such a plugin to connect to Node-RED.
      Can someone show me a small example how to get a temperature reading from my sensor into Node-RED?
      And also, how to control a MySensors device (like a relay switch) from Node-RED?

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #2

      @tbowmo this is your chance to promote your latest node-red mySensors nodes ;-)

      http://yveaux.blogspot.nl

      1 Reply Last reply
      1
      • tbowmoT Offline
        tbowmoT Offline
        tbowmo
        Admin
        wrote on last edited by
        #3

        @willemx
        You can install node-red-contrib-mysensors, which includes a couple of nodes that makes life easier with node-red / mysensors, both with serial gateways, and with MQTT enabled gateways.

        For inspiration, you can take a peek at https://github.com/tbowmo/nodered-mysensors-flow.

        I can give some more hints later today, when I'm back home..

        1 Reply Last reply
        0
        • W Offline
          W Offline
          willemx
          wrote on last edited by willemx
          #4

          I did install node-red-contrib-mysensors and these nodes will indeed be very useful for me.
          However, the part I'm struggling with is how to get input into the mysdecode node. This input needs to come from the gateway of course, but I don't now how to make the gateway send this to node-RED. And also, I don't know what to do with the output of mysencode to get the data to the gateway.
          I understand that if I was using a MQTT gateway this would be easy, but I have a WiFi ESP8266 gateway (because I wanted my gateway to communicate wireless and I couldn't find a wireless MQTT gateway...)

          EDIT: I just did find a wireless MQTT gateway!
          It was somewhat hidden as an example sketch inside the Ethernet MQTT gateway. I will now install Mosquitto on my Raspberry Pi and try if I can get this wireless gateway to speak to Node-RED.
          Will report back...

          1 Reply Last reply
          0
          • W Offline
            W Offline
            willemx
            wrote on last edited by
            #5

            I have the wireless gateway and Mosquitto running and now I can see the temperature readings coming into node-RED, nicely decoded through mysdecode.
            Thanks everyone for these amazing frameworks!

            1 Reply Last reply
            1
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            1

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular