From 72e8e18b66b9f1b34f5cfcabdfe3fc55901e5431 Mon Sep 17 00:00:00 2001 From: Brent Saltzman Date: Sun, 5 Sep 2021 15:06:07 -0500 Subject: [PATCH] Update Home Assistant Sensor Example These additional key/values add support for the new Home Assistant Energy Dashboard. Adding these will ensure that the MQTT Sensor shows up as an Energy Usage source. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1e08369..9e1a2b4 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,10 @@ sensor: state_topic: "readings/12345678/meter_reading" name: "Power Meter" unit_of_measurement: kWh + last_reset_topic: "readings/57571780/meter_reading" + last_reset_value_template: 1970-01-01T00:00:00+00:00 + state_class: total_increasing + device_class: energy - platform: mqtt state_topic: "readings/12345678/meter_rate"