Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.tasmota.discovery Namespace Reference

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"
 

Detailed Description

Support for Tasmota device discovery.

Function Documentation

◆ async_start()

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.

◆ async_stop()

None homeassistant.components.tasmota.discovery.async_stop ( HomeAssistant  hass)
Stop Tasmota device discovery.

Definition at line 341 of file discovery.py.

◆ clear_discovery_hash()

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.

◆ set_discovery_hash()

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.

◆ warn_if_topic_duplicated()

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.

Variable Documentation

◆ _LOGGER

homeassistant.components.tasmota.discovery._LOGGER = logging.getLogger(__name__)
private

Definition at line 38 of file discovery.py.

◆ ALREADY_DISCOVERED

string homeassistant.components.tasmota.discovery.ALREADY_DISCOVERED = "tasmota_discovered_components"

Definition at line 40 of file discovery.py.

◆ DISCOVERY_DATA

string homeassistant.components.tasmota.discovery.DISCOVERY_DATA = "tasmota_discovery_data"

Definition at line 41 of file discovery.py.

◆ MQTT_TOPIC_URL

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.

◆ SetupDeviceCallback

homeassistant.components.tasmota.discovery.SetupDeviceCallback

Definition at line 48 of file discovery.py.

◆ TASMOTA_DISCOVERY_ENTITY_NEW

string homeassistant.components.tasmota.discovery.TASMOTA_DISCOVERY_ENTITY_NEW = "tasmota_discovery_entity_new_{}"

Definition at line 42 of file discovery.py.

◆ TASMOTA_DISCOVERY_ENTITY_UPDATED

string homeassistant.components.tasmota.discovery.TASMOTA_DISCOVERY_ENTITY_UPDATED = "tasmota_discovery_entity_updated_{}_{}_{}_{}"

Definition at line 43 of file discovery.py.

◆ TASMOTA_DISCOVERY_INSTANCE

string homeassistant.components.tasmota.discovery.TASMOTA_DISCOVERY_INSTANCE = "tasmota_discovery_instance"

Definition at line 44 of file discovery.py.