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. Relay Node with Fallback feature, if network is lost or controller is failing...

Relay Node with Fallback feature, if network is lost or controller is failing...

Scheduled Pinned Locked Moved Development
5 Posts 4 Posters 30 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.
  • M Offline
    M Offline
    monics
    wrote on last edited by
    #1

    Hi All,

    Do you have any ideas/hints/best practices or examples on how to make a Relay Node, where the relay will turn off, if the network connection is lost or the controller fails? My starting point is the MySensors Relay sketch.

    The intention is a safety feature that will turn off a relay if "control" is lost... either if the network connection is lost or controller for some reason should fail.

    Thanks,
    Martin.

    E 1 Reply Last reply
    0
    • TheoLT Offline
      TheoLT Offline
      TheoL
      Contest Winner
      wrote on last edited by
      #2

      To my knowledge MySensors is a stateless connection, so you can not know when the connection is lost after the node has been initialized. Also when a node is connected to a repeater node, I was told you will get an ack from the repeater even if it fails to deliver the message.

      I'm more curious to what you want to achieve, or what you've hooked up to that relay?

      1 Reply Last reply
      0
      • M monics

        Hi All,

        Do you have any ideas/hints/best practices or examples on how to make a Relay Node, where the relay will turn off, if the network connection is lost or the controller fails? My starting point is the MySensors Relay sketch.

        The intention is a safety feature that will turn off a relay if "control" is lost... either if the network connection is lost or controller for some reason should fail.

        Thanks,
        Martin.

        E Offline
        E Offline
        ejlane
        wrote on last edited by
        #3

        @monics To know whether the controller was online and working, you could do something simple like request a variable from it, or just check on/request the time every so often. If it responds then things are good, and if it times out then you've got a problem and you can act on it.

        1 Reply Last reply
        0
        • E Offline
          E Offline
          eiten
          wrote on last edited by
          #4

          @monics A simple solution would be to code sketch in a way that it switches off the relay automatically after, let's say, 10 seconds. On the controller side, send a ON message every 9 seconds.

          Regards, Edi

          1 Reply Last reply
          0
          • TheoLT Offline
            TheoLT Offline
            TheoL
            Contest Winner
            wrote on last edited by
            #5

            Depending what's connected to a relay, I wouldn't make it go on or off depending on the controller state. It can lead to dangerous behaviour and it's prohibited by law in my country.

            In all honesty I have my Sensors running for a long long time. It's stable and more reliable than anything else I have running in my home.

            But like @eiten says yo could write a sketch that queries for a variable. But I think I'd go for a controller side solution. That would "ping" my node and send a nottfication to my phone whenever the node can't be reached.

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


            12

            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