Open Martin82sf opened 5 months ago
Hello, I am having the same problem with this adapter, but I had it working since some previous versions of Zigbee2MQTT.
Yesterday, the device stopped responding and I tried to repair it. I shouldn't have done that, because it didn't work. Then, I restarted Zigbee2MQTT. After the restart, the device now responded to on/off commands, but when joining the same errors appears. The device is not able to obtain power, current, voltage or energy as it was able before.
I was using Zigbee2MQTT version 1.35.0 yesterday when I detected the problem. I updated to 1.35.1, but no luck.
It looks like it broke when the converter was modified because of a refactor. If I create a custom converter using the previous code, it works again!
@Martin82sf In the meantime you can do the same. You only have to create a file LDSENK02S.js
next to configuration.yaml
with the following content:
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 extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
module.exports = [
{
zigbeeModel: ['LDSENK02S'],
model: 'LDSENK02S',
vendor: 'ADEO',
description: 'ENKI LEXMAN 16A EU smart plug',
extend: extend.switch({exposes: [e.power(), e.energy()], fromZigbee: [fz.electrical_measurement, fz.metering]}),
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'seMetering']);
await reporting.onOff(endpoint);
await reporting.activePower(endpoint);
await reporting.currentSummDelivered(endpoint);
await reporting.readMeteringMultiplierDivisor(endpoint);
},
}
];
Then edit the configuration.yaml
file to have an entry like this:
external_converters:
- LDSENK02S.js
Finally restart Zigbee2MQTT and you should get your metrics for the device.
@xabylr Thanks but if not working .
Not don't appear in the dashboard the options
And continues reporting "null" in the voltage / current values
Yes, you are right, for me they don't appear as well. I haven't noticed that. However, for me it was an improvement because I didn't even have power or energy before that.
Still fails in lastest version [1.36.0]
More in-depth analysis is being done here: https://github.com/Koenkk/zigbee-herdsman-converters/issues/7147
We can close this one to avoid doubling efforts
What happened?
Hi.
The model LDSENK02S
Cant measure either voltage or Current.
Publish 'get' 'voltage' to 'Enchufe TV' failed: 'Error: Read 0x5cc7c1fffe07e5fc/1 haElectricalMeasurement(["rmsVoltage"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')'
Publish 'get' 'current' to 'Enchufe TV' failed: 'Error: Read 0x5cc7c1fffe07e5fc/1 haElectricalMeasurement(["rmsCurrent"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')'
I have two of them and this happens in both
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.35.1-1
Adapter firmware version
20221102
Adapter
SONOFF Zigbee 3.0 USB Dongle Plus ZBDongle-P
Setup
Add ON Home assistant ON a NUC
Debug log
No response