Open ingoratsdorf opened 7 months ago
Seems related to an issue I had too, which I put a converter together for as a workaround: https://github.com/Koenkk/zigbee2mqtt/issues/21361#issuecomment-2105394183
I'm not 100% confident that your issue here uses the same device specs as my mentioned fix tho. So here are two more potential fixes:
/*
* Attributes zigbeeModel & fingerprint taken from the Lonsonho converter definition:
* https://github.com/Koenkk/zigbee-herdsman-converters/blob/c385d3fa7766ac5ab33bcc7124a1691663b6b8b6/src/devices/lonsonho.ts#L151
*
* Attributes model, vendor, description & light definition taken from the YSRSAI converter definition:
* https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/devices/ysrsai.ts
*/
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const definition1 = {
zigbeeModel: ['ZB-RGBCW'],
fingerprint: [{modelID: 'ZB-CL01', manufacturerName: 'eWeLight'}, {modelID: 'ZB-CL01', manufacturerName: 'eWeLink'},
{modelID: 'ZB-CL02', manufacturerName: 'eWeLight'}, {modelID: 'ZB-CL01', manufacturerName: 'eWeLi\u0001\u0000\u0010'},
{modelID: 'Z102LG03-1', manufacturerName: 'eWeLink'}],
model: 'YSR-MINI-01_rgbcct',
vendor: 'YSRSAI',
description: 'Zigbee LED controller (RGB+CCT)',
extend: [tuya.modernExtend.tuyaLight({colorTemp: {range: [160, 370]}, color: true})]
};
const definition2 = {
zigbeeModel: ['ZB-CT01'],
fingerprint: [{modelID: 'ZB-CL01', manufacturerName: 'eWeLight'}, {modelID: 'ZB-CL01', manufacturerName: 'eWeLink'},
{modelID: 'ZB-CL02', manufacturerName: 'eWeLight'}, {modelID: 'ZB-CL01', manufacturerName: 'eWeLi\u0001\u0000\u0010'},
{modelID: 'Z102LG03-1', manufacturerName: 'eWeLink'}],
model: 'YSR-MINI-01_wwcw',
vendor: 'YSRSAI',
description: 'Zigbee LED controller (WW/CW)',
extend: [tuya.modernExtend.tuyaLight({colorTemp: {range: [153, 500]}})],
configure: async (device, coordinatorEndpoint) => {
device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 0x10});
}
};
const definition3 = {
zigbeeModel: ['ZB-DL01'],
fingerprint: [{modelID: 'ZB-CL01', manufacturerName: 'eWeLight'}, {modelID: 'ZB-CL01', manufacturerName: 'eWeLink'},
{modelID: 'ZB-CL02', manufacturerName: 'eWeLight'}, {modelID: 'ZB-CL01', manufacturerName: 'eWeLi\u0001\u0000\u0010'},
{modelID: 'Z102LG03-1', manufacturerName: 'eWeLink'}],
model: 'YSR-MINI-01_dimmer',
vendor: 'YSRSAI',
description: 'Zigbee LED controller (Dimmer)',
extend: [tuya.modernExtend.tuyaLight()],
};
module.exports = definition1;
Replace the definition1
in the last line with either definition2
or definition3
to switch to a different converter definition. Make sure to restart zigbee2mqtt and remove+rejoin the device after switching the definition.
Let me know if this helps!
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days
Link
https://www.aliexpress.com/item/1005004630523125.html
Database entry
{"id":33,"type":"Router","ieeeAddr":"0xa4c138a9ccda8337","nwkAddr":16671,"manufId":4107,"manufName":"eWeLight","powerSource":"Mains (single phase)","modelId":"ZB-CL01","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":269,"inClusterList":[0,3,4,5,6,8,768,4096,2821],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"modelId":"ZB-CL01","manufacturerName":"eWeLight","powerSource":1,"zclVersion":3,"appVersion":6,"stackVersion":2,"hwVersion":0,"dateCode":"20230629","swBuildId":"2.0.1"}},"lightingColorCtrl":{"attributes":{"colorCapabilities":25,"colorTempPhysicalMin":153,"colorTempPhysicalMax":500}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":6,"stackVersion":2,"hwVersion":0,"dateCode":"20230629","swBuildId":"2.0.1","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1324213189},"lastSeen":1711137170310}
Comments
The above device is a LED strip light controller, RGBW. With the automatically detected device support being 'Lonsonho ZB-RGBCW', the only things that really works is on/off, all colours are mixed up. Ie: selecting blue makes everything red, selecting red makes it yellow, selecting yellow makes it blue-yellow, selecting green makes it actually blue. So looks like the colour channels are mixed up. I tried to create an external converter with the following autogenerated from Z2M:
But the converter does not seem to get loaded, the autodetected one is still being used. I searched for 'force external converter' but could not find anything other than a single unanswered post from some year or so ago.
I am seeing in the logs
2024-03-23 09:16:31Publish 'get' 'color_temp' to '0xa4c138a9ccda8337' failed: 'Error: Read 0xa4c138a9ccda8337/1 lightingColorCtrl(["colorMode","currentX","currentY","enhancedCurrentHue","currentSaturation","colorTemperature"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')'
External definition
When the device is added, I see the following in the logs: