mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +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
|
||||
{
|
||||
"name":"My Super Device",
|
||||
"object_id":"device1",
|
||||
"object_id":"my_super_device",
|
||||
"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