mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Document MQTT sensor last_reset (#17979)
* Document MQTT sensor last_reset * Update source/_integrations/sensor.mqtt.markdown * Update source/_integrations/sensor.mqtt.markdown Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
1484ce7793
commit
a81fa58d6c
@ -114,6 +114,14 @@ json_attributes_topic:
|
||||
description: The MQTT topic subscribed to receive a JSON dictionary payload and then set as sensor attributes. Implies `force_update` of the current sensor state when a message is received on this topic.
|
||||
required: false
|
||||
type: string
|
||||
last_reset_topic:
|
||||
description: "The MQTT topic subscribed to receive timestamps for when an accumulating sensor such as an energy meter was reset. If the sensor never resets, set it to UNIX epoch 0: `1970-01-01T00:00:00+00:00`."
|
||||
required: false
|
||||
type: string
|
||||
last_reset_value_template:
|
||||
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the last_reset. Available variables: `entity_id`. The `entity_id` can be used to reference the entity's attributes."
|
||||
required: false
|
||||
type: string
|
||||
name:
|
||||
description: The name of the MQTT sensor.
|
||||
required: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user