Merge pull request #377 from arfoll/patch-2

Update sensor_types.py: Add system poe out
This commit is contained in:
Tomaae 2025-01-08 01:00:51 +01:00 committed by GitHub
commit 339b01dda3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,6 +252,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",