mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-31 21:18:03 +00:00
Explain how mqtt sensors are influenced with expire_after
option when a retained payload was used (#40043)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
01e899a179
commit
14944efb0d
@ -145,7 +145,7 @@ entity_picture:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
expire_after:
|
expire_after:
|
||||||
description: If set, it defines the number of seconds after the sensor's state expires, if it's not updated. After expiry, the sensor's state becomes `unavailable`. Default the sensors state never expires.
|
description: If set, it defines the number of seconds after the sensor's state expires if it's not updated. After expiry, the sensor's state becomes `unavailable`. By default, the sensor's state never expires. Note that when a sensor's value was sent retained to the MQTT broker, the last value sent will be replayed by the MQTT broker when Home Assistant restarts or is reloaded. As this could cause the sensor to become available with an expired state, it is not recommended to retain the sensor's state payload at the MQTT broker. Home Assistant will store and restore the sensor's state for you and calculate the remaining time to retain the sensor's state before it becomes unavailable.
|
||||||
required: false
|
required: false
|
||||||
type: integer
|
type: integer
|
||||||
force_update:
|
force_update:
|
||||||
|
@ -139,7 +139,7 @@ entity_picture:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
expire_after:
|
expire_after:
|
||||||
description: If set, it defines the number of seconds after the sensor's state expires, if it's not updated. After expiry, the sensor's state becomes `unavailable`. Default the sensors state never expires.
|
description: If set, it defines the number of seconds after the sensor's state expires if it's not updated. After expiry, the sensor's state becomes `unavailable`. Default the sensors state never expires. By default, the sensor's state never expires. Note that when a sensor's value was sent retained to the MQTT broker, the last value sent will be replayed by the MQTT broker when Home Assistant restarts or is reloaded. As this could cause the sensor to become available with an expired state, it is not recommended to retain the sensor's state payload at the MQTT broker. Home Assistant will store and restore the sensor's state for you and calculate the remaining time to retain the sensor's state before it becomes unavailable.
|
||||||
required: false
|
required: false
|
||||||
type: integer
|
type: integer
|
||||||
default: 0
|
default: 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user