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]: Air quolity sensor Tuya _TZE204_yvx5lh6k #23559

Closed
aliakseika opened this issue Aug 8, 2024 · 9 comments
Closed

[New device support]: Air quolity sensor Tuya _TZE204_yvx5lh6k #23559

aliakseika opened this issue Aug 8, 2024 · 9 comments
Labels
new device support New device support request

Comments

@aliakseika
Copy link

Link

https://aliexpress.com/item/1005003428063886.html?spm=a2g2w.orderdetail.0.0.7af54aa66i4YHC&sku_id=12000026982644984

Database entry

{"id":38,"type":"Router","ieeeAddr":"0xa4c13879c5118c29","nwkAddr":30452,"manufId":4417,"manufName":"_TZE204_yvx5lh6k","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"�G.i�G.i��G.i","65506":56,"65508":0,"stackVersion":0,"dateCode":"","appVersion":74}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1723118109568}

Comments

Hello, please add support for the device.

External definition

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

module.exports = definition;
@aliakseika aliakseika added the new device support New device support request label Aug 8, 2024
@Pauligrinder
Copy link

Pauligrinder commented Aug 9, 2024

Following this too - I just received this same device and it floods the logs with error messages (the same "device not supported" message). I also don't have the "generate definition" button in the Dev Console for some reason, so I just have to disable this device for now. Maybe it's only available in dev versions of zigbee2mqtt?

@aliakseika
Copy link
Author

maybe, I have version koenkk/zigbee2mqtt:latest-dev

@Pauligrinder
Copy link

maybe, I have version koenkk/zigbee2mqtt:latest-dev

Yeah, I'm running release 1.33.

@pcrednet
Copy link

pcrednet commented Aug 21, 2024

Any news about this?
I have 2 devices that are recognized as follows

_TZE204_yvx5lh6k

appears as unsupported but.. this is:

https://www.zigbee2mqtt.io/devices/TS0601_air_quality_sensor.html

What can I do?

@pcrednet
Copy link

pcrednet commented Aug 21, 2024

is already working with this converter:

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const legacy= require('zigbee-herdsman-converters/lib/legacy');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const modernExtend = require('zigbee-herdsman-converters/lib/modernExtend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('zigbee-herdsman-converters/lib/tuya');

const definition = {
    // Since a lot of Tuya devices use the same modelID, but use different datapoints
    // it's necessary to provide a fingerprint instead of a zigbeeModel
    fingerprint: [
        {   modelID: 'TS0601',
            manufacturerName: '_TZE204_yvx5lh6k',
        },
    ],
    model: 'TS0601_air_quality_sensor',
    vendor: 'Tuya',
    description: 'Smart Air Quality Sensor',
    fromZigbee: [legacy.fromZigbee.tuya_air_quality],
    toZigbee: [tuya.tz.datapoints],
    onEvent: tuya.onEventSetTime, // Add this if you are getting no converter for 'commandMcuSyncTime'
    configure: tuya.configureMagicPacket,
    exposes: [
        e.temperature(), e.humidity(), e.co2(), e.voc().withUnit('ppm'), e.formaldehyd(),
    ],
};

module.exports = definition;

but I see that you are sending a lot of messages per second, is there any way to limit that amount of messages?

image

thx in advance

@aliakseika
Copy link
Author

It works with this converter, thanks! I have several similar sensors, they all send reports so often. I did not find how to change the interval

@pcrednet
Copy link

to reduce reports interval; add this to this device:

debounce: 10
like this:

devices:
  "0xa4sxxxxxxxx90":
    friendly_name: sonda
    debounce: 10

@aliakseika
Copy link
Author

thank you!

@Koenkk
Copy link
Owner

Koenkk commented Aug 24, 2024

Added the _TZE204_yvx5lh6k, thanks @pcrednet

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

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

4 participants