From b98ac2fca54d1cbdea79c544580b579e3bc1d809 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Tue, 22 Nov 2022 15:57:00 +0100 Subject: [PATCH] Add unique_id for MQTT room (#25025) --- source/_integrations/mqtt_room.markdown | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/source/_integrations/mqtt_room.markdown b/source/_integrations/mqtt_room.markdown index 4726bacf424..7c215a48fc8 100644 --- a/source/_integrations/mqtt_room.markdown +++ b/source/_integrations/mqtt_room.markdown @@ -26,6 +26,11 @@ sensor: ``` {% 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: description: The device id to track for this sensor. required: true @@ -44,11 +49,10 @@ timeout: required: false default: 5 type: integer -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. +unique_id: + 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 - default: 0 - type: integer + type: string {% endconfiguration %} ## Usage