diff --git a/docs/software/integrations/mqtt/home-assistant.mdx b/docs/software/integrations/mqtt/home-assistant.mdx index 1557b169..a9b749d9 100644 --- a/docs/software/integrations/mqtt/home-assistant.mdx +++ b/docs/software/integrations/mqtt/home-assistant.mdx @@ -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') }}"