Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.5k stars 1.63k forks source link

[New device support]: Develco EMI 2 - P1 - EMIZB-151 #23091

Open hart0x opened 2 weeks ago

hart0x commented 2 weeks ago

Link

https://www.develcoproducts.com/products/meter-interfaces/electricity-meter-interface-2-p1/

Database entry

{"id":16,"type":"EndDevice","ieeeAddr":"0x0015bc001b1014d9","nwkAddr":17295,"manufId":4117,"manufName":"frient A/S","powerSource":"DC Source","modelId":"EMIZB-151","epList":[1,2],"endpoints":{"1":{"profId":49353,"epId":1,"devId":1,"inClusterList":[5,6],"outClusterList":[],"clusters":{},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b001936ace3","endpointID":1}],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":83,"inClusterList":[0,1,3,32,1794,1796,2817,2820,2821],"outClusterList":[3,10,25],"clusters":{"genBasic":{"attributes":{"modelId":"EMIZB-151","manufacturerName":"frient A/S","powerSource":4,"zclVersion":7,"dateCode":"2023-12-21 11:28"}},"genPollCtrl":{"attributes":{"checkinInterval":14400}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00124b001936ace3","endpointID":1}],"configuredReportings":[],"meta":{}}},"dateCode":"2023-12-21 11:28","zclVersion":7,"interviewCompleted":true,"meta":{},"lastSeen":1718691367793,"checkinInterval":3600}

Comments

I've got a E350 Landis+Gyr smart meter (DSMR 4.2). The EMIZB-151 powers up fine, but the readings show N/A in Z2M.

snip

Technical manual: https://www.develcoproducts.com/media/5280/emizb-151-technical-manual-electricity-meter-interface-2-p1.pdf

Log (debug): log.log

Firmware: https://github.com/Develco-Products/frient_upgrade_images

External definition

const {} = require('zigbee-herdsman-converters/lib/modernExtend');
// Add the lines below
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const ota = require('zigbee-herdsman-converters/lib/ota');
const utils = require('zigbee-herdsman-converters/lib/utils');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const e = exposes.presets;
const ea = exposes.access;

const {deviceEndpoints, onOff, battery, identify, electricityMeter} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['EMIZB-151'],
    model: 'EMIZB-151',
    vendor: 'frient A/S',
    description: 'Automatically generated definition',
    extend: [deviceEndpoints({"endpoints":{"1":1,"2":2}}), onOff({"powerOnBehavior":false}), battery(), identify(), electricityMeter()],
    meta: {"multiEndpoint":true},
};

module.exports = definition;
hart0x commented 2 weeks ago

I've got power and energy working.

snip

device.txt