meshcore-dev/meshcore-ha
À propos
Intégration Home Assistant pour surveiller et contrôler les réseaux radio MeshCore.
Systèmes et infrastructureProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +4
- in 15 days
- +10
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original
MeshCore for Home Assistant
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 hasentry_idanddevice_id. Outgoing message events changed, and a failed send firesmeshcore_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
- In HACS, add
https://github.com/meshcore-dev/meshcore-haas a custom repository of type Integration. - Download MeshCore.
- Restart Home Assistant.
- Go to Settings > Devices & services > Add Integration.
- Select MeshCore.
- Select the connection type.
- 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
- Clone this repository.
- Copy
custom_components/meshcoreinto the configuration directory of your Home Assistant. - Restart Home Assistant.
- 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.
Explorer des projets similaires
Chargement…