Fix MQTT discovery object_id docs (#4761)

* Fix MQTT discovery object_id docs

* Update format
This commit is contained in:
Otto Winter 2018-03-06 21:18:27 +01:00 committed by Fabian Affolter
parent ca946f274d
commit 4ff8107c73

View File

@ -44,7 +44,7 @@ The discovery topic need to follow a specific format:
- `<component>`: One of the supported components, eg. `binary_sensor`.
- `<node_id>`: (*Optional*) id of the node providing the topic.
- `<object_id>`: The ID of the device. This will become the `entity_id` in Home Assistant.
- `<object_id>`: "The ID of the device. This is only to allow for separate topics for each device and is not used for the `entity_id`."
- `<>`: The topic `config` or `state` which defines the current action.
The payload will be checked like an entry in your `configuration.yaml` file if a new device is added. This means that missing variables will be filled with the platform's default values. All configuration variables which are *required* must be present in the initial payload send to `/config`.