Koenkk / zigbee2mqtt

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

[New device support]: Bticino/Legrand K4003C and K4411C does not expose power consumption #22213

Closed jafar-atili closed 5 months ago

jafar-atili commented 5 months ago

Link

https://catalogue.bticino.com/product/solution-for-residential-and-tertiary-building/living-now/dimmer/BTI-K4411C-EN

Database entry

{"id":61,"type":"Router","ieeeAddr":"0x00047400009fafb4","nwkAddr":22607,"manufId":4129,"manufName":" Legrand\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000","powerSource":"Mains (single phase)","modelId":" Light switch with neutral\u0000\u0000\u0000\u0000\u0000","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[0,3,4,5,15,64513,6],"outClusterList":[6,258,0,64513,5,25],"clusters":{"genBasic":{"attributes":{"modelId":" Light switch with neutral\u0000\u0000\u0000\u0000\u0000","manufacturerName":" Legrand\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000","powerSource":1,"zclVersion":2,"appVersion":0,"stackVersion":66,"hwVersion":9,"dateCode":" \u000020230518\u0000\u0000\u0000\u0000\u0000","swBuildId":"001c"}},"genIdentify":{"attributes":{"identifyTime":60}},"genBinaryInput":{"attributes":{"presentValue":0}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[{"cluster":64513,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c0bd97","endpointID":1},{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c0bd97","endpointID":1},{"cluster":25,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c0bd97","endpointID":1},{"cluster":3,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c0bd97","endpointID":1}],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":102,"inClusterList":[33],"outClusterList":[33],"clusters":{},"binds":[{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c0bd97","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":0,"stackVersion":66,"hwVersion":9,"dateCode":" \u000020230518\u0000\u0000\u0000\u0000\u0000","swBuildId":"001c","zclVersion":2,"interviewCompleted":true,"meta":{"configured":2},"lastSeen":1713115358121}

Comments

The product is supported by Z2M, but it lacks power consumption (Watt) reporting.

This is available in the original HOME + CONTROL app via their Zigbee gateway.

I am trying to understand if this is possible to do and if the module itself reports such information (power consumption) on the network.

Please let me know where should I start and I can assist in making it happen.

External definition

const {identify, onOff, commandsOnOff, commandsWindowCovering} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: [' Light switch with neutral'],
    model: ' Light switch with neutral',
    vendor: ' Legrand',
    description: 'Automatically generated definition',
    extend: [identify(), onOff({"powerOnBehavior":false}), commandsOnOff(), commandsWindowCovering()],
    meta: {},
};

module.exports = definition;

module.exports = definition;
jafar-atili commented 5 months ago

How accurate is the measurement of consumption given in the Home + Control App? The Home + Control App displays the consumption of your connected wired products. The power outlets, cable oulets, contactors and latching relays measure consumption with an accuracy of +/- 5%.

The consumption displayed for micromodules and light switches is an estimate based on the power of the bulb, that you can fill in the Home + Control App.

Go in the App settings,select the room and the switch, then fill in the "Power of the lightbulb" value.

https://qna.legrand.com/home-control/b2e83fb2-e7f2-4d9a-b106-62fe3b444f8f/MGL0121?lang=en-GB