mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 10:17:23 +00:00
Make MQTT discovery entity_id override example accurate (#23587)
This commit is contained in:
parent
d76d754bcf
commit
bd0fad4edc
@ -440,10 +440,10 @@ The entity id is automatically generated from the entity's name. All MQTT entity
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"name":"My Super Device",
|
"name":"My Super Device",
|
||||||
"object_id":"device1",
|
"object_id":"my_super_device",
|
||||||
"state_topic": "homeassistant/sensor/device1/state"
|
"state_topic": "homeassistant/sensor/device1/state"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
In the example above, the entity_id will be `sensor.device1` instead of `sensor.my_super_device`.
|
In the example above, the entity_id will be `sensor.my_super_device` instead of `sensor.device1`.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user