From 7db943baf3e110e4ffadc415129a70007fa1856f Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Mon, 8 Feb 2021 15:20:55 +0100 Subject: [PATCH] Fix MQTT tag scanner example (#16457) --- source/_integrations/tag.mqtt.markdown | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/_integrations/tag.mqtt.markdown b/source/_integrations/tag.mqtt.markdown index f56ac2d2e99..1fba648a745 100644 --- a/source/_integrations/tag.mqtt.markdown +++ b/source/_integrations/tag.mqtt.markdown @@ -71,11 +71,16 @@ To test, you can use the command line tool `mosquitto_pub` shipped with `mosquit Discover the tag scanner: ```bash -mosquitto_pub -h 127.0.0.1 -t home-assistant/tag/0AFFD2/config -m '{"topic": "0AFFD2/tag_scanned", "value_template": "{{ value_json.PN532.UID }}"}' +mosquitto_pub -h 127.0.0.1 -t homeassistant/tag/0AFFD2/config -m '{"topic": "0AFFD2/tag_scanned", "value_template": "{{ value_json.PN532.UID }}"}' ``` Generate tag scanned event: +{% raw %} + ```bash mosquitto_pub -h 127.0.0.1 -t 0AFFD2/tag_scanned -m '{"Time":"2020-09-28T17:02:10","PN532":{"UID":"E9F35959", "DATA":"ILOVETASMOTA"}}' ``` + +{% endraw %} +