Add frequency sensors to Nibe (#89072)
* added frequency (for compressors etc) --------- Co-authored-by: Joakim Plate <elupus@ecce.se>pull/97546/head^2
parent
a8a3b6778e
commit
f0640fc057
|
@ -16,6 +16,7 @@ from homeassistant.const import (
|
|||
UnitOfElectricCurrent,
|
||||
UnitOfElectricPotential,
|
||||
UnitOfEnergy,
|
||||
UnitOfFrequency,
|
||||
UnitOfPower,
|
||||
UnitOfTemperature,
|
||||
UnitOfTime,
|
||||
|
@ -110,6 +111,13 @@ UNIT_DESCRIPTIONS = {
|
|||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||
),
|
||||
"Hz": SensorEntityDescription(
|
||||
key="Hz",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
device_class=SensorDeviceClass.FREQUENCY,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
native_unit_of_measurement=UnitOfFrequency.HERTZ,
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue