Add edl21 sensor for positive active instantaneous power (#94736)
parent
dacfa4b4dc
commit
3859d2e2a6
|
@ -72,6 +72,15 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||
icon="mdi:flash",
|
||||
),
|
||||
# C=1: Active power +
|
||||
# D=7: Current value
|
||||
# E=0: Total
|
||||
SensorEntityDescription(
|
||||
key="1-0:1.7.0*255",
|
||||
translation_key="positive_active_instantaneous_power",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
device_class=SensorDeviceClass.POWER,
|
||||
),
|
||||
# C=1: Active energy +
|
||||
# D=8: Time integral 1
|
||||
# E=0: Total
|
||||
SensorEntityDescription(
|
||||
|
@ -100,7 +109,7 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||
key="1-0:1.17.0*255",
|
||||
translation_key="last_signed_positive_active_energy_total",
|
||||
),
|
||||
# C=2: Active power -
|
||||
# C=2: Active energy -
|
||||
# D=8: Time integral 1
|
||||
# E=0: Total
|
||||
SensorEntityDescription(
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
"firmware_version_number": {
|
||||
"name": "Firmware version number"
|
||||
},
|
||||
"positive_active_instantaneous_power": {
|
||||
"name": "Positive active instantaneous power"
|
||||
},
|
||||
"positive_active_energy_total": {
|
||||
"name": "Positive active energy total"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue