Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDF for Develco/frient electricity meter interface 2 EMIZB-141 #7850

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
255 changes: 255 additions & 0 deletions devices/develco/emizb-141_electricity_meter_interface_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
{
"schema": "devcap1.schema.json",
"manufacturername": "Develco Products A/S",
"modelid": "EMIZB-141",
"vendor": "Develco products",
"product": "Electricity meter interface 2 EMIZB-141",
"sleeper": false,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_CONSUMPTION_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x02",
"0x0702"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0053",
"endpoint": "0x02",
"in": [
"0x0000",
"0x0001",
"0x0702"
]
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion",
"refresh.interval": 86400,
"read": {
"at": "0x8000",
"cl": "0x0000",
"ep": 2,
"fn": "zcl:attr",
"mf": "0x1015"
},
"parse": {
"at": "0x8000",
"cl": "0x0000",
"ep": 2,
"fn": "zcl:attr",
"mf": "0x1015",
"script": "develco_firmware.js"
}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/battery",
"parse": {
"at": "0x0021",
"cl": "0x0001",
"ep": 1,
"eval": "Item.val = Attr.val / 2;",
"fn": "zcl:attr"
},
"read": {
"fn": "none"
}
},
{
"name": "config/checkin"
},
{
"name": "config/interfacemode",
"parse": {
"at": "0x0302",
"cl": "0x0702",
"ep": 2,
"eval": "let v = [0x0000, 0x0001, 0x0002, 0x0100, 0x0101, 0x0102, 0x0103, 0x0104].indexOf(Attr.val); Item.val = v != -1 ? v + 1 : 0;",
"fn": "zcl:attr",
"mf": "0x1015"
},
"read": {
"at": "0x0302",
"cl": "0x0702",
"ep": 2,
"fn": "zcl:attr",
"mf": "0x1015"
},
"write": {
"at": "0x0302",
"cl": "0x0702",
"dt": "0x31",
"ep": 2,
"eval": "[0x0000, 0x0001, 0x0002, 0x0100, 0x0101, 0x0102, 0x0103, 0x0104][Item.val - 1];",
"fn": "zcl:attr",
"mf": "0x1015"
},
"values": [
[1, "Pulse counting electricity - Unit kWh"],
[2, "Pulse counting gas - Unit m3"],
[3, "Pulse counting water - Unit m3"],
[4, "Kamstrup KMP protocol"],
[5, "Linky protocol"],
[6, "DLMS-COSEM - IEC62056-21 mod A"],
[7, "P1 dutch standard – DSMR 2.3 version"],
[8, "P1 dutch standard – DSMR 4.0 version"]
]
},
{
"name": "config/on"
},
{
"name": "config/pulseconfiguration",
"parse": {
"at": "0x0300",
"cl": "0x0702",
"ep": 2,
"eval": "Item.val = Attr.val",
"mf": "0x1015"
},
"read": {
"at": "0x0300",
"cl": "0x0702",
"ep": 2,
"fn": "zcl:attr",
"mf": "0x1015"
},
"write": {
"at": "0x0300",
"cl": "0x0702",
"dt": "0x21",
"ep": 2,
"eval": "Item.val;",
"fn": "zcl:attr",
"mf": "0x1015"
}
},
{
"name": "config/reachable"
},
{
"name": "state/consumption",
"refresh.interval": 360,
"parse": {
"at": "0x0000",
"cl": "0x0702",
"ep": 2,
"eval": "Item.val = Attr.val",
"fn": "zcl:attr"
}
},
{
"name": "state/lastupdated"
},
{
"name": "state/lowbattery",
"refresh.interval": 3660,
"parse": {
"at": "0x0200",
"cl": "0x0702",
"ep": 2,
"eval": "Item.val = ((Attr.val >> 1) & 0x01) ? true : false",
"fn": "zcl:attr",
"mf": "0x1015"
},
"read": {
"at": "0x0200",
"cl": "0x0702",
"ep": 2,
"fn": "zcl:attr",
"mf": "0x1015"
}
},
{
"name": "state/power",
"refresh.interval": 360,
"parse": {
"at": "0x0400",
"cl": "0x0702",
"ep": 2,
"eval": "Item.val = Attr.val",
"fn": "zcl:attr"
},
"read": {
"at": "0x0400",
"cl": "0x0702",
"ep": 2,
"fn": "zcl:attr"
}
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 2,
"dst.ep": 1,
"cl": "0x0001",
"report": [
{
"at": "0x0021",
"dt": "0x20",
"min": 3600,
"max": 43200,
"change": "0x00000002"
}
]
},
{
"bind": "unicast",
"src.ep": 2,
"dst.ep": 1,
"cl": "0x0702",
"report": [
{
"at": "0x0000",
"dt": "0x25",
"min": 1,
"max": 300,
"change": "0x00000001"
},
{
"at": "0x0200",
"dt": "0x18",
"min": 1,
"max": 3600
},
{
"at": "0x0400",
"dt": "0x2A",
"min": 1,
"max": 300,
"change": "0x00000001"
}
]
}
]
}
Loading