diff --git a/source/_integrations/device_tracker.mqtt.markdown b/source/_integrations/device_tracker.mqtt.markdown index 5cdf62e3558..6694029cf0f 100644 --- a/source/_integrations/device_tracker.mqtt.markdown +++ b/source/_integrations/device_tracker.mqtt.markdown @@ -33,8 +33,31 @@ qos: description: The QoS level of the topic. required: false type: integer +payload_home: + description: The payload value that represents the 'home' state for the device. + required: false + type: string + default: 'home' +payload_not_home: + description: The payload value that represents the 'not_home' state for the device. + required: false + type: string + default: 'not_home' {% endconfiguration %} +## Complete example configuration + +```yaml +# Complete configuration.yaml entry +device_tracker: + devices: + paulus_oneplus: 'location/paulus' + annetherese_n4: 'location/annetherese' + qos: 1 + payload_home: 'present' + payload_not_home: 'not present' +``` + ## Usage Example JSON you can publish to the topic (e.g., via mqtt.publish service):