Skip to content

Commit 04f02b8

Browse files
author
zulufoxtrot
committed
add custom entities for temperatures
1 parent 3f44e1d commit 04f02b8

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

custom_components/ha_zyxel/sensor.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,27 @@
121121
"device_class": SensorDeviceClass.SIGNAL_STRENGTH,
122122
"state_class": SensorStateClass.MEASUREMENT
123123
},
124+
"X_ZYXEL_TEMPERATURE_AMBIENT": {
125+
"name": "Ambient Temperature",
126+
"unit": "°C",
127+
"icon": "mdi:thermometer",
128+
"device_class": SensorDeviceClass.TEMPERATURE,
129+
"state_class": SensorStateClass.MEASUREMENT
130+
},
131+
"X_ZYXEL_TEMPERATURE_SDX": {
132+
"name": "SDX Temperature",
133+
"unit": "°C",
134+
"icon": "mdi:thermometer",
135+
"device_class": SensorDeviceClass.TEMPERATURE,
136+
"state_class": SensorStateClass.MEASUREMENT
137+
},
138+
"X_ZYXEL_TEMPERATURE_CPU0": {
139+
"name": "CPU Temperature",
140+
"unit": "°C",
141+
"icon": "mdi:thermometer",
142+
"device_class": SensorDeviceClass.TEMPERATURE,
143+
"state_class": SensorStateClass.MEASUREMENT
144+
},
124145
"BytesSent": {
125146
"name": "Bytes Sent",
126147
"unit": "B",

0 commit comments

Comments
 (0)