BLE connection fails with PIN pairing on Linux (Home Assistant)

Open
#342 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 11 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
mobile-dev

Research direction

Start by tracing the BLE setup flow in the Home Assistant integration and checking how it delegates pairing to meshcore-py on Linux. The issue names no files or tests, so first locate the connection and config-flow entry points and check whether PIN handling is supported. Done means establishing whether a PIN can be supplied or handled automatically and providing a supported path to connect with PIN pairing.

Written by the indexing model from the issue text.

Description

bug

Setup:

Home Assistant OS in Proxmox LXC
Intel AX210 Bluetooth adapter (direct passthrough, not proxy)
Heltec V4, Companion Bluetooth firmware
meshcore-ha integration latest version

Problem:
Integration finds the node (MeshCore-e2ret, F8:5B:1B:BE:F5:45) but fails to connect with "Failed to connect". The node has a static PIN set. bluetoothctl does not show a PIN prompt during pairing attempt — just AuthenticationTimeout.

The integration has no PIN input field in the BLE setup flow.

Question:
How is BLE PIN pairing supposed to work on Linux? Does the integration handle PIN automatically via meshcore-py? Is there a way to pass the PIN to the integration?

Dominant language
Python
Stars
269
Forks
58
Avg merge
10d 17h
Merged PRs (30d)
12

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from meshcore-dev/meshcore-ha

All issues in meshcore-dev/meshcore-ha

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.