Koenkk / zigbee2mqtt

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

[New device support]: garage door opener TUYA TS0601 #11880

Closed Domos2 closed 2 years ago

Domos2 commented 2 years ago

Link

no link found

Database entry

{"id":20,"type":"Router","ieeeAddr":"0xa4c138480136da96","nwkAddr":36461,"manufId":4417,"manufName":"_TZE200_nklqjk62","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":"w��)i���)i���)i���)i���)i\r��)i+��)iI��)i","65506":54,"65508":0,"modelId":"TS0601","manufacturerName":"_TZE200_nklqjk62","powerSource":1,"zclVersion":3,"appVersion":70,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":70,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1647510269634}

Comments

debug Received Zigbee message from '0xa4c138480136da96', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[1],"type":"Buffer"},"datatype":1,"dp":3,"fn":0,"status":0,"transid":81}' from endpoint 1 with groupID null warning Received message from unsupported device with Zigbee model 'TS0601' and manufacturer name '_TZE200_nklqjk62' warning Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.

Module is externally exactly similar to PJ-ZGD01

External converter

Tried this but full newbie and noob at zigbee2mqtt

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;

const definition = {
    zigbeeModel: ['TS0601'], // The model ID from: Device with modelID 'lumi.sens' is not supported.
    model: '_TZE200_nklqjk62', // Vendor model number, look on the device for a model number
    vendor: 'Unknown', // Vendor of the device (only used for documentation and startup logging)
    description: 'Relais Zigbee Porte de garage', // Description of the device, copy from vendor site. (only used for documentation and startup logging)
    fromZigbee: [fz.on_off], // We will add this later
    toZigbee: [tz.on_off], // Should be empty, unless device can be controlled (e.g. lights, switches).
    exposes: [ e.trigger(), e.garage_door_contact(), e.linkquality(),], // Defines what this device exposes, used for e.g. Home Assistant discovery and in the frontend
    configure: async (device, coordinatorEndpoint, logger) => {
        const endpoint = device.getEndpoint(1);
        await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
        await reporting.onOff(endpoint);
    },
};

module.exports = definition;

Supported color modes

No response

Color temperature range

No response

Koenkk commented 2 years ago

Duplicate of https://github.com/Koenkk/zigbee2mqtt/issues/11879