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. Controllers
  3. Home Assistant
  4. Can a gateway talk to itself?

Can a gateway talk to itself?

Scheduled Pinned Locked Moved Home Assistant
6 Posts 4 Posters 106 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.
  • Danielo RodríguezD Offline
    Danielo RodríguezD Offline
    Danielo Rodríguez
    wrote on last edited by
    #1

    Hello,
    Recently I updated my gateway to add 3 status leds to it. They are working great and they allowed me to notice a singular pattern. Yesterday was the first day with the three leds and my hassio wasn't working very well. From time to time, I was seeing the green led turning on. Normal, it is looking for devices, I told myself. But today that I restarted my hassio after fixing some networking problems, I am noticing a much more frequent led blinking and not only the send one, but also the receiving one. This is what I see on the logs:

    2020-07-29 09:57:15 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
    2020-07-29 09:57:15 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.1
    2020-07-29 09:57:25 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
    2020-07-29 09:57:25 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.1
    2020-07-29 09:57:35 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
    2020-07-29 09:57:35 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.1
    

    I only have two nodes, and the other node is battery powered and turned off, so, who is my gateway talking to? Is it sending packets to itself?

    1 Reply Last reply
    0
    • BearWithBeardB Offline
      BearWithBeardB Offline
      BearWithBeard
      wrote on last edited by
      #2

      This is the controller (Home Assistant) pinging the gateway, to see if it's still running. It does this every 10 seconds by requesting the GW's sketch version (an internal command of type I_VERSION). The GW responds with 2.3.1. If the GW wouldn't reply, HA would disconnect from the GW and try to establish a new connection.

      See Serial Protocol - 2.x to make sense out of the string in the log.

      If you want to get rid of those ping-pong messages (and the constant blinking of the LEDs), you can switch to an MQTT gateway (per Ethernet or WiFi, doesn't matter).

      Danielo RodríguezD 1 Reply Last reply
      1
      • BearWithBeardB BearWithBeard

        This is the controller (Home Assistant) pinging the gateway, to see if it's still running. It does this every 10 seconds by requesting the GW's sketch version (an internal command of type I_VERSION). The GW responds with 2.3.1. If the GW wouldn't reply, HA would disconnect from the GW and try to establish a new connection.

        See Serial Protocol - 2.x to make sense out of the string in the log.

        If you want to get rid of those ping-pong messages (and the constant blinking of the LEDs), you can switch to an MQTT gateway (per Ethernet or WiFi, doesn't matter).

        Danielo RodríguezD Offline
        Danielo RodríguezD Offline
        Danielo Rodríguez
        wrote on last edited by
        #3

        @BearWithBeard thanks for your response.
        Yesterday it was way less common to see this blinking, probably due to my networking problems and probably longer disconnected periods.

        It is not annoying me at all, it is just that I didn't expected the RX and TX leds to blink with communication that is not about the radio and the nodes, but it probably makes sense.

        Thanks

        mfalkviddM 1 Reply Last reply
        0
        • Danielo RodríguezD Danielo Rodríguez

          @BearWithBeard thanks for your response.
          Yesterday it was way less common to see this blinking, probably due to my networking problems and probably longer disconnected periods.

          It is not annoying me at all, it is just that I didn't expected the RX and TX leds to blink with communication that is not about the radio and the nodes, but it probably makes sense.

          Thanks

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @Danielo-Rodríguez it is possible to use MY_INDICATION_HANDLER to see the reason for the blink. I am not sure, but maybe it is possible to also redefine which actions cause a blink. See https://github.com/mysensors/MySensors/blob/master/core/MyIndication.h#L23 and https://forum.mysensors.org/search?term=My_indication_handler&in=titlesposts&matchWords=all&sortBy=relevance&sortDirection=desc&showAs=posts

          1 Reply Last reply
          0
          • Danielo RodríguezD Offline
            Danielo RodríguezD Offline
            Danielo Rodríguez
            wrote on last edited by
            #5

            Wow, that is very nice @mfalkvidd
            So I can override the indication function and it will be called on the same events that are now handled automatically right? So if I define this function I have to handle all the enum options right?
            Thanks

            YveauxY 1 Reply Last reply
            1
            • Danielo RodríguezD Danielo Rodríguez

              Wow, that is very nice @mfalkvidd
              So I can override the indication function and it will be called on the same events that are now handled automatically right? So if I define this function I have to handle all the enum options right?
              Thanks

              YveauxY Offline
              YveauxY Offline
              Yveaux
              Mod
              wrote on last edited by
              #6

              @Danielo-Rodríguez yes, that is correct

              http://yveaux.blogspot.nl

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


              26

              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