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. mysensors regularly disconnect from HA

mysensors regularly disconnect from HA

Scheduled Pinned Locked Moved Home Assistant
17 Posts 7 Posters 146 Views 9 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.
  • BearWithBeardB Offline
    BearWithBeardB Offline
    BearWithBeard
    wrote on last edited by
    #8

    Hmmm. Unfortunately, that "connection lost" line is to vague for me to draw any conclusions.

    Have you had a chance to look at the gateway's serial log when it lost connection to Home Assistant?

    What version of MySensors are you running by the way? Maybe it's worthwhile to upgrade to 2.3.2 if it isn't already. Home Assistant is also up to date?

    The next steps that I would take would be to ...

    • Check that both MySensors and Home Assistant are on a recent version
    • Watch the gateway serial log for any hints (using a remote debugging library or hooking it up to a server / RPI and writing the serial output to a file)
    • Ensure that the power supply is fine and maybe even replace it temporarily, just in case
    • Consider adapting the gateway sketch to MQTT (or even serial) and see if the issue still comes up
    K 2 Replies Last reply
    0
    • BearWithBeardB BearWithBeard

      Hmmm. Unfortunately, that "connection lost" line is to vague for me to draw any conclusions.

      Have you had a chance to look at the gateway's serial log when it lost connection to Home Assistant?

      What version of MySensors are you running by the way? Maybe it's worthwhile to upgrade to 2.3.2 if it isn't already. Home Assistant is also up to date?

      The next steps that I would take would be to ...

      • Check that both MySensors and Home Assistant are on a recent version
      • Watch the gateway serial log for any hints (using a remote debugging library or hooking it up to a server / RPI and writing the serial output to a file)
      • Ensure that the power supply is fine and maybe even replace it temporarily, just in case
      • Consider adapting the gateway sketch to MQTT (or even serial) and see if the issue still comes up
      K Offline
      K Offline
      keithellis
      wrote on last edited by
      #9

      @BearWithBeard thank you, that gives me a few things to try.

      FarmerEdF 1 Reply Last reply
      0
      • K keithellis

        @BearWithBeard thank you, that gives me a few things to try.

        FarmerEdF Offline
        FarmerEdF Offline
        FarmerEd
        wrote on last edited by
        #10

        @keithellis , I had similar issues with my setup although I didn't investigate it in any kind of detail like suggested above, my solution was simply changing the WiFi network. I was having intermittent connectivity issues with a number of ESP8266/ESP32 devices on my mixed 2.4Ghz/5Ghz Mesh network, so I switched back on my routers WiFi in 2.4ghz mode only and named its SSID "WiFi-IOT" and connected all of these ESP based IOT devices to it and I've had no dropouts since.

        I have 4 MySensors gateways connected to Home Assistant, 2 by WiFi using an ESP8266 and an ESP32, the other 2 are Pi Zeros with 4G Hats connected by a VPN, since surprisingly I never had connectivity issues with the 2 remote devices and always the 2 WiFi ones literally next to the router I could only suspect the WiFi network. It may not be your issue but worth considering just the same. I think I will probably convert mine to serial gateways when I get the time.

        K 1 Reply Last reply
        1
        • FarmerEdF FarmerEd

          @keithellis , I had similar issues with my setup although I didn't investigate it in any kind of detail like suggested above, my solution was simply changing the WiFi network. I was having intermittent connectivity issues with a number of ESP8266/ESP32 devices on my mixed 2.4Ghz/5Ghz Mesh network, so I switched back on my routers WiFi in 2.4ghz mode only and named its SSID "WiFi-IOT" and connected all of these ESP based IOT devices to it and I've had no dropouts since.

          I have 4 MySensors gateways connected to Home Assistant, 2 by WiFi using an ESP8266 and an ESP32, the other 2 are Pi Zeros with 4G Hats connected by a VPN, since surprisingly I never had connectivity issues with the 2 remote devices and always the 2 WiFi ones literally next to the router I could only suspect the WiFi network. It may not be your issue but worth considering just the same. I think I will probably convert mine to serial gateways when I get the time.

          K Offline
          K Offline
          keithellis
          wrote on last edited by
          #11

          @FarmerEd @BearWithBeard I tried to re-flash the wifi gateway, but it appears I am now stuffed. Apparently it is no longer possible to flash MySensors onto an ESP8266. Where to go now? It is possible to integrate NRF240L01 with a ESPHome gateway?

          electrikE 1 Reply Last reply
          0
          • K keithellis

            @FarmerEd @BearWithBeard I tried to re-flash the wifi gateway, but it appears I am now stuffed. Apparently it is no longer possible to flash MySensors onto an ESP8266. Where to go now? It is possible to integrate NRF240L01 with a ESPHome gateway?

            electrikE Offline
            electrikE Offline
            electrik
            wrote on last edited by
            #12

            @keithellis flashing onto an esp8266 is still possible, but you have to make sure you use an earlier esp8266 package, below 3.0 IIRC.
            Compiling mysensors will give you an error probably, search on it in the forum and you will find more people with the same issue. And how to solve it

            K 1 Reply Last reply
            1
            • electrikE electrik

              @keithellis flashing onto an esp8266 is still possible, but you have to make sure you use an earlier esp8266 package, below 3.0 IIRC.
              Compiling mysensors will give you an error probably, search on it in the forum and you will find more people with the same issue. And how to solve it

              K Offline
              K Offline
              keithellis
              wrote on last edited by
              #13

              @electrik Yes I've found this post, but to be honest I don't no how to change the ESP8266 core. I'm flashing with the Arduino IDE and have used the ESP8266 Community Board. Is using version 2.7.4 of this board manager the same as using a v2 core?

              K 1 Reply Last reply
              0
              • K keithellis

                @electrik Yes I've found this post, but to be honest I don't no how to change the ESP8266 core. I'm flashing with the Arduino IDE and have used the ESP8266 Community Board. Is using version 2.7.4 of this board manager the same as using a v2 core?

                K Offline
                K Offline
                keithellis
                wrote on last edited by
                #14

                @keithellis I think I've got it refreshed now. So lets see if this fixes my disconnection issues. thanks all.

                1 Reply Last reply
                0
                • BearWithBeardB BearWithBeard

                  Hmmm. Unfortunately, that "connection lost" line is to vague for me to draw any conclusions.

                  Have you had a chance to look at the gateway's serial log when it lost connection to Home Assistant?

                  What version of MySensors are you running by the way? Maybe it's worthwhile to upgrade to 2.3.2 if it isn't already. Home Assistant is also up to date?

                  The next steps that I would take would be to ...

                  • Check that both MySensors and Home Assistant are on a recent version
                  • Watch the gateway serial log for any hints (using a remote debugging library or hooking it up to a server / RPI and writing the serial output to a file)
                  • Ensure that the power supply is fine and maybe even replace it temporarily, just in case
                  • Consider adapting the gateway sketch to MQTT (or even serial) and see if the issue still comes up
                  K Offline
                  K Offline
                  keithellis
                  wrote on last edited by
                  #15

                  I'm still getting this error on mysensors gate upgraded to 2.3.2.

                  @BearWithBeard said in mysensors regularly disconnect from HA:

                  Have you had a chance to look at the gateway's serial log when it lost connection to Home Assistant?

                  No this is on my list to do.

                  What version of MySensors are you running by the way? Maybe it's worthwhile to upgrade to 2.3.2 if it isn't already. Home Assistant is also up to date?

                  HA is 2010.09.0, I can't upgrade further until I upgrade to Debian Bullseye
                  Mysensors gateway is running 2.3.2, some nodes are slightly older.

                  The next steps that I would take would be to ...

                  • Check that both MySensors and Home Assistant are on a recent version

                  Done

                  • Watch the gateway serial log for any hints (using a remote debugging library or hooking it up to a server / RPI and writing the serial output to a file)

                  On my todo list.

                  • Ensure that the power supply is fine and maybe even replace it temporarily, just in case

                  Checked, all seems ok

                  • Consider adapting the gateway sketch to MQTT (or even serial) and see if the issue still comes up

                  Don't really want to do this, but will to as a last result once I've checked gateway serial log.

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    chey
                    wrote on last edited by
                    #16

                    I've run into the same issue with HA using ethernet. I believe it's an issue with the MySensors HA integration and their reconnect logic.

                    I've had better luck with Serial and MQTT.

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      d-smes
                      wrote on last edited by
                      #17

                      Same issue here. HA receives data from Ethernet Gateway for only a few minutes and then:

                      DEBUG (MainThread) [mysensors.gateway_tcp] Connection lost with <_SelectorSocketTransport closing fd=42 read=idle write=<idle, bufsize=0>>
                      

                      I also have MYSController connected to the GW and it remains connected. There is an open issue as others are also having the same problem. Am wondering if anyone here is having success with Ethernet Gateway connected to HA.

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


                      8

                      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