Classes | |
| class | DuplicatedTopicIssueData |
Functions | |
| None | async_start (HomeAssistant hass, str discovery_topic, ConfigEntry config_entry, TasmotaMQTTClient tasmota_mqtt, SetupDeviceCallback setup_device) |
| None | async_stop (HomeAssistant hass) |
| None | clear_discovery_hash (HomeAssistant hass, DiscoveryHashType discovery_hash) |
| None | set_discovery_hash (HomeAssistant hass, DiscoveryHashType discovery_hash) |
| bool | warn_if_topic_duplicated (HomeAssistant hass, str command_topic, str|None own_mac, TasmotaDeviceConfig own_device_config) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| string | ALREADY_DISCOVERED = "tasmota_discovered_components" |
| string | DISCOVERY_DATA = "tasmota_discovery_data" |
| string | MQTT_TOPIC_URL = "https://tasmota.github.io/docs/Home-Assistant/#tasmota-integration" |
| SetupDeviceCallback | |
| string | TASMOTA_DISCOVERY_ENTITY_NEW = "tasmota_discovery_entity_new_{}" |
| string | TASMOTA_DISCOVERY_ENTITY_UPDATED = "tasmota_discovery_entity_updated_{}_{}_{}_{}" |
| string | TASMOTA_DISCOVERY_INSTANCE = "tasmota_discovery_instance" |
Support for Tasmota device discovery.
| None homeassistant.components.tasmota.discovery.async_start | ( | HomeAssistant | hass, |
| str | discovery_topic, | ||
| ConfigEntry | config_entry, | ||
| TasmotaMQTTClient | tasmota_mqtt, | ||
| SetupDeviceCallback | setup_device | ||
| ) |
Start Tasmota device discovery.
Definition at line 126 of file discovery.py.
| None homeassistant.components.tasmota.discovery.async_stop | ( | HomeAssistant | hass | ) |
Stop Tasmota device discovery.
Definition at line 341 of file discovery.py.
| None homeassistant.components.tasmota.discovery.clear_discovery_hash | ( | HomeAssistant | hass, |
| DiscoveryHashType | discovery_hash | ||
| ) |
Clear entry in ALREADY_DISCOVERED list.
Definition at line 51 of file discovery.py.
| None homeassistant.components.tasmota.discovery.set_discovery_hash | ( | HomeAssistant | hass, |
| DiscoveryHashType | discovery_hash | ||
| ) |
Set entry in ALREADY_DISCOVERED list.
Definition at line 61 of file discovery.py.
| bool homeassistant.components.tasmota.discovery.warn_if_topic_duplicated | ( | HomeAssistant | hass, |
| str | command_topic, | ||
| str | None | own_mac, | ||
| TasmotaDeviceConfig | own_device_config | ||
| ) |
Log and create repairs issue if several devices share the same topic.
Definition at line 66 of file discovery.py.
|
private |
Definition at line 38 of file discovery.py.
| string homeassistant.components.tasmota.discovery.ALREADY_DISCOVERED = "tasmota_discovered_components" |
Definition at line 40 of file discovery.py.
| string homeassistant.components.tasmota.discovery.DISCOVERY_DATA = "tasmota_discovery_data" |
Definition at line 41 of file discovery.py.
| string homeassistant.components.tasmota.discovery.MQTT_TOPIC_URL = "https://tasmota.github.io/docs/Home-Assistant/#tasmota-integration" |
Definition at line 46 of file discovery.py.
| homeassistant.components.tasmota.discovery.SetupDeviceCallback |
Definition at line 48 of file discovery.py.
| string homeassistant.components.tasmota.discovery.TASMOTA_DISCOVERY_ENTITY_NEW = "tasmota_discovery_entity_new_{}" |
Definition at line 42 of file discovery.py.
| string homeassistant.components.tasmota.discovery.TASMOTA_DISCOVERY_ENTITY_UPDATED = "tasmota_discovery_entity_updated_{}_{}_{}_{}" |
Definition at line 43 of file discovery.py.
| string homeassistant.components.tasmota.discovery.TASMOTA_DISCOVERY_INSTANCE = "tasmota_discovery_instance" |
Definition at line 44 of file discovery.py.