Skip to content

[External Converter]: TS0601 from _TZE200_fphxkxue #30406

@alanmgomes

Description

@alanmgomes

Link

https://www.novadigitalsmart.com.br/produtos/valvula-com-medidor-zvl-pro

Database entry

{"id":45,"type":"EndDevice","ieeeAddr":"0x4c97a1fffe53cff8","nwkAddr":51253,"manufId":4098,"manufName":"_TZE200_fphxkxue","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":"�a�0f�a�0\u0012�a�0\u0012","65506":31,"65508":0,"65534":0,"modelId":"TS0601","manufacturerName":"_TZE200_fphxkxue","stackVersion":0,"dateCode":"","appVersion":65,"zclVersion":3,"powerSource":3}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":65,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":-383675228},"lastSeen":1767155167946}

Zigbee2MQTT version

2.6.3 (c577c8e)

External converter

import fz from 'zigbee-herdsman-converters/converters/fromZigbee';
import tz from 'zigbee-herdsman-converters/converters/toZigbee';
import * as exposes from 'zigbee-herdsman-converters/lib/exposes';
import tuya from 'zigbee-herdsman-converters/lib/tuya';

const e = exposes.presets;
const ea = exposes.access;

const definition = {
    fingerprint: [
        {
            modelID: 'TS0601',
            manufacturerName: '_TZE200_fphxkxue'
        }
    ],
    model: 'ZVL-PRO',
    vendor: 'Nova Digital',
    description: 'Water Valve (Advanced Map)',
    fromZigbee: [tuya.fz.datapoints],
    toZigbee: [tuya.tz.datapoints],
    onEvent: tuya.onEventSetLocalTime,
    configure: tuya.configureMagicPacket,
    exposes: [
        e.switch().setAccess('state', ea.STATE_SET),
        e.battery(),
        e.numeric('countdown', ea.STATE_SET).withUnit('s').withValueMin(0).withValueMax(86400)
            .withDescription('Tempo de contagem regressiva em segundos'),
        e.enum('work_state', ea.STATE, ['auto', 'manual', 'idle'])
            .withDescription('Estado atual de opera    o'),
        e.numeric('water_once', ea.STATE).withUnit('L').withDescription('Consumo da   ltima rega'),
    ],
    meta: {
        tuyaDatapoints: [
            [1, 'state', tuya.valueConverter.onOff],
            [7, 'battery', tuya.valueConverter.raw],
            [11, 'countdown', tuya.valueConverter.raw],
            [12, 'work_state', tuya.valueConverter.raw], 
            [5, 'water_once', tuya.valueConverter.raw],
            [4, 'fault', tuya.valueConverter.raw],
        ],
    },
};

export default definition;

What does/doesn't work with the external definition?

Everything works

Notes

software_build_id: undefined
date_code: ``
endpoints:

{"1":{"clusters":{"input":["genBasic","genGroups","genScenes","manuSpecificTuya"],"output":["genOta","genTime"]}}}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions