mirror of
https://github.com/nikdoof/homeassistant-prometheus-query.git
synced 2025-12-13 01:32:22 +00:00
readme
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user