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]: ZemiSmart Smart Wave Switch SM0001 _TZ3000_jcqs2mrv, white label ZM-H7 #17294

Closed
kiselio opened this issue Apr 10, 2023 · 5 comments
Labels
new device support New device support request stale Stale issues

Comments

@kiselio
Copy link

kiselio commented Apr 10, 2023

Link

https://www.aliexpress.com/item/1005005175284937.html

Database entry

{"id":2,"type":"Router","ieeeAddr":"0xa4c1381a4f7346e5","nwkAddr":63649,"manufId":4107,"manufName":"_TZ3000_jcqs2mrv","powerSource":"Mains (single phase)","modelId":"SM0001","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[0,3,4,5,6,4096],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"modelId":"SM0001","manufacturerName":"_TZ3000_jcqs2mrv","powerSource":1,"zclVersion":3,"appVersion":5,"stackVersion":2,"hwVersion":0,"dateCode":"20221027","swBuildId":"2.0.1"}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0xe0798dfffe7d7925","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":5,"stackVersion":2,"hwVersion":0,"dateCode":"20221027","swBuildId":"2.0.1","zclVersion":3,"interviewCompleted":true,"meta":{"configured":153093895},"lastSeen":1681108222073,"defaultSendRequestWhen":"immediate"}

Comments

I need help supporting this ZemiSmart Smart Switch, based on a mmWave sensor. I created a partially working converter, cannot get the power on/off state to work. Or maybe exposes some other clusters, if available (proximity etc.)?

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: 'SM0001',
            // The manufacturer name from: Device with modelID 'TS0601' is not supported.
            manufacturerName: '_TZ3000_jcqs2mrv',
        },
    ],
    zigbeeModel: ['SM0001'],
    model: 'SM0001',
    vendor: 'ZemiSmart',
    description: 'ZemiSmart Wave Switch',
    extend: tuya.extend.switch(),
    whiteLabel: [{vendor: 'ZemiSmart', model: 'SM0001', description: 'Wave Switch'}],
    configure: async (device, coordinatorEndpoint, logger) => {
        await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
        await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);    
    },
};

module.exports = definition;

Supported color modes

No response

Color temperature range

No response

@kiselio kiselio added the new device support New device support request label Apr 10, 2023
@aginux
Copy link

aginux commented Apr 25, 2023

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Apr 25, 2023
@Koenkk
Copy link
Owner

Koenkk commented Apr 25, 2023

Added, thanks @aginux ! Device will be supported in the next release (1 May)

I created a partially working converter, cannot get the power on/off state to work

Can you explain what does not work yet?

@Koenkk Koenkk closed this as completed Apr 25, 2023
@Koenkk Koenkk reopened this Apr 25, 2023
@kiselio
Copy link
Author

kiselio commented Apr 25, 2023

@Koenkk Hello,

I actually developed that converter that @aginux linked earlier from smarthomescene. I cannot get the power on behaviour to work properly, it produces an error.

Will add a log a bit later if needed, from PC

@Koenkk
Copy link
Owner

Koenkk commented Apr 27, 2023

Yes please provide the log

@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label May 28, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 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 stale Stale issues
Projects
None yet
Development

No branches or pull requests

3 participants