Classes | |
| class | MqttDeviceTracker |
Functions | |
| None | async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities) |
| ConfigType | valid_config (ConfigType config) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| string | CONF_PAYLOAD_HOME = "payload_home" |
| string | CONF_PAYLOAD_NOT_HOME = "payload_not_home" |
| string | CONF_SOURCE_TYPE = "source_type" |
| string | DEFAULT_PAYLOAD_RESET = "None" |
| DEFAULT_SOURCE_TYPE = SourceType.GPS | |
| DISCOVERY_SCHEMA | |
| int | PARALLEL_UPDATES = 0 |
| PLATFORM_SCHEMA_MODERN = vol.All(PLATFORM_SCHEMA_MODERN_BASE, valid_config) | |
| PLATFORM_SCHEMA_MODERN_BASE | |
Support for tracking MQTT enabled devices identified.
| None homeassistant.components.mqtt.device_tracker.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | config_entry, | ||
| AddEntitiesCallback | async_add_entities | ||
| ) |
Set up MQTT event through YAML and through MQTT discovery.
Definition at line 79 of file device_tracker.py.
| ConfigType homeassistant.components.mqtt.device_tracker.valid_config | ( | ConfigType | config | ) |
Check if there is a state topic or json_attributes_topic.
Definition at line 49 of file device_tracker.py.
|
private |
Definition at line 37 of file device_tracker.py.
| string homeassistant.components.mqtt.device_tracker.CONF_PAYLOAD_HOME = "payload_home" |
Definition at line 41 of file device_tracker.py.
| string homeassistant.components.mqtt.device_tracker.CONF_PAYLOAD_NOT_HOME = "payload_not_home" |
Definition at line 42 of file device_tracker.py.
| string homeassistant.components.mqtt.device_tracker.CONF_SOURCE_TYPE = "source_type" |
Definition at line 43 of file device_tracker.py.
| string homeassistant.components.mqtt.device_tracker.DEFAULT_PAYLOAD_RESET = "None" |
Definition at line 45 of file device_tracker.py.
| homeassistant.components.mqtt.device_tracker.DEFAULT_SOURCE_TYPE = SourceType.GPS |
Definition at line 46 of file device_tracker.py.
| homeassistant.components.mqtt.device_tracker.DISCOVERY_SCHEMA |
Definition at line 74 of file device_tracker.py.
| int homeassistant.components.mqtt.device_tracker.PARALLEL_UPDATES = 0 |
Definition at line 39 of file device_tracker.py.
| homeassistant.components.mqtt.device_tracker.PLATFORM_SCHEMA_MODERN = vol.All(PLATFORM_SCHEMA_MODERN_BASE, valid_config) |
Definition at line 71 of file device_tracker.py.
| homeassistant.components.mqtt.device_tracker.PLATFORM_SCHEMA_MODERN_BASE |
Definition at line 58 of file device_tracker.py.