Meshtastic to Home Assistant (Hass)
A Python client for use with Meshtastic devices. The client connects to a mesh radio via USB serial port. Telemetry and position messages from the mesh are published to an MQTT broker and further into Home Assistant. All MQTT entities will by auto discovered in Home Assistant.
Usage
usage: meshtastic2hass [-h] [--config CONFIG] [--dev DEV] [--mqtt-host MQTT_HOST] [--mqtt-port MQTT_PORT] [--mqtt-user MQTT_USER]
[--mqtt-password MQTT_PASSWORD] [--mqtt-topic-prefix MQTT_TOPIC_PREFIX] [--use-network USE_NETWORK]
[--hostname HOSTNAME] [--version]
Connects Meshtastic radios via MQTT to Home Assistant (Hass).
options:
-h, --help show this help message and exit
--config CONFIG Path to configuration file in TOML format.
--dev DEV The device the Meshtastic device is connected to, i.e. /dev/ttyUSB0
--mqtt-host MQTT_HOST
The MQTT broker host name or IP.
--mqtt-port MQTT_PORT
The MQTT broker port.
--mqtt-user MQTT_USER
The MQTT broker user name.
--mqtt-password MQTT_PASSWORD
The MQTT broker password.
--mqtt-topic-prefix MQTT_TOPIC_PREFIX
The MQTT topic prefix
--use-network USE_NETWORK
Use network connection to Meshtastic interface instead of serial
--hostname HOSTNAME Meshtastic interface network hostname or IP
--version show programs version number and exit
Node Filter
By default all received Meshtastic nodes will create entities in Home Assistant.
This might be an undesired behavior when only some nodes are of interest. A node filter can be defined in config.toml.
filter_nodes = [] takes a set of Meshtastic nodes short names to be includes in filter. Only these nodes will be forwarded to home assistant via MQTT topic, hence creating entities. Keep empty to forward all nodes.
Receiving channels text from nodes is not filtered at all.
Build
Requires tox. Builds an sdist and wheel into dist/, versioned from the current git tag/commit:
tox -e clean # remove old build/dist/*.egg-info
tox -e build
Install
Published on PyPI as meshtastic2hass:
pip install meshtastic2hass
# or, for an isolated CLI install:
pipx install meshtastic2hass
In some environments, use pip3 instead of pip.
To install from a clone of this repository instead (e.g. to try unreleased changes on main), replace meshtastic2hass above with ..
Metadata
Release files for meshtastic2hass 1.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| meshtastic2hass-1.1.6.tar.gz | 29.6 kB | Without provenance | Details for meshtastic2hass-1.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| meshtastic2hass-1.1.6-py3-none-any.whl | Python 3 | none | any | Details for meshtastic2hass-1.1.6-py3-none-any.whl |
Total release size: 54.1 kB
Release files / meshtastic2hass-1.1.6.tar.gz
| Download URL | meshtastic2hass-1.1.6.tar.gz |
|---|---|
| Size | 29.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cabfa9667a5a2b856f8f2e003dd7944271fd8b52a2684c98a76a0a90a7375a58
|
|
BLAKE2b-256 checksum How to use checksums |
80a28e18d0dabf1b6ed547dbaa12e8fda488a44cb4ad1a7a2c8735dc9bf2e946
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / meshtastic2hass-1.1.6-py3-none-any.whl
| Download URL | meshtastic2hass-1.1.6-py3-none-any.whl |
|---|---|
| Size | 24.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6084423c7de61fbb92ca8acde6b7b0c7aefbae2d04066e0e7c0409b545f3a976
|
|
BLAKE2b-256 checksum How to use checksums |
6dfc278bd43031993b94ee641e677f91c0e73b815d5b0967eafd45c328c08214
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for meshtastic2hass 1.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.