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. offline mode

offline mode

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 894 Views 3 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.
  • J Offline
    J Offline
    JoergP
    wrote on last edited by
    #1

    I'm working with mysensors since vesion v1.5 and I'm really impressed about the feature set and how easy it is to implement a new node.

    In the meanwhile I have ~10 nodes installed and last weekend I upgraded to v2.1 - so far so good ;-)

    During the update I thought about how I can improve the stability of my system - maybe another motivation was that my wife's mood was really sad due to offline time of the system during the update - I worked 2h on that and during this time my light and some other stuff stopped working. Do you know the statement - "happy wife - happy life" ;-)

    I have a central gateway with node red and mqtt and 2 router nodes to increase the communication distance.

    The main question is - how can I detect the downtime of my gateway in a node to enter a defined "offline mode". For example - I have some light controller nodes with connected PIR modules - in online mode the PIR sends a message and the controller activates the light for a dedicated time. If the network is down it would be great if the node handles this logic by it's own - without any controller. If the network is online again the node goes back to its default behavior.

    I read the API documentation - specially about the function "send"
    There is a return value - but I couldn't find any clear description or example how to handle this return value correctly. Another question is - what about if there is a router node between node and gateway?

    Does anyone has an idea how to implement such an offline detection mechanism?

    Many thanks for your help in advance,
    Joerg

    Boots33B 1 Reply Last reply
    0
    • J JoergP

      I'm working with mysensors since vesion v1.5 and I'm really impressed about the feature set and how easy it is to implement a new node.

      In the meanwhile I have ~10 nodes installed and last weekend I upgraded to v2.1 - so far so good ;-)

      During the update I thought about how I can improve the stability of my system - maybe another motivation was that my wife's mood was really sad due to offline time of the system during the update - I worked 2h on that and during this time my light and some other stuff stopped working. Do you know the statement - "happy wife - happy life" ;-)

      I have a central gateway with node red and mqtt and 2 router nodes to increase the communication distance.

      The main question is - how can I detect the downtime of my gateway in a node to enter a defined "offline mode". For example - I have some light controller nodes with connected PIR modules - in online mode the PIR sends a message and the controller activates the light for a dedicated time. If the network is down it would be great if the node handles this logic by it's own - without any controller. If the network is online again the node goes back to its default behavior.

      I read the API documentation - specially about the function "send"
      There is a return value - but I couldn't find any clear description or example how to handle this return value correctly. Another question is - what about if there is a router node between node and gateway?

      Does anyone has an idea how to implement such an offline detection mechanism?

      Many thanks for your help in advance,
      Joerg

      Boots33B Offline
      Boots33B Offline
      Boots33
      Hero Member
      wrote on last edited by
      #2

      @JoergP We have been talking about similar things in these posts

      mys-library-startup-control-after-onregistration

      my_transport_dont_care_mode

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


      19

      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