Add edl21 sensor for positive active instantaneous power (#94736)
This commit is contained in:
parent
dacfa4b4dc
commit
3859d2e2a6
2 changed files with 13 additions and 1 deletions
|
@ -72,6 +72,15 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
||||||
icon="mdi:flash",
|
icon="mdi:flash",
|
||||||
),
|
),
|
||||||
# C=1: Active power +
|
# 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
|
# D=8: Time integral 1
|
||||||
# E=0: Total
|
# E=0: Total
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
|
@ -100,7 +109,7 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
||||||
key="1-0:1.17.0*255",
|
key="1-0:1.17.0*255",
|
||||||
translation_key="last_signed_positive_active_energy_total",
|
translation_key="last_signed_positive_active_energy_total",
|
||||||
),
|
),
|
||||||
# C=2: Active power -
|
# C=2: Active energy -
|
||||||
# D=8: Time integral 1
|
# D=8: Time integral 1
|
||||||
# E=0: Total
|
# E=0: Total
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
|
|
|
@ -26,6 +26,9 @@
|
||||||
"firmware_version_number": {
|
"firmware_version_number": {
|
||||||
"name": "Firmware version number"
|
"name": "Firmware version number"
|
||||||
},
|
},
|
||||||
|
"positive_active_instantaneous_power": {
|
||||||
|
"name": "Positive active instantaneous power"
|
||||||
|
},
|
||||||
"positive_active_energy_total": {
|
"positive_active_energy_total": {
|
||||||
"name": "Positive active energy total"
|
"name": "Positive active energy total"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue