From 5fd472537442f02cf1a45d87ac77cf49ffac9ffe Mon Sep 17 00:00:00 2001 From: Ryan Parrish Date: Thu, 19 Jan 2017 01:50:55 -0500 Subject: [PATCH] Add missing '1' to clarify the example. (#1815) --- source/_components/sensor.mqtt_room.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/sensor.mqtt_room.markdown b/source/_components/sensor.mqtt_room.markdown index 5d7da7a5d68..4e6446cc5d3 100644 --- a/source/_components/sensor.mqtt_room.markdown +++ b/source/_components/sensor.mqtt_room.markdown @@ -34,7 +34,7 @@ Configuration variables: - **device_id** (*Required*): The device id to track for this sensor. - **name** (*Optional*): The name of the sensor. - **state_topic** (*Optional*): The topic that contains all subtopics for the rooms. -- **timeout** (*Optional*): The time in seconds after which a room presence state is considered old. An example: device1 is reported at scanner1 with a distance of 1. No further updates are sent from scanner1. After 5 seconds scanner2 reports device with a distance of 2. The old location info is discarded in favor of the new scanner2 information as the timeout has passed. +- **timeout** (*Optional*): The time in seconds after which a room presence state is considered old. An example: device1 is reported at scanner1 with a distance of 1. No further updates are sent from scanner1. After 5 seconds scanner2 reports device1 with a distance of 2. The old location info is discarded in favor of the new scanner2 information as the timeout has passed. - **away_timeout** (*Optional*): The time in seconds after which the state should be set to `away` if there were no updates. `0` disables the check and is the default. Example JSON that should be published to the room topics: