mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-23 12:04:31 +02:00
Update sensor_types.py: Add system poe out
Add POE total power consumption - at least on CRS328-24P
This commit is contained in:
parent
de1ca6a6f6
commit
6de1a940ed
1 changed files with 17 additions and 0 deletions
|
@ -235,6 +235,23 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = (
|
||||||
data_uid="",
|
data_uid="",
|
||||||
data_reference="",
|
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(
|
MikrotikSensorEntityDescription(
|
||||||
key="system_fan1-speed",
|
key="system_fan1-speed",
|
||||||
name="Fan1 speed",
|
name="Fan1 speed",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue