Adding documentation of expire_after for mqtt sensor to expire outdated values (#2297)

This commit is contained in:
micw 2017-03-23 22:55:44 +01:00 committed by Adam Mills
parent 56efff3957
commit d6fac22c85

View File

@ -31,6 +31,7 @@ Configuration variables:
- **name** (*Optional*): The name of the sensor. Default is 'MQTT Sensor'.
- **qos** (*Optional*): The maximum QoS level of the state topic. Default is 0.
- **unit_of_measurement** (*Optional*): Defines the units of measurement of the sensor, if any.
- **expire_after** (*Optional*): Defines the number of seconds after the value expires if it's not updated. Default is 0 (=never expire).
- **value_template** (*Optional*): Defines a [template](/topics/templating/) to extract a value from the payload.
## {% linkable_title Examples %}