Skip to content
프로젝트

소개

MeshCore 무선 네트워크를 모니터링하고 제어하는 Home Assistant 연동.

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+4
in 15 days
+10
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

MeshCore Banner

MeshCore for Home Assistant

Add Integration Add Repository

This custom integration connects Home Assistant to a MeshCore companion over USB, BLE or TCP. The companion is the radio that sends and receives on the mesh for Home Assistant. Use it to monitor and control the nodes of your MeshCore mesh.

The integration uses the meshcore-py library.

Documentation

The full documentation is at meshcore-dev.github.io/meshcore-ha. If you upgrade from 2.x, read Upgrade to 3.0 first.

What is new in 3.0

  • Mesh Traffic Policy. New installs get a fixed budget for flood traffic for each companion. This protects the shared mesh. See Mesh Traffic Policy.
  • Most options apply without a reload, including add, edit and remove of tracked nodes.
  • Event changes. Each meshcore_* event has entry_id and device_id. Outgoing message events changed, and a failed send fires meshcore_message_send_failed.
  • Secrets stay hidden. Events and MQTT raw payloads do not contain channel secrets, unless you enable Expose Node Secrets in Events.

Requirements

  • Home Assistant 2025.6.0 or later.
  • A MeshCore companion with the companion firmware for your connection type (USB, Bluetooth or WiFi).
  • For BLE: a direct Bluetooth adapter on the host. A Bluetooth proxy does not work with PIN pairing. BLE has had less testing than USB and TCP.

Installation

  1. In HACS, add https://github.com/meshcore-dev/meshcore-ha as a custom repository of type Integration.
  2. Download MeshCore.
  3. Restart Home Assistant.
  4. Go to Settings > Devices & services > Add Integration.
  5. Select MeshCore.
  6. Select the connection type.
  7. Complete the form.

For manual installation and all options, see Installation. For the tasks after setup, see First steps.

Lovelace card

For a companion Lovelace card that shows MeshCore node data, see meshcore-card.

Share the companion with a phone

To let a phone get the chat messages while Home Assistant monitors repeaters, disable Global Settings > Retrieve queued incoming messages. Status, telemetry, contacts and commands continue to work. See Share the companion with a phone.

Contact Discovery Mode

Contact Discovery Mode controls what the integration keeps for discovered contacts: Entity per contact (default), Data only or Disabled. On a large mesh, use Data only to prevent hundreds of entities. See Contact Discovery Mode.

MQTT upload

Configure a maximum of 6 brokers in Manage MQTT Brokers. The auth token mode needs firmware that permits private key export. Broker changes apply without a reload. See MQTT Upload.

Map Auto Uploader (map.meshcore.io)

When enabled in Global Settings, the integration uploads the repeater, room server and sensor adverts that your companion receives to map.meshcore.io. The firmware must have ENABLE_PRIVATE_KEY_EXPORT=1. For a standalone uploader, see map.meshcore.io-uploader.

Self Diagnostics

When enabled, the integration shows the statistics of the companion as 14 sensors and 3 radio fault binary sensors. The queries go to the companion only and use no airtime on the mesh. Each fault flag stays on until the companion reboots. See Sensors.

Development

Local development

  1. Clone this repository.
  2. Copy custom_components/meshcore into the configuration directory of your Home Assistant.
  3. Restart Home Assistant.
  4. Add the integration in the UI.

Tests

The tests have two tiers. Run each tier as a separate pytest command.

pip install -r requirements-test.txt
pytest tests

pip install -r requirements-test-integration.txt
pytest tests_integration

Support

  • Talk with the community on Discord.
  • Report problems on GitHub Issues.
  • Send code and documentation changes as pull requests.

License

This project uses the MIT License. See the LICENSE file.

관련 프로젝트 살펴보기

불러오는 중…