Koenkk / zigbee2mqtt

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

[New device support]: SCHNEIDER ELECTRIC MUR36014 #21457

Open BruceLIOU opened 7 months ago

BruceLIOU commented 7 months ago

Link

https://www.se.com/fr/fr/product/MUR36014/mureva-evlink-prise-courant-2p+t-renforc%C3%A9e-pour-ve-ip66-ik08-gris/?%3Frange=226303288-prises-de-recharge-mureva-evlink&selectedNodeId=109455364809

Database entry

{
    "id":30,
    "type":"Router",
    "ieeeAddr":"0x70ac08fffe03fc81",
    "nwkAddr":36618,
    "manufId":4190,
    "manufName":"Schneider Electric",
    "powerSource":"Mains (single phase)",
    "modelId":"EVSCKT/OUTLET/1",
    "epList":[
        6,
        242
    ],
    "endpoints":{
        "6":{
            "profId":260,
            "epId":6,
            "devId":9,
            "inClusterList":[
                0,
                3,
                4,
                5,
                6,
                1794,
                1800,
                2820,
                2821,
                64516
            ],
            "outClusterList":[
                25
            ],
            "clusters":{
                "genBasic":{
                    "attributes":{
                        "modelId":"EVSCKT/OUTLET/1",
                        "manufacturerName":"Schneider Electric",
                        "powerSource":1,
                        "zclVersion":3,
                        "appVersion":2,
                        "stackVersion":6,
                        "hwVersion":1,
                        "dateCode":"",
                        "swBuildId":"002.010.000 R"
                        }
                },
                "genOnOff":{
                    "attributes":{
                        "onOff":1
                    }
                },
                "haElectricalMeasurement":{
                    "attributes":{}
                }
            },
            "binds":[
                {
                    "cluster":6,
                    "type":"endpoint",
                    "deviceIeeeAddress":"0x00212effff06f0e7",
                    "endpointID":1
                }
            ],
            "configuredReportings":[
                {
                    "cluster":6,
                    "attrId":0,
                    "minRepIntval":0,
                    "maxRepIntval":65000,
                    "repChange":1,
                    "manufacturerCode":null
                }
            ],
            "meta":{}
        },
        "242":{
            "profId":41440,
            "epId":242,
            "devId":97,
            "inClusterList":[],
            "outClusterList":[
                33
            ],
            "clusters":{},
            "binds":[],
            "configuredReportings":[],
            "meta":{}
        }
    },
    "appVersion":2,
    "stackVersion":6,
    "hwVersion":1,
    "dateCode":"",
    "swBuildId":"002.010.000 R",
    "zclVersion":3,
    "interviewCompleted":true,
    "meta":{},
    "lastSeen":1708273491823
}

Comments

Hi, This equipment is recognized under ZHA but not under Z2MQTT. I tried to follow the procedure for its integration but without success. I also cloned the zigbee2mqtt.io repo in order to make a pull request for the image of this team but again without success. Thank you in advance for its integration. This is a reinforced socket for mainly charging electric vehicles. It allows you to turn the socket off and on as well as monitor the electricity consumption on this socket.

External definition

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

const definition = {
    zigbeeModel: ['EVSCKT/OUTLET/1'],
    model: 'EVSCKT/OUTLET/1',
    vendor: 'Schneider Electric',
    description: 'Reinforced power socket',
    extend: [onOff({"powerOnBehavior":false}), electricityMeter()],
    meta: {},
};

module.exports = definition;
Koenkk commented 7 months ago

with the external definition, does the device work?

BruceLIOU commented 7 months ago

Hi , the device work but energy is not send { "current": 0, "linkquality": 255, "power": 0, "state": "OFF", "voltage": 240, "energy": null }

Koenkk commented 7 months ago

Does the configure succeed? You can do it via the z2m frontend -> device -> yellow refresh button

BruceLIOU commented 7 months ago

When i refresh this device i got this error Failed to configure 'Prise VE', attempt 5 (Error: Read 0x70ac08fffe03fc81/6 haElectricalMeasurement(["acPowerDivisor","acPowerMultiplier"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:319:28) at Endpoint.read (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:469:22) at configure (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:222:25) at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:141:25) at Configure.configure (/app/lib/extension/configure.ts:120:13) at Configure.onMQTTMessage (/app/lib/extension/configure.ts:55:21) at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:174:17))

Koenkk commented 7 months ago

Can you try again after replacing electricityMeter() with electricityMeter({current: {divisor: 1000}, voltage: {divisor: 1}, power: {divisor: 1}, energy: {divisor: 100}}),. The divisors are probably wrong, e.g. power might be multiplied by 10 or 100 so update the converter accordingly and reconfigure.

BruceLIOU commented 7 months ago

Hi, energy don't have value... image

Koenkk commented 6 months ago

What is you read the currentSummDelivered?

Screenshot 2024-03-07 at 21 07 20
BruceLIOU commented 6 months ago

This return an error

Koenkk commented 6 months ago

What's the error?

BruceLIOU commented 6 months ago

Screenshot_20240308_230353_Home Assistant No return for node 6 and this for 242

Koenkk commented 6 months ago

What if you read the genBasic cluster zclVersion

BruceLIOU commented 6 months ago

Nothing return for this...

Koenkk commented 6 months ago

When pairing with Home Assistant, does it show the energy?

BruceLIOU commented 6 months ago

No energy is always empty (no value)

Koenkk commented 6 months ago

So doesn't seem to be supported, try with:

electricityMeter({cluster: 'electrical',  current: {divisor: 1000}, voltage: {divisor: 1}, power: {divisor: 1}}),

Play a bit with the divisor numbers, because what I see from your screenshot the values reported are too high.

BruceLIOU commented 6 months ago

After restart Z2M, i have this into log Zigbee2MQTT:error 2024-03-11 08:18:29: Failed to configure 'Prise VE', attempt 1 (Error: ConfigureReporting 0x70ac08fffe03fc81/6 haElectricalMeasurement([{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":5,"attribute":"activePower"},{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":50,"attribute":"rmsCurrent"},{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":5,"attribute":"rmsVoltage"}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:319:28) at Endpoint.configureReporting (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:672:22) at setupAttributes (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:57:13) at configure (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:235:21) at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:141:25) at Configure.configure (/app/lib/extension/configure.ts:122:13) at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:174:17)) Zigbee2MQTT:error 2024-03-11 08:18:32: Failed to configure 'Prise VE', attempt 2 (Error: ConfigureReporting 0x70ac08fffe03fc81/6 haElectricalMeasurement([{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":5,"attribute":"activePower"},{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":50,"attribute":"rmsCurrent"},{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":5,"attribute":"rmsVoltage"}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:319:28) at Endpoint.configureReporting (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:672:22) at setupAttributes (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:57:13) at configure (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:235:21) at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:141:25) at Configure.configure (/app/lib/extension/configure.ts:122:13) at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:174:17)) Zigbee2MQTT:error 2024-03-11 08:18:37: Failed to configure 'Prise VE', attempt 3 (Error: ConfigureReporting 0x70ac08fffe03fc81/6 haElectricalMeasurement([{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":5,"attribute":"activePower"},{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":50,"attribute":"rmsCurrent"},{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":5,"attribute":"rmsVoltage"}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:319:28) at Endpoint.configureReporting (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:672:22) at setupAttributes (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:57:13) at configure (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:235:21) at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:141:25) at Configure.configure (/app/lib/extension/configure.ts:122:13) at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:174:17))

Koenkk commented 6 months ago

Looks that the power is also not supported, does it work when pairing with HA?

BruceLIOU commented 6 months ago

I come from Jeedom (French solution) with their zigbee plugin and everything was working. From memory everything also went back to ZHA. It's strange

BruceLIOU commented 6 months ago

Hi, I reset the proposed script to default and reconfigured this device and here are the error messages received in the logs: image

Breizh-Jeff commented 6 months ago

Hi,

+1. Same issue... :/

Pepeanuts commented 6 months ago

Hi, try to contact @LGO44 on https://community.home-assistant.io/t/drayton-wiser-home-assistant-integration/80965/3550. It's a french active developpers on Wiser HUB integration for HA, maybe he could help you with this product and get logs from Wiser HUB.

vincemonn commented 6 months ago

Hi, Same issue... @BruceLIOU have you found a solution ? I'm also on Jeedom.

Thanks

BruceLIOU commented 6 months ago

Hi @vincemonn, No for moments...

Micka41 commented 4 months ago

What if you read the genBasic cluster zclVersion

Info 2024-05-06 18:20:01Read result of 'genBasic': {"zclVersion":3}

Micka41 commented 4 months ago

What if you read the genBasic cluster zclVersion

Read result of 'seMetering': {"currentSummDelivered":[0,0],"status":0,"meteringDeviceType":0,"extendedStatus":"0x0000000000000000","unitOfMeasure":0,"multiplier":1,"divisor":1000000,"summaFormatting":75,"instantaneousDemand":0} Read result of 'haElectricalMeasurement': {"measurementType":8,"rmsVoltage":238,"rmsCurrent":0}

Micka41 commented 4 months ago

Read result of 'seMetering': {"currentSummDelivered":[0,24000],"status":0,"extendedStatus":"0x0000000000000000","unitOfMeasure":0,"instantaneousDemand":1176}

Everything seems to work for me. For the moment, I've tested the plug with a coffee machine ;)

seMetering - instantaneousDemand : power W / 10 ? seMetering - currentSummDelivered : energy kWh ? haElectricalMeasurement - rmsVoltage : volt V haElectricalMeasurement - rmsCurrent : Amperage mA ?

The data is updated when I query these values; there is no automatic feedback.

BruceLIOU commented 4 months ago

@Micka41 do you use generated_external_definition ?

Micka41 commented 4 months ago

@Micka41 do you use generated_external_definition ? No, I did the tests “raw”: I added the plug and interrogated all the “seMetering” and “haElectricalMeasurement” parameters by plugging it into my coffee machine (the plug isn't fixed yet and I don't have the electric car yet).

BruceLIOU commented 4 months ago

@Micka41 do tou have this conf into Link image

Micka41 commented 4 months ago

My config : Expose : prise-sc-expose Lien : prise-sc-lien Rapports : prise-sc-rapport

The amperage must be divided by 1000, but I don't know how to do that.

BruceLIOU commented 4 months ago

If I remove external_converters into my configuration.yaml image I put the same configurations as you but the energy field is still empty...

Micka41 commented 4 months ago

Manually queries the “summaFormatting” and “currentSummDelivered” attributes in the seMetering cluster once. This should then update itself.

sky-future commented 3 months ago

@BruceLIOU Did you fix it ? With zigbee2mqtt ?

BruceLIOU commented 2 months ago

Hi, i have same problem... @Micka41 nothing when call this properties @sky-future no this problem is on zigbee2mqtt