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