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. Development
  3. Can a Node subscribe to messages from another node?

Can a Node subscribe to messages from another node?

Scheduled Pinned Locked Moved Development
4 Posts 2 Posters 772 Views 2 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.
  • P Offline
    P Offline
    pcs
    wrote on last edited by
    #1

    Hello,

    i want to make a MySensors Network which handles simple tasks without an controller (but with an gateway).

    I have a node with a button-sensor and a node with an lightactuator.
    If i want to switch on the light with the button i can send a MyMessage direct to the node with the lightsenor.

    But is it also possible for the node with the lightactuator to "subscribe" to the buttonnode?
    The buttonnode sends (if not specified else) its message to the gatewaynode.
    Technically also the lightnode see´s this message and should be able to react.
    (I know if there are repeaternodes involved it´s not that simple - but we can ignore this)

    Is it possible to implement this idea with MySensors?
    Kind regards
    pcs

    rejoe2R 1 Reply Last reply
    0
    • P pcs

      Hello,

      i want to make a MySensors Network which handles simple tasks without an controller (but with an gateway).

      I have a node with a button-sensor and a node with an lightactuator.
      If i want to switch on the light with the button i can send a MyMessage direct to the node with the lightsenor.

      But is it also possible for the node with the lightactuator to "subscribe" to the buttonnode?
      The buttonnode sends (if not specified else) its message to the gatewaynode.
      Technically also the lightnode see´s this message and should be able to react.
      (I know if there are repeaternodes involved it´s not that simple - but we can ignore this)

      Is it possible to implement this idea with MySensors?
      Kind regards
      pcs

      rejoe2R Offline
      rejoe2R Offline
      rejoe2
      wrote on last edited by
      #2

      @pcs In general, using MySensors without controller isn't recommended. Achieving your goal may be possible (you will at least make sure the nodes have the relevant routing and their ID's already set by your sketches).

      Sending data directly to other nodes is also possible, please look for node to node communication, then you will find some few examples to follow.

      Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pcs
        wrote on last edited by
        #3

        i know that a controller is necessary and i have one running. So ID assignment und routing is working.
        As i wrote I know that one node can send a message to another node and that is working so far.
        I´m just interessted if it is possible for a node to listen for changes on another node.
        Like the subscription-principle MQTT uses.

        rejoe2R 1 Reply Last reply
        0
        • P pcs

          i know that a controller is necessary and i have one running. So ID assignment und routing is working.
          As i wrote I know that one node can send a message to another node and that is working so far.
          I´m just interessted if it is possible for a node to listen for changes on another node.
          Like the subscription-principle MQTT uses.

          rejoe2R Offline
          rejoe2R Offline
          rejoe2
          wrote on last edited by rejoe2
          #4

          @pcs

          @rejoe2 said in Can a Node subscribe to messages from another node?:

          Sending data directly to other nodes is also possible, please look for node to node communication, then you will find some few examples to follow.

          It's not subscribing but active sending from node to node:

          send(msgXXX.setDestination(target node)...)
          

          Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

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


          18

          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