mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 17:57:14 +00:00
Add documentation for expire_after configuration (#10203)
* Add documentation for expire_after configuration * Update binary_sensor.mqtt.markdown
This commit is contained in:
parent
df6584a1a4
commit
ae529bec9c
@ -84,6 +84,10 @@ device_class:
|
||||
description: Sets the [class of the device](/components/binary_sensor/), changing the device state and icon that is displayed on the frontend.
|
||||
required: false
|
||||
type: string
|
||||
expire_after:
|
||||
description: "Defines the number of seconds after the value expires if it's not updated. After expiry, the value is cleared, and the availability is set to false"
|
||||
required: false
|
||||
type: integer
|
||||
value_template:
|
||||
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the payload. Available variables: `entity_id`. Remove this option when 'payload_on' and 'payload_off' are sufficient to match your payloads."
|
||||
required: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user