Class DeviceTrackerConfig
- Namespace
- HaMqttDiscoverable.Entities
- Assembly
- HaMqttDiscoverable.dll
Configuration for a DeviceTracker entity: a read-only "home"/"away"/zone presence report.
public sealed class DeviceTrackerConfig : EntityConfig
- Inheritance
-
DeviceTrackerConfig
- Inherited Members
Properties
Component
The MQTT component Home Assistant should treat this entity as, e.g. sensor or
switch. Used to build the discovery topic; not part of the discovery payload itself.
public override string Component { get; }
Property Value
PayloadHome
The payload meaning "home". Defaults to "home".
[JsonPropertyName("payload_home")]
public string PayloadHome { get; set; }
Property Value
PayloadNotHome
The payload meaning "away". Defaults to "not_home".
[JsonPropertyName("payload_not_home")]
public string PayloadNotHome { get; set; }
Property Value
PayloadReset
The payload meaning "unknown location" (clears the tracker's state). Defaults to "None".
[JsonPropertyName("payload_reset")]
public string PayloadReset { get; set; }
Property Value
SourceType
How this tracker determines location: "gps", "router", "bluetooth", or "bluetooth_le". Defaults to "gps".
[JsonPropertyName("source_type")]
public string SourceType { get; set; }