zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[New device support]: TuYa TS0601 _TZE200_nmw64dj5 thermostatic valve (rebranding?)

Open Chronocento opened this issue 2 years ago • 1 comments

Link

https://eshop.kblue.it/valvole-termostatiche-smart-gateway-tecnologia-wireless-wi-fi/

Database entry

{"id":31,"type":"EndDevice","ieeeAddr":"0x003c84fffec94415","nwkAddr":45502,"manufId":4098,"manufName":"_TZE200_nmw64dj5","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"\u0000\u0000\u0000\u0000\u0012\u0000\u0000\u0000\u0000\u0004\u0000\u0000\u0000\u0000\u0011\u0000\u0000\u0000\u0000\u0012\u0000\u0000\u0000\u0000\u0012","65506":31,"65508":1,"modelId":"TS0601","manufacturerName":"_TZE200_nmw64dj5","powerSource":3,"zclVersion":3,"appVersion":85,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":85,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1699115727419,"defaultSendRequestWhen":"immediate"}

Comments

I was trying to add support for this device following the instructions, but I got stuck at the part related to the datapoints. I'm quite sure that this thermostatic valve is a rebranding of the already supported GS361A-H04, and I hoped to bypass the procedure by adding the manufacturer name (_TZE200_nmw64dj5) directly in devices.js, but I couldn't find it (I use Z2M as a Home Assistant add-on).

Can somebody help me to add support to it, by pointing me in the right direction? I add the external converter (even if it's pratically empty).

External converter

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 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: [
        {
            // The model ID from: Device with modelID 'TS0601' is not supported
            // You may need to add \u0000 at the end of the name in some cases
            modelID: 'TS0601',
            // The manufacturer name from: Device with modelID 'TS0601' is not supported.
            manufacturerName: '_TZE200_nmw64dj5',
        },
    ],
    model: 'TS0601_Kblue',
    vendor: 'TuYa',
    description: 'TuYa thermostatic valve rebrand from Kblue S.r.l.',
    fromZigbee: [tuya.fz.datapoints],
    toZigbee: [tuya.tz.datapoints],
    onEvent: tuya.onEventSetTime, // Add this if you are getting no converter for 'commandMcuSyncTime'
    configure: tuya.configureMagicPacket,
    exposes: [
        // Here you should put all functionality that your device exposes
    ],
    meta: {
        // All datapoints go in here
        tuyaDatapoints: [
        ],
    },
};

module.exports = definition;

Supported color modes

No response

Color temperature range

No response

Chronocento avatar Nov 04 '23 17:11 Chronocento

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

github-actions[bot] avatar May 03 '24 00:05 github-actions[bot]