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]: _TZ3000_4xfqlgqo - TuYa TS0002_switch_module #17475

Closed
saper-2 opened this issue Apr 27, 2023 · 1 comment
Closed

[New device support]: _TZ3000_4xfqlgqo - TuYa TS0002_switch_module #17475

saper-2 opened this issue Apr 27, 2023 · 1 comment
Labels
new device support New device support request

Comments

@saper-2
Copy link

saper-2 commented Apr 27, 2023

Link

https://pcblab.io/podw%C3%B3jny-przeka%C5%BAnik-do-puszki-zigbee-tuya.html

Database entry

{"id":14,"type":"Router","ieeeAddr":"0xa4c138f79cc927ef","nwkAddr":41572,"manufId":4417,"manufName":"_TZ3000_4xfqlgqo","powerSource":"Mains (single phase)","modelId":"TS0002","epList":[1,2,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,1794,2820,57344,57345,0],"outClusterList":[25,10],"clusters":{"57344":{"attributes":{"53251":"AAAAAgAA"}},"genBasic":{"attributes":{"65503":"\b\u0000\u0000\u0000\u0012","65506":54,"65508":0,"65534":0,"stackVersion":0,"dateCode":"","manufacturerName":"_TZ3000_4xfqlgqo","zclVersion":3,"appVersion":70,"modelId":"TS0002","powerSource":1}},"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0,"moesStartUpOnOff":2}},"manuSpecificTuya_3":{"attributes":{"53248":0,"53249":0,"53250":0,"53251":0,"53252":0,"53253":0,"switchType":1}},"manuSpecificBosch":{"attributes":{"53251":"AAAAAgAA"}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0022983a41","endpointID":1}],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[4,5,6],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0022983a41","endpointID":1}],"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":{"configured":-1030697865},"lastSeen":1682610473970,"defaultSendRequestWhen":"immediate"}

Comments

Works ok (Z2M version 1.30.3).

Sold by pcblab.io (in Poland), the RR620ZB have all screw terminals (with spring 😑), it have 2 relays RC-105DM1 rated 5A/250V , input switches S1 & S2 have common from L wire ([L_wire]-->[switch]-->[S1orS2_terminal]).

Exposes switch_type: toggle / state / momentary .

There is also older (previous) version (of this RR620ZB from pcblab.io) that is supported already (manufacturer id: _TZ3000_7ed9cqgi , TuYa TS0002_switch_module since herdsman-converters commit from 2022-09-11 ).

📷 😄
image

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 ={
	fingerprint: tuya.fingerprint('TS0002', ['_TZ3000_4xfqlgqo']),
        model: 'TS0002_switch_module',
        vendor: 'TuYa',
        description: '2 gang switch module',
        whiteLabel: [{vendor: 'OXT', model: 'SWTZ22'}, {vendor: 'Nous', model: 'L13Z'},{vendor: 'pcblab.io', model: 'RR620ZB'}],
        extend: tuya.extend.switch({switchType: true, endpoints: ['l1', 'l2']}),
        endpoint: (device) => {
            return {'l1': 1, 'l2': 2};
        },
        meta: {multiEndpoint: true},
        configure: async (device, coordinatorEndpoint, logger) => {
            await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
            await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
            await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
        },
};
module.exports = definition;

Supported color modes

No response

Color temperature range

No response

@saper-2 saper-2 added the new device support New device support request label Apr 27, 2023
Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Apr 27, 2023
@Koenkk
Copy link
Owner

Koenkk commented Apr 27, 2023

Added, thanks!

@Koenkk Koenkk closed this as completed Apr 27, 2023
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

2 participants