Add target high/low temperatures to prometheus integration (#50071)
* add target high/low temperatures to prometheus integration
* use labels
* Revert "use labels"
This reverts commit 09c56d6359
.
* fix naming
* tests
* cleanup
* use three separate metrics
* fix descriptions
This commit is contained in:
parent
c682d5d5e4
commit
515a47212e
2 changed files with 49 additions and 14 deletions
|
@ -137,6 +137,24 @@ async def test_view_empty_namespace(hass, hass_client):
|
|||
'friendly_name="HeatPump"} 25.0' in body
|
||||
)
|
||||
|
||||
assert (
|
||||
'climate_target_temperature_celsius{domain="climate",'
|
||||
'entity="climate.heatpump",'
|
||||
'friendly_name="HeatPump"} 20.0' in body
|
||||
)
|
||||
|
||||
assert (
|
||||
'climate_target_temperature_low_celsius{domain="climate",'
|
||||
'entity="climate.ecobee",'
|
||||
'friendly_name="Ecobee"} 21.0' in body
|
||||
)
|
||||
|
||||
assert (
|
||||
'climate_target_temperature_high_celsius{domain="climate",'
|
||||
'entity="climate.ecobee",'
|
||||
'friendly_name="Ecobee"} 24.0' in body
|
||||
)
|
||||
|
||||
assert (
|
||||
'humidifier_target_humidity_percent{domain="humidifier",'
|
||||
'entity="humidifier.humidifier",'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue