mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-10 02:46:53 +00:00
Fix MQTT tag scanner example (#16457)
This commit is contained in:
parent
fd0622c69b
commit
7db943baf3
@ -71,11 +71,16 @@ To test, you can use the command line tool `mosquitto_pub` shipped with `mosquit
|
|||||||
Discover the tag scanner:
|
Discover the tag scanner:
|
||||||
|
|
||||||
```bash
|
```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:
|
Generate tag scanned event:
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mosquitto_pub -h 127.0.0.1 -t 0AFFD2/tag_scanned -m '{"Time":"2020-09-28T17:02:10","PN532":{"UID":"E9F35959", "DATA":"ILOVETASMOTA"}}'
|
mosquitto_pub -h 127.0.0.1 -t 0AFFD2/tag_scanned -m '{"Time":"2020-09-28T17:02:10","PN532":{"UID":"E9F35959", "DATA":"ILOVETASMOTA"}}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user