home-assistant.io/source/_components/discovery.markdown
Jorim Tielemans 7060874322 Fix DLNA entry (#6028)
Correct variable is dlna_dmr
2018-08-18 10:28:23 +02:00

5.6 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category
layout title description date sidebar comments sharing footer logo ha_category
page Discovery Instructions on how to setup Home Assistant to discover new devices. 2015-01-24 14:39 true false true true home-assistant.png Other

Home Assistant can discover and automatically configure zeroconf/mDNS and uPnP devices on your network. Currently the discovery component can detect:

It will be able to add Google Chromecasts and Belkin WeMo switches automatically, for Philips Hue it will require some configuration from the user.

To load this component, add the following lines to your configuration.yaml:

# Example configuration.yaml entry
discovery:
  ignore:
    - sonos
    - samsung_tv
  enable:
    - homekit

{% linkable_title Configuration variables: %}

{% configuration discovery %} ignore: description: A list of platforms that never will be automatically configured by discovery. required: false type: list enable: description: A list of platforms not enabled by default that discovery should discover. required: false type: list {% endconfiguration %}

Valid values for ignore are:

  • apple_tv: Apple TV
  • axis: Axis Communications security devices
  • belkin_wemo: Belkin WeMo switches
  • bluesound: Bluesound speakers
  • bose_soundtouch: Bose Soundtouch speakers
  • denonavr: Denon network receivers
  • directv: DirecTV receivers
  • frontier_silicon: Frontier Silicon internet radios
  • google_cast: Google Cast
  • harmony: Logitech Harmony Hub
  • ikea_tradfri: IKEA Trådfri (Tradfri)
  • logitech_mediaserver: Logitech media server (Squeezebox)
  • netgear_router: Netgear routers
  • openhome: Linn / Openhome
  • panasonic_viera: Panasonic Viera
  • philips_hue: Philips Hue
  • plex_mediaserver: Plex media server
  • roku: Roku media player
  • sabnzbd: SABnzbd downloader
  • samsung_printer: Samsung SyncThru Printer
  • samsung_tv: Samsung TVs
  • sonos: Sonos speakers
  • songpal : Songpal
  • tellstick: Telldus Live
  • wink: Wink Hub
  • yamaha: Yamaha media player
  • yeelight: Yeelight Sunflower bulb
  • xiaomi_gw: Xiaomi Aqara gateway

Valid values for enable are:

  • dlna_dmr: DLNA DMR enabled devices
  • homekit: HomeKit accessories

{% linkable_title Troubleshooting %}

{% linkable_title UPnP %}

Home Assistant must be on the same network as the devices for uPnP discovery to work. If running Home Assistant in a Docker container use switch --net=host to put it on the host's network.

{% linkable_title Windows %}

{% linkable_title 64-bit Python %}

There is currently a known issue with running this component on a 64-bit version of Python and Windows.

{% linkable_title Python 3.5 %}

If you are on Windows and you're using Python 3.5, download the Netifaces dependency.

{% linkable_title could not install dependency netdisco %}

If you see Not initializing discovery because could not install dependency netdisco==0.6.1 in the logs, you will need to install the python3-dev or python3-devel package on your system manually (eg. sudo apt-get install python3-dev or sudo dnf -y install python3-devel). On the next restart of Home Assistant, the discovery should work. If you still get an error, check if you have a compiler (gcc) available on your system.

{% linkable_title DSM and Synology %}

For DSM/Synology, install via debian-chroot see this forum post.

{% linkable_title New platforms %}

If you are developing a new platform, please read how to make your platform discoverable for further details.