Update home-assistant.mdx (#1626)
Some checks are pending
CI / quality (push) Waiting to run
CI / build (push) Waiting to run

* 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:
WJ 2024-12-16 14:38:37 +01:00 committed by GitHub
parent 55f39da383
commit 1f15fc6b23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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') }}"