Merge pull request #1672 from meshtastic/pdxlocations-patch-2

Clarify HA Send Message Instructions
This commit is contained in:
pdxlocations 2025-01-14 16:13:18 -08:00 committed by GitHub
commit 793a8fed45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -321,7 +321,11 @@ First, create an input text helper entity. The preferred way to configure an inp
### Create a Send Message Automation
This automation will check the send box for changes. After typing a message, either hit enter or click off the box and the automation will send a text string in JSON to the mqtt broker. Make sure to publish to a channel called "mqtt" and to update the device ID and `from` field in the example below. A field `channel` can be added to transmit on a different channel index than the primary, or a `to` field can be added with a node number to send a DM.
This automation will check the send box for changes. After typing a message, either hit enter or click off the box and the automation will send a text string in JSON to the mqtt broker.
To make this work, ensure that your node has a Meshtastic channel configured called "mqtt" with downlink enabled. The PSK doesn't matter. This channel allows the node to listen to messages on the msh/US/2/json/mqtt/ topic.
Now make sure to publish to the same "mqtt" topic and to update the device ID and `from` field in the example below. A field `channel` can be added to transmit on a different channel index than the primary, or a `to` field can be added with a node number to send a DM.
```yaml
- alias: Meshtastic - Send Automation