The Home Assistant discovery protocol is a lightweight feature that introduces support for Home Assistant servers to be discoverable. This will allow Home Assistant instances running with MicroPython to get started without any required configuration (Example from the MicroPython Home Assistant documentation):

from homeassistant.discovery import get_instance()

hass = get_instance()

for state in hass.states():

To enable discovery in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
  expose_password: true

Configuration Variables


(boolean)(Optional)It is up to the user to expose the password in the discovery response. If password not exposed, uHA instances will have to provide it (get_instance('my password')).

Default value: false