From e6ee2c4b4a9f5b6c868146fdbf5a99061127a9d7 Mon Sep 17 00:00:00 2001 From: FriendlyNGeeks <32318784+FriendlyNGeeks@users.noreply.github.com> Date: Thu, 11 Nov 2021 10:50:53 -0500 Subject: [PATCH] readme --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a2b263..10a58a2 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ sensor: prometheus_url: http://localhost:9090 prometheus_query: temperature{location="Pisa",province="PI",region="Tuscany"} unit_of_measurement: "°C" - state_class: total_increasing - device_class: measurement + state_class: measurement + device_class: temperature ``` ### Configuration Variables @@ -40,4 +40,8 @@ sensor: (string)(Optional) Defines the type of sensor. `measurement` for metrics that are gauges, `total_increasing` for metrics that are counters. +- device_class + + (string)(Optional) Defines the sensor icon for dashboard. `temperature | power | battery` for metrics that are gauges + It's a custom component so it must be downloaded under /custom_components folder.