mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 21:37:07 +00:00
Add alarm count sensor for Kostal Inverters (#130324)
This commit is contained in:
parent
c3492bc0ed
commit
0dd208a4b9
@ -17,6 +17,7 @@ from homeassistant.components.sensor import (
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import (
|
||||
PERCENTAGE,
|
||||
EntityCategory,
|
||||
UnitOfElectricCurrent,
|
||||
UnitOfElectricPotential,
|
||||
UnitOfEnergy,
|
||||
@ -747,6 +748,15 @@ SENSOR_PROCESS_DATA = [
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
formatter="format_energy",
|
||||
),
|
||||
PlenticoreSensorEntityDescription(
|
||||
module_id="scb:event",
|
||||
key="Event:ActiveErrorCnt",
|
||||
name="Active Alarms",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
entity_registry_enabled_default=False,
|
||||
icon="mdi:alert",
|
||||
formatter="format_round",
|
||||
),
|
||||
PlenticoreSensorEntityDescription(
|
||||
module_id="_virt_",
|
||||
key="pv_P",
|
||||
|
Loading…
x
Reference in New Issue
Block a user