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

DDF for MoesGo/Tuya Smart Dimmer Module (_TZE200_e3oitdyu) #5869

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

manup
Copy link
Member

@manup manup commented Mar 15, 2022

The PR depends on #5868

For Tuya devices it adds the devices/tuya/tuya_swversion.js which should be used to correctly parse the attr/swversion item.

        {
          "name": "attr/swversion",
          "parse": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001", "script": "tuya_swversion.js"},
          "read": {"fn": "zcl", "ep": 1, "cl": "0x0000", "at": "0x0001"}
        }

The Tuya firmware version is stored in ZCL Basic cluster Application Version 8-bit attribute as packed major.minor.patch version. For example: 0x41 results in 0b 01 00 0001 = 1.0.1.

The device provides two REST-API lights with on/off and dimming, unfortunately no button events.

{
"1": {
    "etag": "660b09d282b480796bb1e995af7b6efc",
    "hascolor": false,
    "lastannounced": null,
    "lastseen": "2022-03-15T01:55Z",
    "manufacturername": "_TZE200_e3oitdyu",
    "modelid": "TS0601",
    "name": "Smart plug 30",
    "state": {
        "alert": "none",
        "bri": 254,
        "on": true,
        "reachable": true
    },
    "swversion": "1.0.4",
    "type": "Dimmable plug-in unit",
    "uniqueid": "84:fd:27:ff:fe:60:94:0b-01"
},
"2": {
    "etag": "2d99e09a6b625a5b6b82bc5da16110f7",
    "hascolor": false,
    "lastannounced": null,
    "lastseen": "2022-03-15T01:55Z",
    "manufacturername": "_TZE200_e3oitdyu",
    "modelid": "TS0601",
    "name": "Dimmable plug-in unit 31",
    "state": {
        "alert": "none",
        "bri": 254,
        "on": false,
        "reachable": true
    },
    "swversion": "1.0.4",
    "type": "Dimmable plug-in unit",
    "uniqueid": "84:fd:27:ff:fe:60:94:0b-02"
}
}

@manup manup added this to the v2.15.0-beta milestone Mar 15, 2022
@manup manup linked an issue Mar 15, 2022 that may be closed by this pull request
@manup manup merged commit 2b8950f into dresden-elektronik:master Mar 16, 2022
@Smanar Smanar mentioned this pull request Apr 4, 2022
@manup manup deleted the moes_wallsw branch January 3, 2023 13:27
@faltingsb
Copy link

This is concerning the 2-gang Moes dimmer _TZE200_e3oitdyu. Thanks for the great work integrating this in DeConz. I have a problem however when I integrate these dimmers into groups: I cannot turn on/off or dim the entire group, and I cannot recall scenes for the group.

The groups and scene work fine for the Moes 3-gang smart switch, however.

@Smanar
Copy link
Collaborator

Smanar commented Mar 23, 2023

It's a tuya device.
It don't use standard cluster for on/off/dim (it use the tuya cluster instead)
So group features can't work (group request are broadcast request, and only on standard clusters to be compatible with regular stuff)

@faltingsb
Copy link

However, with the Moes 3-gang switch: _TZ3000_pfc7i3kt groups and scenes work fine, and it's also a Tuya device with multiple subdevices. Is there something that can be learned from the way it's been integrated?

@Smanar
Copy link
Collaborator

Smanar commented Mar 24, 2023

Is there something that can be learned from the way it's been integrated?

I m not sure ton understand, you mean about the group support ? Just look wich one cluster the device use for on/off for exemple.

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.

Tuya 2 Gang ZigBee Dimmer Module
3 participants