mysensors regularly disconnect from HA
-
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
-
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
@BearWithBeard thank you, that gives me a few things to try.
-
@BearWithBeard thank you, that gives me a few things to try.
@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.
-
@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.
@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?
-
@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?
@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 -
@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 -
@keithellis I think I've got it refreshed now. So lets see if this fixes my disconnection issues. thanks all.
-
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
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.
-
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.