mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-16 12:24:30 +02:00
Add sensor phy-temperature
This commit is contained in:
parent
de1ca6a6f6
commit
b3aa0e3d90
2 changed files with 18 additions and 0 deletions
|
@ -1425,6 +1425,7 @@ class MikrotikCoordinator(DataUpdateCoordinator[None]):
|
|||
{"name": "cpu-temperature", "default": 0},
|
||||
{"name": "power-consumption", "default": 0},
|
||||
{"name": "board-temperature1", "default": 0},
|
||||
{"name": "phy-temperature", "default": 0},
|
||||
{"name": "fan1-speed", "default": 0},
|
||||
{"name": "fan2-speed", "default": 0},
|
||||
],
|
||||
|
|
|
@ -218,6 +218,23 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = (
|
|||
data_uid="",
|
||||
data_reference="",
|
||||
),
|
||||
MikrotikSensorEntityDescription(
|
||||
key="system_phy-temperature",
|
||||
name="PHY temperature",
|
||||
icon="mdi:thermometer",
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
suggested_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
suggested_display_precision=0,
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
ha_group="System",
|
||||
data_path="health",
|
||||
data_attribute="phy-temperature",
|
||||
data_name="",
|
||||
data_uid="",
|
||||
data_reference="",
|
||||
),
|
||||
MikrotikSensorEntityDescription(
|
||||
key="system_power-consumption",
|
||||
name="Power consumption",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue