mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-25 22:11:29 +01:00
Add initial docs for mdns extensions (#2553)
This commit is contained in:
parent
0446eacc14
commit
703aada7da
@ -22,7 +22,33 @@ It is recommended to leave mDNS enabled.
|
||||
|
||||
.. _mdns-configuration_variables:
|
||||
|
||||
|
||||
Services:
|
||||
---------
|
||||
|
||||
Additional mdns services can be added as exposed by the esphome node.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
# Example configuration entry with additional service
|
||||
mdns:
|
||||
services:
|
||||
- service: "_custom_service"
|
||||
protocol: "_tcp"
|
||||
port: 8080
|
||||
txt:
|
||||
txt_key_1: txt_value_1
|
||||
|
||||
.. _mdns-custom_services:
|
||||
|
||||
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **disabled** (*Optional*, boolean): Set to true to disable mDNS usage. Defaults to false.
|
||||
- **services** (*Optional*, list): List of additional services to expose.
|
||||
|
||||
- **service** (*Required*, string): Name of extra service
|
||||
- **protocol** (*Required*, string): Protocol of service (_udp or _tcp)
|
||||
- **port** (*Optional*, int): Port number of extra service
|
||||
- **txt** (*Optional*, mapping): Additional text records to add to service
|
||||
|
Loading…
Reference in New Issue
Block a user