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. General Discussion
  3. combine repeater and sensor type

combine repeater and sensor type

Scheduled Pinned Locked Moved General Discussion
5 Posts 4 Posters 1.8k Views 1 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.
  • Steve CasterS Offline
    Steve CasterS Offline
    Steve Caster
    wrote on last edited by
    #1

    Hi all

    Quick Q: I currently have about 5 sensors in my house. Now, the current (5th) sensor seems to be working fine, but it sits at the furthest location from my gateway. I was wondering, can I combine both the repeater and sensor functionality? This sensor serves as a tempHum gateway and would be great if it could also act as a repeater.

    Kind regards
    Steve

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

      @Steve-Caster

      It's doable, but you can not run it from batteries, as it would drain them in a short time, because a repeater node can't go to sleepmode.

      to make a node act as a repeater, you have to use the following to initialize your mysensors library:

      gw.begin(NULL, AUTO, true)
      

      It's described in "details" here

      1 Reply Last reply
      0
      • J Offline
        J Offline
        joshmosh
        wrote on last edited by
        #3

        Hi,
        I have a similar problem and would like to use an already existing node as a repeater. It does not run from battery, so no problem here.

        But I have incoming messages which this node needs to react on. In the code, I check if the incoming message has a child id known by this node. If not, nothing happens. In addition, I am using static node IDs.

        So, instead of

        gw.begin(NULL,  AUTO, true)
        

        my current initialisation is

        gw.begin(incomingMsg, MY_NODEID, false)
        

        because it currently does not act as a repeater.

        Would

        gw.begin(incomingMsg, MY_NODEID, true)
        

        turn this node into a working repeater ?

        Most of the time this node is idle. Every five minutes it reads temperature and humidity and sends it off to the controller. A few times per day it turns some switch on or off. My guess is that the additional workload for repeating messages would not be too high.

        Thank you very much for your input.
        Cheers
        Josh

        1 Reply Last reply
        0
        • hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #4

          @joshmosh said:

          Would

          gw.begin(incomingMsg, MY_NODEID, true)
          turn this node into a working repeater ?

          Yes, this enables the repeater feature.

          J 1 Reply Last reply
          0
          • hekH hek

            @joshmosh said:

            Would

            gw.begin(incomingMsg, MY_NODEID, true)
            turn this node into a working repeater ?

            Yes, this enables the repeater feature.

            J Offline
            J Offline
            joshmosh
            wrote on last edited by
            #5

            @hek said:

            @joshmosh said:

            Would

            gw.begin(incomingMsg, MY_NODEID, true)
            turn this node into a working repeater ?

            Yes, this enables the repeater feature.
            OK,thank you. This will save me an additional node..
            Cheers
            Josh

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


            17

            Online

            11.7k

            Users

            11.2k

            Topics

            113.0k

            Posts


            Copyright 2019 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