From 64c8c0e3d3c775484b3031d1d496d9100d8236aa Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 26 Mar 2017 10:40:46 +0200 Subject: [PATCH] Add additional example --- source/_components/zeroconf.markdown | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/_components/zeroconf.markdown b/source/_components/zeroconf.markdown index bb2dfd320f7..d4b89f527ac 100644 --- a/source/_components/zeroconf.markdown +++ b/source/_components/zeroconf.markdown @@ -21,7 +21,7 @@ To integrate this into Home Assistant, add the following section to your `config zeroconf: ``` -The registration will include metadata about the Home Assistant instance, including a base URL that can be used to access Home Assistant, the currently running Home Assistant version, and whether an API password is needed to access the instance. +The registration will include metadata about the Home Assistant instance, including a base URL that can be used to access Home Assistant, the currently running Home Assistant version, and whether an API password is needed to access the instance. The examples below show two ways to retrieve the details for testing. ```bash $ avahi-browse -alr @@ -32,3 +32,13 @@ $ avahi-browse -alr port = [8123] txt = ["base_url=http://192.168.0.70:8123" "requires_api_password=true" "version=0.41.0"] ``` + +```bash +$ avahi-discover +Browsing domain 'local' on -1.-1 ... +Browsing for services of type '_home-assistant._tcp' in domain 'local' on 4.0 ... +Found service 'Home' of type '_home-assistant._tcp' in domain 'local' on 4.0. +Service data for service 'Home' of type '_home-assistant._tcp' in domain 'local' on 4.0: + Host Home._home-assistant._tcp.local (192.168.0.70), port 8123, TXT data: +['requires_api_password=true', 'base_url=http://192.168.0.70:8123', 'version=0.41.0'] +```