From a81fa58d6c54d8dc1c03cdc142cce4f5b748ef44 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 26 May 2021 12:07:01 +0200 Subject: [PATCH] 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 --- source/_integrations/sensor.mqtt.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_integrations/sensor.mqtt.markdown b/source/_integrations/sensor.mqtt.markdown index 22a87f2273d..82055159f79 100644 --- a/source/_integrations/sensor.mqtt.markdown +++ b/source/_integrations/sensor.mqtt.markdown @@ -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