mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
Add section
This commit is contained in:
parent
f092c14653
commit
5ecbe2e776
@ -15,6 +15,8 @@ ha_iot_class: depends
|
||||
|
||||
The `mqtt` device tracker platform allows you to detect presence by monitoring an MQTT topic for new locations. To use this platform, you specify a unique topic for each device.
|
||||
|
||||
## {% linkable_title Configuration %}
|
||||
|
||||
To use this device tracker in your installation, add the following to your `configuration.yaml` file:
|
||||
|
||||
```yaml
|
||||
@ -37,6 +39,8 @@ qos:
|
||||
type: integer
|
||||
{% endconfiguration %}
|
||||
|
||||
## {% linkable_title Usage %}
|
||||
|
||||
Example JSON you can publish to the topic (e.g., via mqtt.publish service):
|
||||
|
||||
```json
|
||||
|
@ -15,6 +15,8 @@ ha_release: 0.44
|
||||
|
||||
The `mqtt_json` device tracker platform allows you to detect presence by monitoring an MQTT topic for new locations. To use this platform, you specify a unique topic for each device.
|
||||
|
||||
## {% linkable_title Configuration %}
|
||||
|
||||
To use this device tracker in your installation, add the following to your `configuration.yaml` file:
|
||||
|
||||
```yaml
|
||||
@ -37,6 +39,8 @@ qos:
|
||||
type: string
|
||||
{% endconfiguration %}
|
||||
|
||||
## {% linkable_title Usage %}
|
||||
|
||||
This platform receives JSON formatted payloads containing GPS information, for example:
|
||||
|
||||
```json
|
||||
|
Loading…
x
Reference in New Issue
Block a user