Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New device support]: unsupported device manufacturer with Zigbee model 'TS0601' and manufacturer name '_TZE284_cjbofhxw' #22784

Closed
lyonelf opened this issue May 26, 2024 · 6 comments
Labels
new device support New device support request

Comments

@lyonelf
Copy link

lyonelf commented May 26, 2024

Link

https://fr.aliexpress.com/item/1005006942840986.html?spm=a2g0o.order_list.order_list_main.17.21ef5e5bU2MF9s&gatewayAdapt=glo2fra

Database entry

{"id":2,"type":"Router","ieeeAddr":"0x842712fffe481b72","nwkAddr":35427,"manufId":4098,"manufName":"_TZE284_cjbofhxw","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184,0,60672],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE284_cjbofhxw","stackVersion":0,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1716730727040}

Comments

Device '0x842712fffe481b72' with Zigbee model 'TS0601' and manufacturer name '_TZE284_cjbofhxw' is NOT supported, please follow https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html

External definition

..
@lyonelf lyonelf added the new device support New device support request label May 26, 2024
@Boba1982
Copy link

hi,

i have same device, an cannot integrate.
can someone please integrate it

const definition = {
zigbeeModel: ['TS0601'],
model: 'TS0601',
vendor: '_TZE284_cjbofhxw',
description: 'Automatically generated definition',
extend: [],
meta: {},

@lyonelf
Copy link
Author

lyonelf commented Jun 1, 2024

hi,

i have same device, an cannot integrate. can someone please integrate it

const definition = { zigbeeModel: ['TS0601'], model: 'TS0601', vendor: '_TZE284_cjbofhxw', description: 'Automatically generated definition', extend: [], meta: {},

I found the external unsupported settings in another page, here is:

`

const {} = require('zigbee-herdsman-converters/lib/modernExtend');
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 tuya = require('zigbee-herdsman-converters/lib/tuya');
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 fzLocal = {
gateway_connection_status: {
cluster: 'manuSpecificTuya',
type: ['commandMcuGatewayConnectionStatus'],
convert: async (model, msg, publish, options, meta) => {
const payload = {payloadSize: 1,payload: 1}
await msg.endpoint.command('manuSpecificTuya', 'mcuGatewayConnectionStatus', payload, {});
},
},
}

const definition = {
zigbeeModel: ['TS0601'],
model: 'PJ-1203-W',
vendor: 'TuYa',
description: 'Electricity Energy Monitor',
extend: [],
fromZigbee: [tuya.fz.datapoints, fzLocal.gateway_connection_status],
toZigbee: [tuya.tz.datapoints],
configure: tuya.configureMagicPacket,
exposes: [e.current(), e.power(), e.voltage(), e.energy()],
meta: {
tuyaDatapoints: [
[18, 'current', tuya.valueConverter.divideBy1000],
[19, 'power', tuya.valueConverter.divideBy10],
[20, 'voltage', tuya.valueConverter.divideBy10],
[101, 'energy', tuya.valueConverter.divideBy1000],
],
},
};

module.exports = definition;

`

@Koenkk
Copy link
Owner

Koenkk commented Jun 1, 2024

@lyonelf does that external converter work?

@lyonelf
Copy link
Author

lyonelf commented Jun 1, 2024

Yes, my clamp is in product via Jeedom

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Jun 2, 2024
@Koenkk
Copy link
Owner

Koenkk commented Jun 2, 2024

Added it, thanks!

Changes will be available in the dev branch in a few hours from now.

@Boba1982
Copy link

Boba1982 commented Jun 2, 2024

thank you,
i try to add custom quirk but with no luck.
my clamp is still unsupported.
this is my custum quirk:

const {} = require('zigbee-herdsman-converters/lib/modernExtend');
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 tuya = require('zigbee-herdsman-converters/lib/tuya');
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 fzLocal = {
gateway_connection_status: {
cluster: 'manuSpecificTuya',
type: ['commandMcuGatewayConnectionStatus'],
convert: async (model, msg, publish, options, meta) => {
const payload = {payloadSize: 1,payload: 1}
await msg.endpoint.command('manuSpecificTuya', 'mcuGatewayConnectionStatus', payload, {});
},
},
}

const definition = {
zigbeeModel: ['TS0601'],
model: 'TS0601',
vendor: '_TZE284_cjbofhxw',
description: 'Automatically generated definition',
extend: [],
fromZigbee: [tuya.fz.datapoints, fzLocal.gateway_connection_status],
toZigbee: [tuya.tz.datapoints],
configure: tuya.configureMagicPacket,
exposes: [e.current(), e.power(), e.voltage(), e.energy()],
meta: {
tuyaDatapoints: [
[18, 'current', tuya.valueConverter.divideBy1000],
[19, 'power', tuya.valueConverter.divideBy10],
[20, 'voltage', tuya.valueConverter.divideBy10],
[101, 'energy', tuya.valueConverter.divideBy1000],
],
},
};

module.exports = definition;

and i input this lines in HA Config.yaml

zha:
database_path: /config/zigbee.db
enable_quirks: true
custom_quirks_path: /config/custom_zha_quirks/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device support New device support request
Projects
None yet
Development

No branches or pull requests

3 participants