mirror of
https://github.com/meshtastic/meshtastic.git
synced 2024-12-24 21:24:44 -08:00
Update home-assistant.mdx (#1626)
* Update home-assistant.mdx Avoiding some logging with the specify of the type in automation. * remove extra space --------- Co-authored-by: pdxlocations <117498748+pdxlocations@users.noreply.github.com>
This commit is contained in:
parent
55f39da383
commit
1f15fc6b23
|
@ -280,6 +280,11 @@ Add the following code to your automations.yaml file. Be sure to modify the `to
|
|||
trigger:
|
||||
- platform: mqtt
|
||||
topic: msh/US/2/json/LongFast/!67ea9400
|
||||
value_template: |
|
||||
{% if value_json.type == "text" %}on{% endif %}
|
||||
payload: "on"
|
||||
id: text
|
||||
trigger: mqtt
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: "{{ trigger.payload_json.payload.text | regex_search('@Tropho') }}"
|
||||
|
|
Loading…
Reference in a new issue