one sensor via two gateways - how?



  • 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!


  • ADMIN

    @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.


 

Suggested Topics

11
Online

392
Users

365
Topics

2.2k
Posts