From 536b1564b9ccb984fcf92aa7542f43928f3f7d0c Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 13 Jan 2023 23:22:41 +0100 Subject: [PATCH] Also set the state class in HA sensors example --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f9c7e95..d7753b3 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,7 @@ sensors: value_template: '{{ value_json.current_w }}' unit_of_measurement: W device_class: power + state_class: measurement - platform: rest name: "Photovoltaic Invertor Total Energy Production" @@ -141,6 +142,7 @@ sensors: value_template: '{{ value_json.total_kwh }}' unit_of_measurement: kWh device_class: energy + state_class: total_increasing ``` This assumes your Solar Grabber is running at .