Skip to content

Commit

Permalink
Update sensor_types.py: Add system poe out
Browse files Browse the repository at this point in the history
Add POE total power consumption - at least on CRS328-24P
  • Loading branch information
arfoll authored Oct 4, 2024
1 parent de1ca6a commit 6de1a94
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions custom_components/mikrotik_router/sensor_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,23 @@ class MikrotikSensorEntityDescription(SensorEntityDescription):
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",
Expand Down

0 comments on commit 6de1a94

Please sign in to comment.