Namespaces | |
| models | |
| usage | |
Classes | |
| class | ZeroconfDiscovery |
| class | ZeroconfServiceInfo |
Variables | |
| tuple | _HOMEKIT_MODEL_SPLITS = (None, " ", "-") |
| _LOGGER = logging.getLogger(__name__) | |
| string | CONF_DEFAULT_INTERFACE = "default_interface" |
| string | CONF_IPV6 = "ipv6" |
| CONFIG_SCHEMA | |
| bool | DEFAULT_DEFAULT_INTERFACE = True |
| bool | DEFAULT_IPV6 = True |
| string | DOMAIN = "zeroconf" |
| Final | |
| string | HOMEKIT_MODEL_LOWER = "md" |
| string | HOMEKIT_MODEL_UPPER = "MD" |
| string | HOMEKIT_PAIRED_STATUS_FLAG = "sf" |
| list | HOMEKIT_TYPES |
| int | MAX_NAME_LEN = 63 |
| int | MAX_PROPERTY_VALUE_LEN = 230 |
| string | ZEROCONF_TYPE = "_home-assistant._tcp.local." |
Support for exposing Home Assistant via Zeroconf.
|
private |
Definition at line 157 of file __init__.py.
|
private |
Definition at line 284 of file __init__.py.
|
private |
Return true for platforms not supporting IP_ADD_MEMBERSHIP on an AF_INET6 socket. Zeroconf only supports a single listen socket at this time.
Definition at line 181 of file __init__.py.
|
private |
Build lookups for homekit models.
Definition at line 257 of file __init__.py.
|
private |
Compile a fnmatch pattern.
Definition at line 659 of file __init__.py.
|
private |
Filter disallowed characters from a string. . is a reversed character for zeroconf.
Definition at line 276 of file __init__.py.
|
private |
Check a matcher to ensure all values in props.
Definition at line 329 of file __init__.py.
|
private |
Memorized version of fnmatch that has a larger lru_cache. The default version of fnmatch only has a lru_cache of 256 entries. With many devices we quickly reach that limit and end up compiling the same pattern over and over again. Zeroconf has its own memorized fnmatch with its own lru_cache since the data is going to be relatively the same since the devices will not change frequently
Definition at line 665 of file __init__.py.
|
private |
Suppress any properties that will cause zeroconf to fail to startup.
Definition at line 622 of file __init__.py.
|
private |
Truncate or return the location name usable for zeroconf.
Definition at line 642 of file __init__.py.
| HaAsyncZeroconf homeassistant.components.zeroconf.async_get_async_instance | ( | HomeAssistant | hass | ) |
Zeroconf instance to be shared with other integrations that use it.
Definition at line 152 of file __init__.py.
| HomeKitDiscoveredIntegration | None homeassistant.components.zeroconf.async_get_homekit_discovery | ( | dict[str, HomeKitDiscoveredIntegration] | homekit_model_lookups, |
| dict[re.Pattern, HomeKitDiscoveredIntegration] | homekit_model_matchers, | ||
| dict[str, Any] | props | ||
| ) |
Handle a HomeKit discovery. Return the domain to forward the discovery data to
Definition at line 562 of file __init__.py.
| HaZeroconf homeassistant.components.zeroconf.async_get_instance | ( | HomeAssistant | hass | ) |
Zeroconf instance to be shared with other integrations that use it.
Definition at line 146 of file __init__.py.
| bool homeassistant.components.zeroconf.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Set up Zeroconf and make Home Assistant discoverable.
Definition at line 191 of file __init__.py.
| ZeroconfServiceInfo | None homeassistant.components.zeroconf.info_from_service | ( | AsyncServiceInfo | service | ) |
Return prepared info from mDNS entries.
Definition at line 588 of file __init__.py.
| bool homeassistant.components.zeroconf.is_homekit_paired | ( | dict[str, Any] | props | ) |
Check properties to see if a device is homekit paired.
Definition at line 338 of file __init__.py.
|
private |
Definition at line 62 of file __init__.py.
|
private |
Definition at line 52 of file __init__.py.
| string homeassistant.components.zeroconf.CONF_DEFAULT_INTERFACE = "default_interface" |
Definition at line 65 of file __init__.py.
| string homeassistant.components.zeroconf.CONF_IPV6 = "ipv6" |
Definition at line 66 of file __init__.py.
| homeassistant.components.zeroconf.CONFIG_SCHEMA |
Definition at line 88 of file __init__.py.
| bool homeassistant.components.zeroconf.DEFAULT_DEFAULT_INTERFACE = True |
Definition at line 67 of file __init__.py.
| bool homeassistant.components.zeroconf.DEFAULT_IPV6 = True |
Definition at line 68 of file __init__.py.
| string homeassistant.components.zeroconf.DOMAIN = "zeroconf" |
Definition at line 54 of file __init__.py.
| homeassistant.components.zeroconf.Final |
Definition at line 81 of file __init__.py.
| string homeassistant.components.zeroconf.HOMEKIT_MODEL_LOWER = "md" |
Definition at line 71 of file __init__.py.
| string homeassistant.components.zeroconf.HOMEKIT_MODEL_UPPER = "MD" |
Definition at line 72 of file __init__.py.
| string homeassistant.components.zeroconf.HOMEKIT_PAIRED_STATUS_FLAG = "sf" |
Definition at line 70 of file __init__.py.
| list homeassistant.components.zeroconf.HOMEKIT_TYPES |
Definition at line 57 of file __init__.py.
| int homeassistant.components.zeroconf.MAX_NAME_LEN = 63 |
Definition at line 79 of file __init__.py.
| int homeassistant.components.zeroconf.MAX_PROPERTY_VALUE_LEN = 230 |
Definition at line 76 of file __init__.py.
| string homeassistant.components.zeroconf.ZEROCONF_TYPE = "_home-assistant._tcp.local." |
Definition at line 56 of file __init__.py.