This commit is contained in:
FriendlyNGeeks
2021-11-11 10:50:53 -05:00
committed by GitHub
parent a4f8a5d259
commit e6ee2c4b4a

View File

@@ -13,8 +13,8 @@ sensor:
prometheus_url: http://localhost:9090 prometheus_url: http://localhost:9090
prometheus_query: temperature{location="Pisa",province="PI",region="Tuscany"} prometheus_query: temperature{location="Pisa",province="PI",region="Tuscany"}
unit_of_measurement: "°C" unit_of_measurement: "°C"
state_class: total_increasing state_class: measurement
device_class: measurement device_class: temperature
``` ```
### Configuration Variables ### Configuration Variables
@@ -40,4 +40,8 @@ sensor:
(string)(Optional) Defines the type of sensor. `measurement` for metrics that are gauges, (string)(Optional) Defines the type of sensor. `measurement` for metrics that are gauges,
`total_increasing` for metrics that are counters. `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. It's a custom component so it must be downloaded under /custom_components folder.