Add alarm count sensor for Kostal Inverters (#130324)

This commit is contained in:
Nerdix 2024-11-11 09:07:47 +01:00 committed by GitHub
parent c3492bc0ed
commit 0dd208a4b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",