mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 12:56:54 +00:00
Add unique_id for MQTT room (#25025)
This commit is contained in:
parent
51d57aca0b
commit
b98ac2fca5
@ -26,6 +26,11 @@ sensor:
|
|||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
|
away_timeout:
|
||||||
|
description: The time in seconds after which the state should be set to `not_home` if there were no updates. `0` disables the check.
|
||||||
|
required: false
|
||||||
|
default: 0
|
||||||
|
type: integer
|
||||||
device_id:
|
device_id:
|
||||||
description: The device id to track for this sensor.
|
description: The device id to track for this sensor.
|
||||||
required: true
|
required: true
|
||||||
@ -44,11 +49,10 @@ timeout:
|
|||||||
required: false
|
required: false
|
||||||
default: 5
|
default: 5
|
||||||
type: integer
|
type: integer
|
||||||
away_timeout:
|
unique_id:
|
||||||
description: The time in seconds after which the state should be set to `not_home` if there were no updates. `0` disables the check.
|
description: "An ID that uniquely identifies this room sensor. If two sensors have the same unique ID, Home Assistant will raise an exception."
|
||||||
required: false
|
required: false
|
||||||
default: 0
|
type: string
|
||||||
type: integer
|
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user