home-assistant.io/source/_components/discoverable.markdown
Alok Saboo 1aca7b08cf Misc fixes: e.g. -> e.g., and proper case for Home Assistant (#4942)
* e.g. to e.g., and proper case for Home Assistant

* Instructions how to -> Instructions on how to
2018-03-17 20:20:37 +01:00

1.2 KiB

layout, title, description, date, sidebar, comments, sharing, footer
layout title description date sidebar comments sharing footer
page Discoverable Instructions on how to setup the discoverable component with Home Assistant. 2016-03-01 07:00 true false true true

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():
    print(state)

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

# Example configuration.yml entry
discoverable:
  expose_password: yes

Configuration variables:

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