Add edl21 sensor for positive active instantaneous power (#94736)

pull/87856/head
Stephan Uhle 2023-08-08 10:35:31 +02:00 committed by GitHub
parent dacfa4b4dc
commit 3859d2e2a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -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(

View File

@ -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"
},