meshcore-ha icon indicating copy to clipboard operation
meshcore-ha copied to clipboard

Doesnt work (TCP)

Open Fluffpippi opened this issue 3 months ago • 2 comments

Says ”Connection failed”, but the log for the meshcore device says otherwise. It tries to connect, get an answer, and says ”Connection failed”. Tried maybe 20 times, with restarts of HA. Same problem.

Fluffpippi avatar Aug 26 '26 17:08 Fluffpippi

Same here. Adding the integration over tcp results in the error "Failed to connect". Docker logs for meshcore-proxy show that HA did connect, issued CMD_APPSTART and received SELF_INFO, LOG_DATA, and ADVERTISEMENT of the public_key.

In HA logs I'm seeing:

Logger: homeassistant
Source: runner.py:239
First occurred: 12:51:35 AM (1 occurrence)
Last logged: 12:51:35 AM

Error doing job: Task was destroyed but it is pending! (task: <Task pending name='Task-5132' coro=<EventDispatcher._process_events() done, defined at /usr/local/lib/python3.14/site-packages/meshcore/events.py:209> wait_for=<Future cancelled>>)
Logger: custom_components.meshcore.config_flow
Source: custom_components/meshcore/config_flow.py:177
Integration: MeshCore (documentation, issues)
First occurred: 12:51:20 AM (1 occurrence)
Last logged: 12:51:20 AM

Validation error: Device connection failed
Logger: custom_components.meshcore.config_flow
Source: custom_components/meshcore/config_flow.py:151
Integration: MeshCore (documentation, issues)
First occurred: 12:51:20 AM (1 occurrence)
Last logged: 12:51:20 AM

Failed to connect to device - connect() returned False
Logger: custom_components.meshcore.meshcore_api
Source: custom_components/meshcore/meshcore_api.py:197
Integration: MeshCore (documentation, issues)
First occurred: 12:51:20 AM (1 occurrence)
Last logged: 12:51:20 AM

Error connecting to MeshCore device: [Errno -5] Name has no usable address

I tried removing emoji characters from my radio name, and also tried renaming the radio to the hostname of the meshcore-proxy. I can connect from meshcore app on my Mac but not from HA.

acheslow avatar Sep 06 '26 08:09 acheslow

can you share your HA and integration versions, the TCP host/port you're entering, and how meshcore-proxy is running?

the Name has no usable address error points to hostname resolution. try the proxy's LAN IP directly, without tcp:// or a URL path. if it still fails, include the full debug log from one connection attempt.

awolden avatar Sep 19 '26 05:09 awolden