Update sensor_types.py: Add system poe out

Add POE total power consumption - at least on CRS328-24P
This commit is contained in:
Brendan Le Foll 2024-10-04 16:03:33 +02:00 committed by GitHub
parent de1ca6a6f6
commit 6de1a940ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -235,6 +235,23 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = (
data_uid="",
data_reference="",
),
MikrotikSensorEntityDescription(
key="system_poe_out_consumption",
name="PoE out power consumption",
icon="mdi:flash",
native_unit_of_measurement=UnitOfPower.WATT,
suggested_unit_of_measurement=UnitOfPower.WATT,
suggested_display_precision=1,
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
entity_category=EntityCategory.DIAGNOSTIC,
ha_group="System",
data_path="health",
data_attribute="poe-out-consumption",
data_name="",
data_uid="",
data_reference="",
),
MikrotikSensorEntityDescription(
key="system_fan1-speed",
name="Fan1 speed",