Add additional example

This commit is contained in:
Fabian Affolter 2017-03-26 10:40:46 +02:00
parent ac316f9907
commit 64c8c0e3d3
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -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']
```