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

Add _TZ3000_mw1pqqqt #7826

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Add _TZ3000_mw1pqqqt #7826

wants to merge 3 commits into from

Conversation

rock3r
Copy link

@rock3r rock3r commented Aug 4, 2024

A Tuya 3-way USB switch, sold under whitelabel by UNSH (no exact model number). See https://www.aliexpress.com/item/1005006406053419.html

Z2m detects it as https://www.zigbee2mqtt.io/devices/TS0003.html, but that's obviously wrong. This device has no metering, too.

Auto-generated external definition, that I derived the PR from:

const {deviceEndpoints, identify, onOff, electricityMeter} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['TS0003'],
    model: 'TS0003',
    vendor: '_TZ3000_mw1pqqqt',
    description: 'Automatically generated definition',
    extend: [deviceEndpoints({"endpoints":{"1":1,"2":2,"3":3}}), identify(), onOff({"powerOnBehavior":false,"endpointNames":["1","2","3"]}), electricityMeter()],
    meta: {"multiEndpoint":true},
};

module.exports = definition;

I added the external definition to z2m and tested it, seems to work fine.

Important

PR #7824 should be merged before this one.

rock3r and others added 3 commits August 4, 2024 11:47
A Tuya 2-way USB switch, sold under whitelabel by UNSH (no exact model number)
A Tuya 3-way USB switch, sold under whitelabel by UNSH (no exact model number)
@Koenkk
Copy link
Owner

Koenkk commented Aug 4, 2024

Z2m detects it as https://www.zigbee2mqtt.io/devices/TS0003.html, but that's obviously wrong. This device has no metering, too.

Same as the other, PR, what doesn't work with the TS0003 definition?

@rock3r
Copy link
Author

rock3r commented Aug 5, 2024

As mentioned in the description, it's an entirely different device (a multi-port USB switch). It doesn't support energy metering, despite the auto-generated definition saying it does. I tried poking all attributes and there is only one that can be read, but not written to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants