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.
Please read carefully documentation for HA. https://www.home-assistant.io/integrations/mysensors/
You need to send initial state of your sensors. There is example code for doing it. Basically you check in loop if the node just started and send some values to HA. After that your sensor will appear in HA.
@Multimax do you send initial states for all children for this multi relay node? HA won't show anything that hasn't sent initial data to show.
https://www.home-assistant.io/integrations/mysensors/#presentation
Hi, friend!
He also became interested in the Home Assistant system, but was upset by the lack of support OTA.
I use a system Majordomo for MySensors devices and my Ethernet-RS485 gateways are based on ENC28J60.
And I found such an idea for myself - to implement a proxy for the TCP protocol in order to implement a parallel connection to the gateway of two systems at the same time.
I tested this solution and it turned out to work - I was able to flash via OTA , while simultaneously receiving data in Home Assistant.
Perhaps this idea will be of interest to you.