mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Support more edl21 devices and sensors (#43603)
* edl21: Handle 1-0:96.50.1*1 and 1-0:96.1.0*255 * edl21: Use 1-0:96.1.0*255 as alternative electricity ID * edl21: Fix copy-paste error in comments * edl21: Add active amperage sensors * edl21: Bump pysml to 0.0.3 to fix format of electricity ID
This commit is contained in:
parent
26892a629d
commit
3efda93875
@ -2,6 +2,6 @@
|
||||
"domain": "edl21",
|
||||
"name": "EDL21",
|
||||
"documentation": "https://www.home-assistant.io/integrations/edl21",
|
||||
"requirements": ["pysml==0.0.2"],
|
||||
"requirements": ["pysml==0.0.3"],
|
||||
"codeowners": ["@mtdcr"]
|
||||
}
|
||||
|
@ -77,20 +77,36 @@ class EDL21:
|
||||
# D=7: Instantaneous value
|
||||
# E=0: Total
|
||||
"1-0:16.7.0*255": "Sum active instantaneous power",
|
||||
# C=31: Active amperage L1
|
||||
# D=7: Instantaneous value
|
||||
# E=0: Total
|
||||
"1-0:31.7.0*255": "L1 active instantaneous amperage",
|
||||
# C=36: Active power L1
|
||||
# D=7: Instantaneous value
|
||||
# E=0: Total
|
||||
"1-0:36.7.0*255": "L1 active instantaneous power",
|
||||
# C=56: Active power L1
|
||||
# C=51: Active amperage L2
|
||||
# D=7: Instantaneous value
|
||||
# E=0: Total
|
||||
"1-0:51.7.0*255": "L2 active instantaneous amperage",
|
||||
# C=56: Active power L2
|
||||
# D=7: Instantaneous value
|
||||
# E=0: Total
|
||||
"1-0:56.7.0*255": "L2 active instantaneous power",
|
||||
# C=76: Active power L1
|
||||
# C=71: Active amperage L3
|
||||
# D=7: Instantaneous value
|
||||
# E=0: Total
|
||||
"1-0:71.7.0*255": "L3 active instantaneous amperage",
|
||||
# C=76: Active power L3
|
||||
# D=7: Instantaneous value
|
||||
# E=0: Total
|
||||
"1-0:76.7.0*255": "L3 active instantaneous power",
|
||||
# C=96: Electricity-related service entries
|
||||
"1-0:96.1.0*255": "Metering point ID 1",
|
||||
}
|
||||
_OBIS_BLACKLIST = {
|
||||
# C=96: Electricity-related service entries
|
||||
"1-0:96.50.1*1", # Manufacturer specific
|
||||
# A=129: Manufacturer specific
|
||||
"129-129:199.130.3*255", # Iskraemeco: Manufacturer
|
||||
"129-129:199.130.5*255", # Iskraemeco: Public Key
|
||||
@ -115,7 +131,7 @@ class EDL21:
|
||||
|
||||
electricity_id = None
|
||||
for telegram in message_body.get("valList", []):
|
||||
if telegram.get("objName") == "1-0:0.0.9*255":
|
||||
if telegram.get("objName") in ("1-0:0.0.9*255", "1-0:96.1.0*255"):
|
||||
electricity_id = telegram.get("value")
|
||||
break
|
||||
|
||||
|
@ -1692,7 +1692,7 @@ pysmartthings==0.7.6
|
||||
pysmarty==0.8
|
||||
|
||||
# homeassistant.components.edl21
|
||||
pysml==0.0.2
|
||||
pysml==0.0.3
|
||||
|
||||
# homeassistant.components.snmp
|
||||
pysnmp==4.4.12
|
||||
|
Loading…
x
Reference in New Issue
Block a user