Add edl21 sensors (#80214)

* Adding unhandled sensors

Adding unhandled sensors as mentioned here:
https://github.com/home-assistant/core/issues/78599
https://github.com/home-assistant/core/issues/64696

OBIS codes of EFR SGM-C4 from manual found at page 32:
https://www.mit-n.de/fileadmin/user_upload/Dateien/Messwesen/Messwesen_Strom/EFR-SGM-C4-Produkthandbuch.pdf

* Update sensor.py
pull/80315/head
Geliras 2022-10-14 08:23:50 +02:00 committed by GitHub
parent 5b6e46e7b7
commit d9af274da3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 3 deletions

View File

@ -223,9 +223,17 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
),
# C=81: Angles
# D=7: Instantaneous value
# E=1: U(L2) x U(L1)
# E=2: U(L3) x U(L1)
# E=4: U(L1) x I(L1)
# E=15: U(L2) x I(L2)
# E=26: U(L3) x I(L3)
SensorEntityDescription(
key="1-0:81.7.1*255", name="U(L2)/U(L1) phase angle", icon="mdi:sine-wave"
),
SensorEntityDescription(
key="1-0:81.7.2*255", name="U(L3)/U(L1) phase angle", icon="mdi:sine-wave"
),
SensorEntityDescription(
key="1-0:81.7.4*255", name="U(L1)/I(L1) phase angle", icon="mdi:sine-wave"
),
@ -273,9 +281,13 @@ class EDL21:
_OBIS_BLACKLIST = {
# C=96: Electricity-related service entries
"1-0:96.50.1*1", # Manufacturer specific
"1-0:96.90.2*1", # Manufacturer specific
"1-0:96.90.2*2", # Manufacturer specific
"1-0:96.50.1*1", # Manufacturer specific EFR SGM-C4 Hardware version
"1-0:96.50.1*4", # Manufacturer specific EFR SGM-C4 Hardware version
"1-0:96.50.4*4", # Manufacturer specific EFR SGM-C4 Parameters version
"1-0:96.90.2*1", # Manufacturer specific EFR SGM-C4 Firmware Checksum
"1-0:96.90.2*2", # Manufacturer specific EFR SGM-C4 Firmware Checksum
# C=97: Electricity-related service entries
"1-0:97.97.0*0", # Manufacturer specific EFR SGM-C4 Error register
# A=129: Manufacturer specific
"129-129:199.130.3*255", # Iskraemeco: Manufacturer
"129-129:199.130.5*255", # Iskraemeco: Public Key