• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    one sensor via two gateways - how?

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 745 Views 1 Watching
    Loading More Posts
    • 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.
    • A Offline
      abatapa
      last edited by

      Hello. Thank you for a very nice product - love it! (switched from other vendor 😉 )
      Search didn't give me an answer, so i'm writing here.

      The backgroud: I have two gateways, all - mysensors solution, no MQTT.

      • SerialGW (with radio)
      • EthernetGWradio (with radio)
        and bunch of sensors on their small Arduino Nanos, with switches and relays. Everything works.

      Problem:
      What if one sensor got registered on both gateways, like this:

      0_1507754791470_3b1aeeb4-7a91-41d1-998f-e89381bd74b5-image.png
      Here - orange and blue are the same switches (sensors), as it is seen from their names.

      If the GW, which had first registered the switch - is now fully responsible for the switch. And if the GW is down - i can't do nothing with the switch binded to him. I need to go to find the same switch on "other gateway's" and only then - switch the switch 🙂

      So the question:
      How should i solve this non-redundant scheme? Is it doable with Mycontroller resources? Or should i use MQTT here (if it would help?)
      Could you, please answer, or just point me to a discussion, or a manual - anything that may be helpful.

      Thank you!

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @abatapa
        last edited by

        @abatapa Thank you so much for your support with MyController.

        If the GW, which had first registered the switch - is now fully responsible for the switch. And if the GW is down - i can't do nothing with the switch binded to him. I need to go to find the same switch on "other gateway's" and only then - switch the switch 🙂

        Looks like you are using same radio channel on both the gateway. MyController does not know anything about behind gateway. MyController adding resource details as received from your gateway. Here, your gateway duplicating sensors.

        AFAIK, you should have only one gateway in MySensors network. When we have more than one gateway, we might face issues like this.

        We may go with MQTT in this case. But this will duplicate all of your data. Example: When you turn on the switch, your node will receive two times. Similarly, when the node sends data to the gateway, MyController receives two times. If you have enabled OTA firmware update for this node might face a serious issue in this case. I never worked with two gateways on same radio frequency. Kindly check with MySensors community. They might have strong experience on this.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        0

        Online

        587

        Users

        529

        Topics

        3.4k

        Posts
        Copyright © 2015-2025 MyController.org | Contributors | Localization